Skip to content

Commit

Permalink
updates dead line zone
Browse files Browse the repository at this point in the history
  • Loading branch information
denisnarush committed Apr 17, 2020
1 parent 15b9077 commit a9dc5d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cs.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ function updateChars() {
char.y = char.y + speed;
}
// Condition for Game Over
if (char.y >= this.height - 16) {
if (char.y >= this.height) {
return CSGame.setState(STATES.GAME_OVER);
};
// Draw Char
Expand Down

0 comments on commit a9dc5d7

Please sign in to comment.