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

[import]uid: 73502 topic_id: 17770 reply_id: 317770[/import]

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

the update, for all interested:

http://www.filesavr.com/47HV7AJZ0EPRIPS [import]uid: 73502 topic_id: 17770 reply_id: 67802[/import]

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/ [import]uid: 52430 topic_id: 17770 reply_id: 67850[/import]