Setup
Install the standalone interpreter to learn the language itself. For games, LÖVE (love2d.org) is the beloved free 2D engine; Roblox Studio has Lua (Luau) built in.
Lessons
1
Hello, Lua
Lua's entire syntax fits on a postcard. If you've never programmed before, this …
→
2
Conditions & Loops
if/then/end, while, and two flavors of for. Lua uses keywords instead of braces …
→
3
Tables — The Only Data Structure
Lua has exactly one data structure: the table. It's an array, a dictionary, an o…
→
4
Functions
Functions in Lua are values — store them in tables, pass them around, return sev…
→
5
Strings & the Standard Library
Lua's standard library is deliberately tiny — string, table, math, io, os. Small…
→
6
OOP & Metatables
Lua doesn't have classes — it has metatables, hooks that change how tables behav…
→
7
Your First Game with LÖVE
LÖVE (love2d) is a free 2D game framework: you write three callback functions — …
→
8
Lua Cheatsheet
The whole language on one page — it fits.
→