Lua doesn't provide "classes" out-of-the-box. It has other features, somewhat different.
However you can simulate classes and inheritance functionality by using some of these functionalities (tables & metatables).
If you are not interested in knowing the technical details, you can use some already-built lua library.
I've myself created a library called "MiddleClass" that provides this functionality. You can find a manual in its LÖVE wiki page.
This library provides most of what you need, except for "public" and "private" functionalities (everything is "public"). You may find other libraries on the lua users wiki.
egarcia
2010-01-10 14:25:06