What you can do as you go
| Where you are | What you can do |
|---|---|
| Start Here: Level 3 | You write real Lua: tables, closures and multiple returns as reflexes, globals under control. |
| Levels 4–7 | You build modules, wield metatables and coroutines, and handle errors the nil-comma-message way. |
| Levels 8–9 | You understand the embedding boundary: C API concepts, sandboxes, budgets and host API design. |
| Levels 10–11 | You tune the GC and allocation churn, know when LuaJIT changes the answer, and read engine-scale Lua. |
| Project ladder | Five desktop app projects from table craft to a sandboxed plugin host: the scripting engineer engines rely on. |
The Lua course, level by level
| Level | Lessons in it |
|---|---|
| Start Here: Small Language, Powerful Embedding | Lua Runtime; Where Lua Is Used |
| Level 1: Lua Foundations | Values and Variables; Control Flow; Functions |
| Level 2: Tables | Arrays and Dictionaries Through Tables; Table Operations; Data Modelling |
| Level 3: Functions & Closures | First-Class Functions; Closures; Higher-Order Patterns |
| Level 4: Modules | Modules; Scope; Organising Lua Programs |
| Level 5: Metatables | Metatables; Metamethods; Building Custom Behaviour |
| Level 6: Iterators & Coroutines | Iterators; Coroutines; Cooperative Execution |
| Level 7: Errors | Error Handling; Protected Calls; Reliable Lua Programs |
| Level 8: Embedding Lua | Lua C API Concepts; Host/Application Boundaries; Scripting Embedded Systems |
| Level 9: Runtime & Performance | Garbage Collection; Profiling; LuaJIT Awareness |
| Level 10: Lua Mastery | Advanced Metaprogramming; Embedded Architecture; Reading and Improving Complex Lua |
Every level ends with a checkpoint and flashcards on what it taught.
Start Here: Small Language, Powerful Embedding: what the free first level teaches
Lua Runtime
- A tiny language. Lua is deliberately small: a handful of concepts, an interpreter that embeds in kilobytes.
- The interpreter. Lua compiles scripts to bytecode for its VM: fast startup, tiny footprint, easy hosting.
- One data structure. Lua ships one structure: the table: and builds arrays, records and objects from it.
Where Lua Is Used
- Games and engines. Game engines embed Lua for scripting: designers writing behaviour without recompiling the engine.
- Embedded and edge. Routers, proxies and edge platforms run Lua for configuration logic: small, fast, safe to host.
- The host relationship. Lua rarely runs alone: a host application exposes functions, and Lua orchestrates them.
Projects you build
The course has 5 projects, built in the LoWisa desktop app, each in the role of someone who does this work.
| Role | Project | The situation |
|---|---|---|
| Lua Developer | Inventory System in Tables | Build a game-style inventory system in pure Lua: items, stacks, weight limits, save files: tables and closures doing every job. |
| Gameplay Programmer | Behaviour Scripting With Coroutines | Build a tiny simulation host and script NPC behaviours on it: coroutine-based scripts with wait(), sequences and interrupts: cooperative scheduling you wrote yourself. |
| Lua Engineer | Rescue a Global-Soup Mod | You inherit a popular game mod: everything global, a metatable loop crashing saves, frame stutters from table churn, and one error that kills the whole mod loader. Repair it. |
| Senior Engine Programmer | Sandboxed Plugin System | A host application wants user plugins: Lua scripts loaded safely: sandboxed environments, instruction budgets, versioned API, hot reload: the real embedding discipline. |
| Lua Specialist | Publish an Object & Events Library | Distil table mastery into the definitive piece: a class/object library plus an event system: metatable-based, documented, benchmarked: the foundation other Lua projects import. |
How you learn it
- One idea at a time. Each lesson teaches a few ideas and asks you about each before it moves on.
- A checkpoint and flashcards at the end of every level. See Checkpoints and flashcards.
- Games on what you have learned. See Revision games.
- On your phone. The app is on Google Play and the App Store. See Getting started.
Frequently asked questions
How many levels does the LoWisa Lua course have?
11 levels with 32 lessons, from Start Here: Small Language, Powerful Embedding to Level 10: Lua Mastery.
Is the Lua course free?
The first level, Start Here: Small Language, Powerful Embedding, is free, with its checkpoint and flashcards. A plan opens the rest; see Plans and credits in the Help centre.
Where does the Lua course start?
With Start Here: Small Language, Powerful Embedding. Its first lesson is "Lua Runtime".