The code in my game is such that I have created classes and created class:init() function and that's how most of my codess start, though I am clueless that How do I really restart my game?
I am posting some of the important parts of the game which I might need while I restart the game:
dummy = Core.class(Sprite)
function dummy:init()
--all code
end
function WatchHands:init()
--all code
end
How to call these at the location where I want to restart the game?
Comments
So basically you define the scenes you have in main.lua :
https://github.com/ar2rsawseen/GameTemplate
More about it here:
http://appcodingeasy.com/Gideros-Mobile/Gideros-Mobile-Game-Template