nav_load_index indexes a saved mesh's tiles (cell, offset, size, ref) from their headers and keeps the file open, with no tile in. nav_tiles_keep reads in the tiles within rin of any player and removes those past rout of all; the file is read through Ludic's pack-aware file_open. The file format is unchanged. tiles_test: tiles come and go with the point, a path works across the seams once they are in, and a reset closes all. Measured on the baked maps (the 900 / 1100 m ring round the start): Maroon 617 of 1807 tiles in, 8.9 MB instead of about 27 MB for a person and 5.4 MB of about 14 for a large walker; Lamar 391 of 1147. Both libraries are rebuilt; nav 17/17 on the Mac and the PC, DLL KERNEL32 only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 lines
483 B
Text
12 lines
483 B
Text
# ludic.nav - a navmesh per kind of walker (a person, a large animal, a small one): built from
|
|
# triangles and the cylinders nothing stands in, or loaded from the bytes a bake saved; asked for
|
|
# the nearest walkable point, a path as corners, and whether a straight line stays walkable.
|
|
module ludic_nav uses ludic_base
|
|
numbers float
|
|
import "ludic.base"
|
|
import "native.ludic"
|
|
import "state.ludic"
|
|
import "build.ludic"
|
|
import "query.ludic"
|
|
import "crowd.ludic"
|
|
import "resident.ludic"
|