ABSTRACT

This author talks about Lua object-oriented programming (OOP) used in Corona software development kit (SDK) to create mobile games and applications. An object is a special type of variable bringing with it its properties, called fields, and its functions, called methods. People call this a 'class'. It allows them to organize their code to create 'objects' of the same behaviors, like ships, characters and robots. In a video game world, the academic example is the ship, or the alien. Every time that people need to create several elements in their games that share the same behaviors and properties, they should think: object. Since the author is a professional Corona SDK programmer, he spent many hours browsing the web and experimenting with various ways to create objects with Lua. In the end, he found a way, a very simple way, that is used by many programmers.