Merge branch 'master' into gh-pages
This commit is contained in:
+6
-1
@@ -83,7 +83,12 @@ GameManager.prototype.actuate = function () {
|
|||||||
this.storageManager.setBestScore(this.score);
|
this.storageManager.setBestScore(this.score);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.storageManager.setGameState(this.serialize());
|
// Clear the state when the game is over (game over only, not win)
|
||||||
|
if (this.over) {
|
||||||
|
this.storageManager.clearGameState();
|
||||||
|
} else {
|
||||||
|
this.storageManager.setGameState(this.serialize());
|
||||||
|
}
|
||||||
|
|
||||||
this.actuator.actuate(this.grid, {
|
this.actuator.actuate(this.grid, {
|
||||||
score: this.score,
|
score: this.score,
|
||||||
|
|||||||
Reference in New Issue
Block a user