Interface

TileComp

:

The tile component.

group Component Types

tilePos

: Vec2

The tile position inside the level.

isObstacle

: boolean

If the tile is an obstacle in pathfinding.

cost

: number

How much a tile is cost to traverse in pathfinding (default 0).

edges

: Edge[]

If the tile has hard edges that cannot pass in pathfinding.

tilePosOffset

: Vec2

Position offset when setting tilePos.

edgeMask

: EdgeMask

getLevel

(): GameObj<LevelComp>

tileMove

(dir: Vec2): void

moveLeft

(): void

moveRight

(): void

moveUp

(): void

moveDown

(): void
kaplay logo

Layer

Miscalenous