API Reference › Map — tilemap › Map.is_solid
method

Map.is_solid

Map.is_solid(x: tx, y: ty) -> bool

True when the cell holds one of the solid glyphs the Solids configuration names (wall, solid2), or lies outside the map. With no Solids entity nothing is solid. The move system and the projectiles use the same answer.

Example

# doc-check: skip — illustrative
if Map.is_solid(x: tile.x, y: tile.y) { continue }
← All symbols