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