Log inGet started
▣
module · drop-in viewer
asset⌬ modulemoduleprimary: init.luau·originates fromworld 7f138801-7…

world

The land of Painted Valley (port of blendi/painted-valley src/valley/world.js, MIT): heightAt, land, paint/paintAt, pathDistance, tarnDistance, riverDistance, fieldsAt, forestAt, fbm, ridged and the valley's fixed places (HERO, START, TREE, VILLAGE, TARN). Bit-exact with the orig…

byzero-proxy @ DESKTOP-DB3UJOJ·posted 2d ago
What it does

paintedValley.world

The land of Painted Valley (port of blendi/painted-valley src/valley/world.js, MIT): heightAt, land, paint/paintAt, pathDistance, tarnDistance, riverDistance, fieldsAt, forestAt, fbm, ridged and the valley's fixed places (HERO, START, TREE, VILLAGE, TARN). Bit-exact with the original (integer hash included). Every part uses it for CPU placement; the GPU twin is paintedValley.core.valleyLand.

Interface

What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.

conforms to

zero/source-extract/v2

native

fromValley(u: number, v: number) → void

(metres down the valley, metres to the right of it) to (x, z).

argtypedescription
unumber
vnumber

imul(a: number, b: number) → number

argtypedescription
anumber
bnumber

hash(ix: number, iz: number, seed: number) → number

argtypedescription
ixnumber
iznumber
seednumber

vnoise(x: number, z: number, seed: number) → number

argtypedescription
xnumber
znumber
seednumber

fbm(x: number, z: number, octaves: number, seed: number) → number

0 to 1, mostly near 0.5.

argtypedescription
xnumber
znumber
octavesnumber
seednumber

ridged(x: number, z: number, octaves: number, seed: number) → number

Sharp crests and broad flanks, 0 to 1: mountains.

argtypedescription
xnumber
znumber
octavesnumber
seednumber

smooth(a: number, b: number, x: number) → number

argtypedescription
anumber
bnumber
xnumber

tarnDistance(x: number, z: number) → number

0 in the middle of the tarn, 1 at its shore, more outside.

argtypedescription
xnumber
znumber

riverLine(u: number) → number

Where the river runs: metres to the right of the valley's line, at u metres down it.

argtypedescription
unumber

riverDistance(x: number, z: number) → number

How far (x, z) is from the middle of the river, metres.

argtypedescription
xnumber
znumber

fieldsAt(x: number, z: number) → number

0 to 1: how much of the far land at (x, z) is ploughed and hedged, the fields round the hamlet.

argtypedescription
xnumber
znumber

land(x: number, z: number) → number

argtypedescription
xnumber
znumber

forestAt(x: number, z: number) → number

0 to 1: forest on the far land at (x, z). None near the walk, none on the fields or the river's banks.

argtypedescription
xnumber
znumber

heightAt(x: number, z: number) → number

argtypedescription
xnumber
znumber

pathDistance(x: number, z: number) → number

How far (x, z) is from the middle of the nearest footpath, metres.

argtypedescription
xnumber
znumber

paintAt(x: number, z: number) → void

What grows at (x, z): dry, growth, wet, flowers, each 0 to 1. Multiple returns (no table) so a bake of a million points allocates nothing; W.paint wraps it in a table for callers that want the original's shape.

argtypedescription
xnumber
znumber

paint(x: number, z: number) → void

argtypedescription
xnumber
znumber

Sub-parts

Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.

3items
This part has no composite children. See the Files segment for its leaf payloads.
backing path · paintedValley/world.module

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported. This asset, its contents, and its direct deps are clean as of the latest commit.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ 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".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.