tower_game
tower_game copied to clipboard
How can i restart the game without having to refresh the page?
game.setVariable(constant.successCount, 0) game.setVariable(constant.failedCount, 0) game.setVariable(constant.gameScore, 0) game.setVariable(constant.hardMode, false) game.setVariable(constant.gameStartNow, true)
I can use these variables to reset the values but how do i go about starting the game from start without creating a new instance of the game?