Wiki
Clone wikiProjectOLED / Lua scripting
Lua is one of the two languages that can be used with the Leadwerks engine. The language has a good learning curve and allows you to create cool games in little time.
Basics
- Lua or C++
- Intro to Lua scripting
- Start function, Print output and errors
- Comments
- UpdateWorld function
- Variables
- Variable scopes
- If statements
- Conditional operators
- Logical operators
- Script properties
- Functions
- Function parameters
- Function return
- For loop
- PostRender function
- Editor properties
- Script entity
- Intro to tables
- Tables as arrays
- Table iteration
Updated