explody fruit
@@ -21,6 +21,11 @@ class Fruit extends GameObject
21
21
}
22
22
}
23
23
24
onDestroy ()
25
{
26
this.scene.addObject(new FloorTileDestroyer(this.transform.position.x, this.transform.position.y, this.scene.game.images.tile_floor_explosion, 0, .05, true));
27
}
28
24
29
update (deltaTime)
25
30
{
26
31
super.update(deltaTime);
@@ -21,6 +21,11 @@ class Fruit extends GameObject21
}21
}22
}22
}23
23
24
onDestroy ()25
{26
this.scene.addObject(new FloorTileDestroyer(this.transform.position.x, this.transform.position.y, this.scene.game.images.tile_floor_explosion, 0, .05, true));27
}28
24
update (deltaTime)29
update (deltaTime)25
{30
{26
super.update(deltaTime);31
super.update(deltaTime);