tiny-ecs
Entity Component System for lua.
Tiny-ecs is an Entity Component System for lua that's simple, flexible, and useful. Because of lua's tabular nature, Entity Component Systems are a natural choice for simulating large and complex systems. In game programming, ECS is a great way to simplify the game loop. For more explanation on Entity Component Systems, here is some basic info. http://en.wikipedia.org/wiki/Entity_component_system
Tiny-ecs also works well with objected oriented programming in lua because Systems and Entities do not use metatables. This means you can subclass your Systems and Entities, and use existing lua class frameworks with tiny-ecs, no problem.
Copy/Paste Latest Source: https://raw.githubusercontent.com/bakpakin/tiny-ecs/master/tiny.lua