First of all i know this site is more aimed towards pure coding related problems, but i really can't find much information about this topic, yes i really tried to google about this topic and the only info i got was pictures of Component Based Design Structure. I know how OOP and classes work in Lua, but as you know Object Oriented inheritance is great, but not perfect and a lot of the times the code gets duplicated. So to fix the inheritance problem i found out about component based design, can anyone shed more light on this topic than describe how it work's, i really want example code and how it works in Lua.
NB: All the examples i found on the internet about component based entity system were either written in java, C++ or C, but i need one example in lua.
Thanks