I have looked at some of the examples avaliable in Codea, for example the 3d lab and the physics lab. I have plans for making a simple game with various scenes but i need to learn how classes works and how to change between them! Can someone please explain how to do that?

@Ignatz has written up a rather nice pdf on beggining principles on lua.


Also here.
And here