Skip to content

Latest commit

 

History

History
8 lines (6 loc) · 259 Bytes

File metadata and controls

8 lines (6 loc) · 259 Bytes

Lua Coroutine Example

This is a very rough and boring example of using lua coroutines to manage scripts.

To run the script use

lua scheduler.lua <some number of files>
#e.g
lua scheduler.lua orc.lua orc.lua general.lua soldier.lua soldier.lua