Question about classes in Lua

I’m not sure if this is posted in the right forum, I’m a noob. Also I feel like this question has probably been answered but I’m apparently not entering the right string into Google!

I am coming from Actionscript 3.0 where classes are defined in individual .as files. I’ve been reading up on how to do “classes” (prototypes) in lua, but I was wondering where do they go? Do I have to put them all in the main.lua file? Or can I create separate .lua files for each class to keep them modularized? How does it work?

Thanks! :slight_smile:
Amber [import]uid: 98614 topic_id: 16630 reply_id: 316630[/import]

I believe this should help you out; http://blog.anscamobile.com/2011/09/tutorial-modular-classes-in-corona/

If it leaves anything unanswered please let me know :slight_smile:

Peach [import]uid: 52491 topic_id: 16630 reply_id: 62199[/import]