Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/defold/extension-lua-preprocessor

Small and simple Lua preprocessor for Defold
https://github.com/defold/extension-lua-preprocessor

antlr4 defold defold-library lua preprocessor

Last synced: 4 months ago
JSON representation

Small and simple Lua preprocessor for Defold

Awesome Lists containing this project

README

        

# extension-lua-preprocessor
A small and simple Lua preprocessor for Defold. This extension hooks into the [Lua builder plugin system in bob](https://github.com/defold/defold/blob/cb60610ba7c4683267a2abd509340507105ef3bb/com.dynamo.cr/com.dynamo.cr.bob/src/com/dynamo/bob/pipeline/LuaBuilder.java#L94).

## 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](https://github.com/defold/extension-lua-preprocessor/releases)

image

## Example

```lua
-- 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](https://github.com/defold/extension-lua-preprocessor/issues)