you can put the code that you will run when you start the game in a function and call it when you want to *restart* the game that way you will not have to exit your game.
If for whatever reason it is paramount that you exit the game, display a popup to the user that the game will have to be restarted and then they can exit and restart the game.
Comments
If for whatever reason it is paramount that you exit the game, display a popup to the user that the game will have to be restarted and then they can exit and restart the game.
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps