BlueGit

blue-star speeltuin

explody fruit

timfa wsadhelios · pushed by timfa

Authored 2022-10-21 · 4 years ago

Hash
7fd16cfc7a4b68cae8f205919ba0bd7b26b92f66
Parent
da29ae09
1 file changed +5 −0
src/minigame/frog/fruit.js +5 −0
@@ -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 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 update (deltaTime)
29 update (deltaTime)
25 {
30 {
26 super.update(deltaTime);
31 super.update(deltaTime);