Finalized

This commit is contained in:
IllusionMan1212
2018-09-30 18:47:05 +02:00
parent c73fb1e274
commit add15ca69c
8 changed files with 21 additions and 0 deletions
+2
View File
@@ -21,6 +21,7 @@ ig.module(
is_dead: false,
flip: false,
kuro: true,
death: new ig.Sound('media/sounds/cat-dead.*'),
animSheet: new ig.AnimationSheet('media/kuroneko.png', 32, 32),
jumpSheet: new ig.AnimationSheet('media/kuroneko-jump.png', 46, 32),
@@ -122,6 +123,7 @@ ig.module(
kill: function() {
this.is_dead = true;
this.death.play();
ig.game.removeEntity(this);
ig.game.score = 0;
+2
View File
@@ -17,6 +17,7 @@ ig.module(
flip: true,
player: null,
is_dead: false,
death: new ig.Sound('media/sounds/mouse-squeaking.*'),
animSheet: new ig.AnimationSheet('media/mouse.png', 26, 9),
@@ -81,6 +82,7 @@ ig.module(
kill: function() {
this.is_dead = true;
this.death.play();
this.speed = 0;
this.collides = ig.Entity.COLLIDES.NEVER;
setTimeout(function(){ig.game.removeEntity(this);}.bind(this), 500);