Skip to content

About

Small and simple Lua preprocessor for Defold

Topics

Resources

Stars

20 stars

Watchers

6 watching

Forks

Latest commit

 

History

39 Commits

Folders and files

Repository files navigation

extension-lua-preprocessor

A small and simple Lua preprocessor for Defold. This extension hooks into the Lua builder plugin system in bob.

Requirements

Defold version 1.4.2 or higher

Installation

To use this library in your Defold project, add the needed version URL to your game.project dependencies from Releases

image

Example

-- Use one of the following keywords: RELEASE, DEBUG or HEADLESS
--#IF DEBUG
local lives_num = 999
--#ELSE 
local lives_num = 3
--#ENDIF

You can also use --DEBUG_ASSERT(...) to include asserts only in debug builds:

--DEBUG_ASSERT(player_lives > 0)

If you have any issues, questions or suggestions please create an issue

About

Small and simple Lua preprocessor for Defold

Topics

Resources

Stars

20 stars

Watchers

6 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages