tower_game icon indicating copy to clipboard operation
tower_game copied to clipboard

How can i restart the game without having to refresh the page?

Open pokhrelashok opened this issue 3 years ago • 0 comments

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?

pokhrelashok avatar Sep 20 '21 07:09 pokhrelashok