getTilesAtDistance

fun getTilesAtDistance(origin: Vector2, distance: Int): Sequence<TileInfo>

Return

All tiles in a hexagonal ring 1 tile wide around origin with the distance. Contains the origin if and only if distance is <= 0. Respects map edges and world wrap.

Sources

jvm source
Link copied to clipboard