Lua script functions

I recently added Lua scripting to my data-driven component system (which is itself written in Lua). I wanted a script file to behaves like a function call (as opposed to a module). Lua compiles a script into a “chunk”, which is treated as a function with a variable number of arguments, and may return a [...]

Data-driven component system in Lua

As I mentioned in a previous post, I’ve been using Lua a lot. One of the things I’ve done is set up a data-driven, “component based” architecture. I put “component based” in quotes because there doesn’t seem to be any standard way to implement component systems. Plus, based on what I’ve seen/experienced with other component [...]