Skip to content

Commit a7203cc

Browse files
authored
Up Key JS
1 parent 62ee6de commit a7203cc

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

js/spaceinvaders.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,11 @@ PlayState.prototype.update = function(game, dt) {
372372
if(game.pressedKeys[87]) {
373373
this.fireRocket();
374374
}
375+
376+
// Up Key
377+
if(game.pressedKeys[38]) {
378+
this.fireRocket();
379+
}
375380

376381
// Keep the ship in bounds.
377382
if(this.ship.x < game.gameBounds.left) {

0 commit comments

Comments
 (0)