getTileXY

fun getTileXY(pixelX: Int, pixelY: Int): Pair<Int, Int>

Calculates the coordinates of the Tile containing the provided pixel coordinates.

Return

Tile coordinate as a Pair(x, y).

Parameters

pixelX

X coordinate of the pixel.

pixelY

Y coordinate of the pixel.