Skip to content

Commit

Permalink
add R key to restart game
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielecirulli committed Mar 22, 2014
1 parent a6531b0 commit 4ad15d4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions js/keyboard_input_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ KeyboardInputManager.prototype.listen = function () {
self.emit("move", mapped);
}
}

// R key restarts the game
if (!modifiers && event.which === 82) {
self.restart.call(self, event);
}
});

// Respond to button presses
Expand Down

0 comments on commit 4ad15d4

Please sign in to comment.