Skip to content

Commit

Permalink
Adding collide bombs and player
Browse files Browse the repository at this point in the history
  • Loading branch information
Garyfimo committed Oct 17, 2015
1 parent bce1bd1 commit fcc70e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/states/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ Game.prototype = {
this.physics.arcade.collide(this.player, this.rocks);
this.physics.arcade.collide(this.enemyPool, this.rocks);
this.physics.arcade.collide(this.player, this.enemyPool);
this.physics.arcade.collide(this.player, this.bombsPool);
this.physics.arcade.overlap(this.player, this.explosionPool, this.destroyPlayer, null, this);
this.physics.arcade.overlap(this.enemyPool, this.explosionPool, this.destroyEnemy, null, this);

Expand Down Expand Up @@ -159,4 +160,4 @@ Game.prototype = {

return rocksColliding;
}
};
};

0 comments on commit fcc70e7

Please sign in to comment.