BlueGit

blue-star speeltuin

Files

speeltuin / src / minigame / frog / floorTile.js

floorTile.js

stuff
timfa wsadhelios · pushed by timfa · 4 years ago
74a5c5f9 History
floorTile.js 355 B Download Raw
1class FloorTile extends GameObject{
2
3 constructor(x,y,sprite,layer)
4 {
5 super(x,y,sprite,layer);
6 this.collider.enabled = true;
7 }
8
9 onDestroy()
10 {
11 this.scene.addObject(new FloorTileDestroyer(this.transform.position.x, this.transform.position.y, this.scene.game.images.tile_floor_explosion,0, .05, true));
12 }
13}