Tile#Tile
  • References/Game Development/Phaser/Tilemaps/Tile

new Tile(layer, index, x, y, width, height) A Tile is a representation of a single tile within the Tilemap. Parameters

2025-01-10 15:47:30
Tile#setCollisionCallback()
  • References/Game Development/Phaser/Tilemaps/Tile

setCollisionCallback(callback, context) Set a callback to be called when this tile is hit by an object.The callback must true

2025-01-10 15:47:30
Tile#left
  • References/Game Development/Phaser/Tilemaps/Tile

[readonly] left : number The x value in pixels. Source

2025-01-10 15:47:30
Tile#top
  • References/Game Development/Phaser/Tilemaps/Tile

[readonly] top : number The y value. Source

2025-01-10 15:47:30
Tile#worldX
  • References/Game Development/Phaser/Tilemaps/Tile

worldX Properties: Name Type Description

2025-01-10 15:47:30
Tile#index
  • References/Game Development/Phaser/Tilemaps/Tile

index : number The index of this tile within the map data corresponding to the tileset, or -1 if this represents a blank/null tile

2025-01-10 15:47:30
Tile#collisionCallbackContext
  • References/Game Development/Phaser/Tilemaps/Tile

collisionCallbackContext : Object The context in which the collision callback will be called.

2025-01-10 15:47:30
Tile#height
  • References/Game Development/Phaser/Tilemaps/Tile

height : number The height of the tile in pixels. Source code:

2025-01-10 15:47:30
Tile#centerY
  • References/Game Development/Phaser/Tilemaps/Tile

centerY Properties: Name Type Description

2025-01-10 15:47:30
Tile#faceRight
  • References/Game Development/Phaser/Tilemaps/Tile

faceRight : boolean Is the right of this tile an interesting edge? Source

2025-01-10 15:47:30