W5: Vegetation and harvestable props
PropSet places about 3,000 pines, scrub, boulders, wrecks and crates per island from the seed, by elevation band with grove noise, clear of points of interest. Each prop is one collision box in SimGround with health from Tuning.PROP_KINDS; destroying it removes the box at once (SimGround.remove_solid). Prop health is part of the state hash. PropView draws them as one MultiMesh per kind per 128 m square (about 150 instanced draws), with per-kind visibility ranges, procedural flat-shaded meshes fitted to the collision boxes, and cheap sync of felled props. Closes #12 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+20
@@ -85,6 +85,26 @@ Each is assembled from modular parts (walls with doors, plinths, steps, roofs, s
|
||||
Loot spawn markers sit on their floors, for the loot system, and a test walks a player
|
||||
from open ground into every interior.
|
||||
|
||||
### Props
|
||||
|
||||
About 3,000 props cover each island, placed from the seed by
|
||||
[`src/sim/prop_set.gd`](../src/sim/prop_set.gd) at a density set per elevation band in
|
||||
`PROP_DENSITY`, with groves and clearings in the forest. They keep
|
||||
`PROP_POI_CLEARANCE` from every point of interest, its loot markers and its walking
|
||||
routes.
|
||||
|
||||
| Prop | Found | Harvests |
|
||||
|---|---|---|
|
||||
| Pine | Forest and highland | Driftwood |
|
||||
| Scrub | Marsh, forest, everywhere a little | Driftwood |
|
||||
| Boulder | Highland and summits | Stone |
|
||||
| Wreck | Beached hulls on the shore | Salvage iron |
|
||||
| Crate | Washed up on beaches | Driftwood |
|
||||
|
||||
Each prop has the health in `PROP_KINDS` and blocks players with one box. When it is
|
||||
destroyed its box goes at once. Both server and client place the same props from the
|
||||
seed, so only damage is match state.
|
||||
|
||||
## Tide phases
|
||||
|
||||
`TIDE_PHASES` is an ordered list of phases. Each one sets:
|
||||
|
||||
Reference in New Issue
Block a user