SiliconGhetto Engine API
    Preparing search index...

    Function tilemapCollide

    • Slide a bounding box through the tile map, stopping at solid tiles.

      Parameters

      • cx: number

        Center X of the bounding box

      • cy: number

        Center Y of the bounding box

      • halfW: number

        Half-width of the bounding box

      • halfH: number

        Half-height of the bounding box

      • dx: number

        Desired horizontal movement

      • dy: number

        Desired vertical movement

      Returns TilemapCollideResult

      Result with resolved position (x, y) and collision flags (hitX, hitY)