BlueGit

blue-star speeltuin

Files

speeltuin / src / minigame / frog / floorTile.js

floorTile.js

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