Permalink
Browse files

Don't let player shoot when dead.

  • Loading branch information...
drhayes committed Sep 23, 2015
1 parent 3fe0571 commit 0d11712c2a771d19c538eba79518b1738d179941
Showing with 6 additions and 0 deletions.
  1. +3 −0 src/behaviors/playerMove.js
  2. +3 −0 src/behaviors/playerShoot.js
@@ -27,6 +27,9 @@ export default class PlayerMove extends Behavior {
}

update(player) {
if (!player.alive) {
return;
}
let body = player.body;
let accelX = 0;
let accelY = 0;
@@ -25,6 +25,9 @@ export default class PlayerShoot extends Behavior {
}

update(player) {
if (!player.alive) {
return;
}
let shootX = 0;
let shootY = 0;
if (this.up.isDown) {

0 comments on commit 0d11712

Please sign in to comment.