Skip to content

Commit

Permalink
Hotfix scoring
Browse files Browse the repository at this point in the history
  • Loading branch information
gamalielhere committed Dec 25, 2018
1 parent e8a3fc8 commit 55fc0e2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@
let speed;
let foodAte;
let gameStarted = "no";
let stats = {};
let stats = {
foodAte: 0,
bonusFood: 0,
totalScore: 0
};

gameContainer[0].style.height = `${canvas.height}px`;
gameContainer[0].style.width = `${canvas.width}px`;
Expand Down

0 comments on commit 55fc0e2

Please sign in to comment.