Repository navigation
The water of the world is what the land holds: no walls of water at roads or where levels meet, rapids instead; a street to every road end of a village (gw 79) - #512
Merged
Conversation
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Uiczdw3KUitNgtCeCv9tDM
k06a
force-pushed
the
claude/project-thread-kl5tv2
branch
from
December 2, 2026 21:18
d1b5182 to
baa8d37
Compare
…ets a street; the loop search ends Water level is one continuous field across the rise of a cliff basin (no jump from 60 to 20 along a line), with a dry rim and a river that leaves as rapids one cell at a time. Earthworks never bring land under the water of its place: way cells are drained, the inner skirt is a bank, no bridge deck under its water, a brook ends in a pond before a way. Every road that ends at a village has a street up to its end. Rail.make's search for a loop ends when a town alone cannot be served (seed 20261146 never came up). Tests: tools/water.test.mjs, tools/ways.test.mjs (vill, ends). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Uiczdw3KUitNgtCeCv9tDM
…-kl5tv2 # Conflicts: # build/notes.mjs # src/game/75_seed.js # tools/shots/485.mjs # tools/test-times.json
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Uiczdw3KUitNgtCeCv9tDM
…-kl5tv2 # Conflicts: # build/notes.mjs # src/game/35_track.js # tools/roads.mjs # tools/shots/487.mjs
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Uiczdw3KUitNgtCeCv9tDM
…; the after scene keeps the camera of the before scene Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Uiczdw3KUitNgtCeCv9tDM
Contributor
⏱ Performance: this PR against mainScenarios of src/game/98_perf.js, the two builds by turns on one runner (tools/perf.mjs, CPU side, draws counted not drawn). ✅ No regression against main More turns to settle a suspicion: night +2, tunnel +2 (a difference counts when the turns of the two builds stand apart, 8 turns each).
Over budget (ms/frame, budget): drive Land.lightTick 9.82 > 1 · drive Land.gen 3.10 > 0 · tunnel Land.lightTick 1.99 > 1 · drive Land.meshChunk 1.69 > 1 · flight Land.gen 0.60 > 0 · tunnel Land.gen 0.23 > 0 · idle Land.gen 0.03 > 0 Generated by Claude Code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Anton · project thread
🌊 The water of the world is what the land holds (world version gw 79)
Two remarks on one cliff world (seed code
01712ad9…, seed 7919914): right behind the house a wedge of water ended in a wall at a road, and 280 m from the home a lake was cut along a straight line. Both have one cause, in the generator: the water level is a field, and it jumped. The basin under the cliff has its water at 20, the world at 60, and the field switched between them on one threshold.What the generator does now (
31_terrain.js,35_span.js,35_roads.js,31_terrforms.js)Terr.nat,WL_EVEN_GWTerr.at,Span.lay,CUT_DRY_GWTerr.atSpan.profTerr.natTerr.stream,Roads.reach,BROOK_GWWorlds made before keep their version and their look; the same seed at the new version shows the fix.
🏘️ A road that ends at a village has a street to its end (
34_vill.js,VIL_IN_GW)tools/navi.test.mjswas still checking worlds of gw 65; on the current ones a car to Porto Sole (seed 20261139) left the road at the edge of the village and crossed 110 cells of grass. An arm of the main street sent to a road may stop where it meets another street. After every plan type has drawn its streets, a lane now winds from the nearest street to each road end that none reaches.Tests
tools/water.test.mjs(new; partscut,seam,ways,brook): 4.5 million columns of eight worlds walked cell by cell, 30 streams. No water made by an earthwork, no hanging face of water, no way under water, every stream has its water or a deck. Both remarks are reproduced at the version before the gate (592 columns of made water with 53 hanging at the road; 102 hanging columns along the seam).tools/ways.test.mjs:villchecks a street to the end of each of 174 roads at 64 villages (and finds the bare end in the old world); new partendscounts the passes ofRail.makeover 100 regions of four worlds (the hang of seed 20261146 that build 487 fixed: before it two of these worlds never ended).tools/navi.test.mjson the current worlds: 0.00 % off the net outside grown towns; golden hashes of all older worlds unchanged, two worlds of gw 79 added.docs/ARCHITECTURE.md: "The water of the world is what the land holds", and two lines in "The ways are one net" (a street to every road end; a search ends by its own form).Sources
Screenshots (before and after, the same seeds): in the release of this build,
tools/shots/488.mjs.https://claude.ai/code/session_01Uiczdw3KUitNgtCeCv9tDM
Generated by Claude Code