OOP implementation, please help

Hello folks,

I've written an "superbrothers sword & sworcery ep" like navigation-pointer and have no idea how to extract the individual parts (commented inside the main.lua) into separate/external oop files.

Please heave a look over this and show how to manage the individual files.
Maybe you can also give me some feedbacks to the code. Perhaps there are some smarter ways of writing my code? For more performance, reusability? I just want to learn everything you can show me! Please!

Here are all the files. Run in Corona SDK and see the code. The most important file is the main.lua.

http://www.filesavr.com/C38H6ZK9BSL5ZGK

After endless struggling, got it finally. I don't know if this solution is good, but, it works at least. Thread can be closed :-)

the update, for all interested:

http://www.filesavr.com/47HV7AJZ0EPRIPS

Glad to hear you got it! Here's an article that subtly touches on some object-oriented concepts in Corona, though admittedly doesn't go very in-depth. Worth a look anyway:

http://blog.anscamobile.com/2011/09/tutorial-modular-classes-in-corona/

views:1630 update:2011/11/17 9:28:17
corona forums © 2003-2011