From 2f912471322c62cdc3b4628010330e42541ab11f Mon Sep 17 00:00:00 2001 From: Gabriele Cirulli Date: Sat, 22 Mar 2014 18:45:48 +0100 Subject: [PATCH] improve comments in game manager --- js/game_manager.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/game_manager.js b/js/game_manager.js index 7262f16..e018ef9 100644 --- a/js/game_manager.js +++ b/js/game_manager.js @@ -16,14 +16,14 @@ function GameManager(size, InputManager, Actuator, StorageManager) { // Restart the game GameManager.prototype.restart = function () { this.storageManager.clearGameState(); - this.actuator.continue(); + this.actuator.continue(); // Clear the game won/lost message this.setup(); }; -// Keep playing after winning +// Keep playing after winning (allows going over 2048) GameManager.prototype.keepPlaying = function () { this.keepPlaying = true; - this.actuator.continue(); + this.actuator.continue(); // Clear the game won/lost message }; // Return true if the game is lost, or has won and the user hasn't kept playing -- GitLab