manually apply #81

This commit is contained in:
Gabriele Cirulli
2014-03-23 19:51:29 +01:00
parent 2f91247132
commit cf01ca7e8b
5 changed files with 85 additions and 3 deletions
+2 -2
View File
@@ -16,14 +16,14 @@ function GameManager(size, InputManager, Actuator, StorageManager) {
// Restart the game
GameManager.prototype.restart = function () {
this.storageManager.clearGameState();
this.actuator.continue(); // Clear the game won/lost message
this.actuator.continueGame(); // Clear the game won/lost message
this.setup();
};
// Keep playing after winning (allows going over 2048)
GameManager.prototype.keepPlaying = function () {
this.keepPlaying = true;
this.actuator.continue(); // Clear the game won/lost message
this.actuator.continueGame(); // Clear the game won/lost message
};
// Return true if the game is lost, or has won and the user hasn't kept playing