Skip to content

Commit 6c15439

Browse files
authored
Update game_manager.js
1 parent fc1ef4f commit 6c15439

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

js/game_manager.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,14 @@ function GameManager(size, InputManager, Actuator, StorageManager) {
44
this.storageManager = new StorageManager;
55
this.actuator = new Actuator;
66

7-
this.startTiles = 2;
7+
this.startTiles = 128;
88

99
this.inputManager.on("move", this.move.bind(this));
10-
this.inputManager.on("restart", this.restart.bind(this));
1110
this.inputManager.on("keepPlaying", this.keepPlaying.bind(this));
1211

1312
this.setup();
1413
}
1514

16-
// Restart the game
17-
GameManager.prototype.restart = function () {
18-
this.storageManager.clearGameState();
19-
this.actuator.continueGame(); // Clear the game won/lost message
20-
this.setup();
21-
};
22-
2315
// Keep playing after winning (allows going over 2048)
2416
GameManager.prototype.keepPlaying = function () {
2517
this.keepPlaying = true;

0 commit comments

Comments
 (0)