API Reference › Map — tilemap › Map.random_cell_far
method

Map.random_cell_far

Map.random_cell_far(glyph:, from:, min_tiles:) -> IVec2

Like Map.random_cell, but at least min_tiles from from when it can find one — a spawn point away from the hero.

Example

# doc-check: skip — illustrative
let tile = Map.random_cell_far(glyph: '.', from: hero_tile, min_tiles: 6)
← All symbols