2 ms·
Lua is used in many games for scripting, including one that I worked on. I think the "killer feature" for games is coroutines which allow many scripts to run in
by pmjordan 18y ago
Lua is used in many games for scripting, including one that I worked on. I think the "killer feature" for games is coroutines which allow many scripts to run in parallel and across frames, as wait functions can save the stack and later resume execution. Simple enough for non-programmers (level designers) to understand and build the occasional script.