village
The village/trees/water part's entry module (paintedValley.village.village): build / update / setHour / destroy for the core's scene driver. Exposes trees, cast, tagEntities, buildingMaterial.
village
The village/trees/water part's entry module (paintedValley.village.village): build / update / setHour / destroy for the core's scene driver. Exposes trees, cast, tagEntities, buildingMaterial.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2paintedValley.village.village — the village/trees/water part of the Painted Valley port (blendi/painted-valley on Patch, MIT): src/valley/village.js (every building in the valley: the village on its rise and the farmsteads), src/valley/trees.js (the great tree, the groves, the far trees, the bushes, and their shade on the ground) and src/valley/water.js (the tarn). The scene driver requires this module and calls build / update / setHour / destroy. The part's table carries what main.js uses from these files: trees the { x, z, kind, scale, turn } list, in the original's order (kinds 0-3 the near trees first, then the far trees 4-6, then the bushes): collisions, sounds and physics colliders stop at the first kind > 3 cast(sunDir) lays the trees' shade on the ground for this sun (tShade); done for you on build, on setHour and when the hour drifts by more than 0.04, as main.js does tagEntities { { entity, tag = 0.4 }, ... }: every building's entity, for the frame's "already painted" tag buildingMaterial, drawShells, meshFrom (for anything else drawn as the original's buildings are)
sunNow(v: any) → void
| arg | type | description |
|---|---|---|
| v | any |
hourNow(v: any) → number
| arg | type | description |
|---|---|---|
| v | any |
cast(v: any) → void
| arg | type | description |
|---|---|---|
| v | any |
cast(sunDir: any) → void
Lays the trees' shade for this sun (main.js trees.cast).
| arg | type | description |
|---|---|---|
| sunDir | any |
putUpBuildings( ) → void
Every building a local entity under one root (temporary: never saved into a scene), tagged 0.4 for the frame.
build(v: any) → void
| arg | type | description |
|---|---|---|
| v | any |
rootAlive( ) → boolean
update(v: any, _dt: number) → void
| arg | type | description |
|---|---|---|
| v | any | |
| _dt | number |
setHour(_v: any, _hour: number) → void
The sky owns the hour; the trees' shade is cast again for it on the next update, once the sky has moved the sun.
| arg | type | description |
|---|---|---|
| _v | any | |
| _hour | number |
destroy(v: any) → void
| arg | type | description |
|---|---|---|
| v | any |
Sub-parts
Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.
Showing up to 3 levels deep. Open a part to see what it holds further down.
Problems
Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.
agent_score is exposed.+ quality × 0.35
+ performance × 0.25
± compat factor
Usability ratings
Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".
Scoped to this part · feeds back into the world's score.