Monsters should give some feedback when they are damaged to let the
player know that shooting them has effect.
modified: ld40.js
game.physics.arcade.enable(this);
}
game.physics.arcade.enable(this);
}
+ damage(amount) {
+ super.damage(amount);
+ if (this.alive) { game.add.tween(this).to({ x: this.x + (Math.random() - 0.5) * 10 }, 10, Phaser.Easing.Sinusoidal.InOut, true, 0, 8, true); }
+ }
+
kill() {
super.kill();
player.loveUp();
kill() {
super.kill();
player.loveUp();