4 ms·
Yeah, came here to say the same thing. Tables + metatables mean that pretty much any structure you want is available. Single Inheritance + Interfaces, Multiple
by vvanders 8y ago
Yeah, came here to say the same thing.
Tables + metatables mean that pretty much any structure you want is available. Single Inheritance + Interfaces, Multiple Inheritance, Component Based Design are all things I've seen in the wild on shipped products with Lua.
It's a fantastic 'orchestration' language. Coroutines were also invaluable. We used them extensively to script AI behaviors. Our designers(yes, not developers) would write them with "go to X location", yield, "search for players", yield, etc. Was a really compact way to build a FSM that they could understand.