mget - nesbox/TIC-80 GitHub Wiki

mget(x, y) -> tile_id

Parameters

  • x, y : map coordinates

Returns

  • tile_id : tile index

Description

This function returns the index of the tile at the specified map coordinates, the top left cell of the map being (0, 0). The map coordinates are not to be confused with the screen coordinates. One screen can contain 30×17 cells.

XYmap_coordinates

Related