Do I need to store everything manually and reset it? Is there a specific function in the engine which does this?
Also, can I control which files are being executed? E.g: main.lua, level1.lua at the start...level2.lua will be executed when user selects it. At that time, level1.lua would be disabled and only main and level2 would process. Is this possible?
Comments
Then the right approach would be to create only one level.lua and the based on some variable (1, 2, etc) load the other level specifics (specific to level 1 and specific to level 2).
This way you can as easily reload the level as going to the same scene.
Here are some examples:
https://github.com/ar2rsawseen/GameTemplateOld
https://github.com/ar2rsawseen/GameTemplate
Likes: SinisterSoft