Skip to content

Commit

Permalink
Merge branch 'master' into gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielecirulli committed Mar 22, 2014
2 parents 77a09fd + 2f91247 commit 73a3db0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/game_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 73a3db0

Please sign in to comment.