Skip to content

defold/extension-lua-preprocessor

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

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