From 0c532c60d1d8c24b68f5a1649da1852b99373e44 Mon Sep 17 00:00:00 2001 From: Dave Kerr Date: Mon, 5 Nov 2018 22:28:25 +0800 Subject: [PATCH] chore: ensure initial score is 0 --- js/spaceinvaders.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/spaceinvaders.js b/js/spaceinvaders.js index 21a6c0c..9e88a11 100644 --- a/js/spaceinvaders.js +++ b/js/spaceinvaders.js @@ -277,7 +277,7 @@ WelcomeState.prototype.keyDown = function(game, keyCode) { if(keyCode == KEY_SPACE) { // Space starts the game. game.level = 1; - game.score = 90; + game.score = 0; game.lives = 3; game.moveToState(new LevelIntroState(game.level)); }