method
Map.get
Map.get(x: tx, y: ty) -> int
Reads one cell of the tilemap by tile coordinates; outside the map it answers '#', so the edge of the world reads as wall.
Example
# doc-check: skip — illustrative
if Map.get(x: 3, y: 4) == '.' { … }