diff --git a/js/app.js b/js/app.js index dad7367547..e27fd14912 100644 --- a/js/app.js +++ b/js/app.js @@ -34,12 +34,17 @@ Enemy.prototype.render = function() { // This listens for key presses and sends the keys to your // Player.handleInput() method. You don't need to modify this. +// Just adding WASD so that players can play with the two most popular keybinds document.addEventListener('keyup', function(e) { var allowedKeys = { 37: 'left', + 65: 'left', 38: 'up', + 87: 'up', 39: 'right', - 40: 'down' + 68: 'right', + 40: 'down', + 83: 'down', }; player.handleInput(allowedKeys[e.keyCode]);