Skip to content

Commit

Permalink
chore: ensure initial score is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
dwmkerr committed Nov 5, 2018
1 parent 238e6fe commit 0c532c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/spaceinvaders.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit 0c532c6

Please sign in to comment.