| 1 | class 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 | } |