Hello All,
This is my first post in the forums but yes I’ve been browsing around a lot! I have some general questions, and although I have been researching and digging through this forum, I have started to get confused || maybe I’m just overwhelmed. Here are my questions:
-
I’m developing a game, and need scenes. I know the most efficient way to go about scenes is to use the storyboard API, is that correct? I’ve heard of Director, but since it’s not directly supported by Corona, I believe the Storyboard API is a good choice.
-
I would like to create code and re-use it, especially when I start to have tons of levels in my game. In web dev, there are PHP includes, and I believe the closest thing I could utilize is something called “modules”? Is this correct, or is there a different way? A good example is if I have my main character in every level, I only should modify that one LUA file, not every single level.
-
Memory management. I know the basics to this topic, and yes I’ve read the “memory management 101” post, but I’m still worried that I’m not implementing it correctly. For example, on the main screen of my game, the memory usage is around 165. Once I enter my game it shoots up to 450-500 respectively, but once I go back to the main menu, it goes to around 400… and no lower. Should / could I get it to go back to 165? It would make sense if yes I could, because once I leave the game and go back I should be able to clean all memory from the game.
-
Groups. Can I just remove a whole group, instead of each individual object? Actually I just answered my own question, last night I used a for loop to remove every object in a group… Thanks! (is that best practice though?)
-
Is there some template out there that is a game, uses the storyboard API (if that is in fact best practice), uses modules to avoid repeating code (if that is also best practice)? Ghosts vs. Monsters is the closest, but I don’t think it uses the Storyboard API.
-
SO far, these are my questions, but I do have more!
[import]uid: 129334 topic_id: 24120 reply_id: 324120[/import]

[import]uid: 52491 topic_id: 24120 reply_id: 97364[/import]