Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Esc key quits the game.

  • Loading branch information...
commit bb1c45659d944745f8784c48e28fcee140aa0e51 1 parent 2b67c56
@vilya authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 js/main.js
View
5 js/main.js
@@ -615,6 +615,11 @@ function update()
}
// Handle inputs.
+ if (game.keysDown[27]) { // 27 == the Esc key.
+ game.draw = drawTitles;
+ game.update = updateTitles;
+ }
+
for (var i = 0; i < game.numRacers; i++) {
if (game.racerIsHuman[i])
updateHuman(i, dt);
Please sign in to comment.
Something went wrong with that request. Please try again.