PathNode

PhaserPathfinding. PathNode

The PathNode class is returned by the pathfinding algorithm and represents the node in the found path

Constructor

new PathNode(tileX, tileY, worldX, worldY, tileWidth, tileHeight)

Parameters:
Name Type Description
tileX number

The x position in tile unit

tileY number

The y position in tile unit

worldX number

The x position in pixels

worldY number

The y position in pixels

tileWidth number

The width of the tile in px

tileHeight number

The height of the tile in px

Properties:
Name Type Description
tileX number

The x position in tile unit

tileY number

The y position in tile unit

worldX number

The x position in pixels

worldY number

The y position in pixels

tileWidth number

The width of the tile in px

tileHeight number

The height of the tile in px

Source: