Game Objects and Inheritance in Lua


Some people think that inheritance is impossible in Lua. It’s not a built-in feature of the language like in C++ or Java, but there’s still a way to fake it with meta-tables. This video shows one way to do it and how it can allow you to create a variety of game objects without having to rewrite a lot of code.

This video was originally published on October 30, 2024.

See also