Skip to content
Academy
TracksLeaderboardPremium
Tracks/ Lua: small, fast, everywhere

Lua: small, fast, everywhere

The simple scripting language inside games, editors and devices. Variables, loops, tables and metatables.

Beginner to advanced · 8 lessons · about 64 minutes

Start the track
  1. 1Hello, Lua BeginnerPrint your first lines and store values in variables.5 min
  2. 2Numbers and strings BeginnerCalculate, format output with string.format, and use common string functions.7 min
  3. 3Decisions BeginnerReact to input with if, elseif and else, and combine conditions with and, or and not.7 min
  4. 4Loops BeginnerRepeat with numeric for, while and repeat-until.7 min
  5. 5Functions IntermediateDefine functions, return several values at once, and pass functions around.8 min
  6. 6Tables as lists IntermediateLua's one data structure, the table, used as a list with ipairs, insert, sort and concat.9 min
  7. 7Tables as dictionaries IntermediateStore values by name, loop with pairs, and count things.9 min
  8. 8Metatables and objects AdvancedGive tables custom behaviour with metatables, and build classes with __index.12 min
Track project · Reviewed by a mentor · PremiumProject: Crafting inventoryBuild the inventory and crafting system for a small survival game, as a Lua class with metatables.

Bytepic Academy is free to learn. Made by Bytepic.

Premium·Get a mentor·Leaderboard·Contact·Privacy·Terms