Repository navigation
Fixes: new icon, no scatter on roads, cars roam the streets - #36
Merged
Merged
Conversation
- Icons: ui/scripts/icon.sh renders the window, tray and notification PNGs from assets/logo.svg with rsvg-convert, replacing the old night skyline drawn by icon.mjs. The agent passes --icon=deepwork to notify-send, which the packages install into hicolor. - Town-grass tufts and rocks skipped only a block's pitch less 1 m, so every street's centre line and the outer streets got them. onStreets() in plan.ts matches the asphalt slab (the whole pitch), with a 1.5 m margin for crowns; tested against every road strip. - Traffic: cars drove one loop round their block forever. roads.ts builds a lane graph (a lane per block side, block on the right) with straight, right and left turns at each crossing that stay on the asphalt. Cars pick turns at random, stop at red on the signal cycle the lenses show (signal(), now shared with real.ts), give way inside unsignalled crossings, wait for room beyond and keep a gap. Simulated 10 minutes in tests at tier 0 and 2: no car within 2.5 m of another, none enters on red, all keep moving. Indexed by lane: 0.03 ms a step for 330 cars. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Clears the roadmap's Fixes section.
ui/scripts/icon.shrenders the icons fromassets/logo.svg(rsvg-convert); notifications pass--icon=deepwork.onStreets()(the full asphalt slab plus 1.5 m), tested against every road strip.roads.tslane graph. Cars go straight or turn at each crossing, obey the same signal cycle the lenses show (from a town on), give way at unsignalled crossings, and keep a gap. A 10-minute simulation in tests at tier 0 and tier 2 checks spacing (>2.5 m), no entry on red, and that every car keeps moving. 0.03 ms a step at 330 cars.Trips with destinations, buses on lines and roundabouts stay in the Streets ideas, since they need the street graph.
Not yet looked at in the real window: worth checking
bun run devwith?mock=city/?mock=metropolisfor how the turns look.🤖 Generated with Claude Code