Course

Learn Lua

Small language, powerful embedding: tables, closures, metatables and coroutines: until you can script game engines and embedded hosts, and design the Lua APIs others script against.

This is the whole Lua course in the LoWisa phone app, level by level: 11 levels, 32 lessons and 96 ideas, each taught and then checked. The first level, Start Here: Small Language, Powerful Embedding, is free.

Updated 2026-11-25

What you can do as you go

Where you areWhat you can do
Start Here: Level 3You write real Lua: tables, closures and multiple returns as reflexes, globals under control.
Levels 4–7You build modules, wield metatables and coroutines, and handle errors the nil-comma-message way.
Levels 8–9You understand the embedding boundary: C API concepts, sandboxes, budgets and host API design.
Levels 10–11You tune the GC and allocation churn, know when LuaJIT changes the answer, and read engine-scale Lua.
Project ladderFive desktop app projects from table craft to a sandboxed plugin host: the scripting engineer engines rely on.

The Lua course, level by level

LevelLessons in it
Start Here: Small Language, Powerful EmbeddingLua Runtime; Where Lua Is Used
Level 1: Lua FoundationsValues and Variables; Control Flow; Functions
Level 2: TablesArrays and Dictionaries Through Tables; Table Operations; Data Modelling
Level 3: Functions & ClosuresFirst-Class Functions; Closures; Higher-Order Patterns
Level 4: ModulesModules; Scope; Organising Lua Programs
Level 5: MetatablesMetatables; Metamethods; Building Custom Behaviour
Level 6: Iterators & CoroutinesIterators; Coroutines; Cooperative Execution
Level 7: ErrorsError Handling; Protected Calls; Reliable Lua Programs
Level 8: Embedding LuaLua C API Concepts; Host/Application Boundaries; Scripting Embedded Systems
Level 9: Runtime & PerformanceGarbage Collection; Profiling; LuaJIT Awareness
Level 10: Lua MasteryAdvanced 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.

RoleProjectThe situation
Lua DeveloperInventory System in TablesBuild a game-style inventory system in pure Lua: items, stacks, weight limits, save files: tables and closures doing every job.
Gameplay ProgrammerBehaviour Scripting With CoroutinesBuild a tiny simulation host and script NPC behaviours on it: coroutine-based scripts with wait(), sequences and interrupts: cooperative scheduling you wrote yourself.
Lua EngineerRescue a Global-Soup ModYou 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 ProgrammerSandboxed Plugin SystemA host application wants user plugins: Lua scripts loaded safely: sandboxed environments, instruction budgets, versioned API, hot reload: the real embedding discipline.
Lua SpecialistPublish an Object & Events LibraryDistil 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".

Start Lua with the free first level

LoWisa is on Google Play and the App Store.