Repository navigation
feat(game): longer races with bounded bathroom setback - #43
Merged
Merged
Conversation
Increase track length ~30% (11000 → 14300) to target ~90s races, and rework the poison "bathroom break" so it no longer teleports the runner all the way to the start. - track: LENGTH 11000 → 14300; BOOST_ZONE_COUNT 3 → 4 so booster cadence stays ~constant on the longer course. - bathroom break: knock the runner back a fixed POISON.setback (1500 units) instead of resetting to 0. The setback is bounded and independent of track length, so a longer course can't turn a bathroom break into a runaway loop. - un-resolve only the food in the setback stretch so it re-appears (an empty track read as a bug); the bounded window keeps it from chaining. - sync how-to-play copy (en/es) and docs to the new behavior. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Drop the "back to the start" wording now that the bathroom break is a bounded setback, and convey that worse junk fills the poison bar faster (per-food poison ranges 0.16–0.42, so 3–7 items fill it) instead of a fixed count. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This branch was successfully deployed
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.
What
Tunes race pacing and reworks the poison bathroom break so it no longer teleports the runner all the way to the start.
LENGTH11000 → 14300 (~30% longer) to target ~90s races.BOOST_ZONE_COUNT3 → 4 so boosters stay evenly spaced on the longer course (span ~2860 vs the original ~2750).POISON.setback(1500 units) instead of resetting to distance 0. The setback is bounded and independent of track length, so a longer course can't turn a bathroom break into a runaway loop.en/es),GAME-DESIGN,ARCHITECTURE,MULTIPLAYER,TOUR, andCHANGELOG.Why
A 30% longer track lands races near the casual-racing sweet spot (~90s). The original bathroom mechanic reset progress to 0 and re-enabled the whole track's food, which on a longer course could chain into an unbounded loop. The bounded setback caps the damage per break (~1500 units ≈ 8s at cruising speed) regardless of track length.
Testing
tsc --noEmit✓Notes / follow-up
Multiplayer's
FINISH_GRACE_MS(20s after the first finisher) is unchanged. With a longer track the spread between leader and stragglers widens, so if real matches show active runners ranked DNF, a follow-up should make the grace window scale with distance (or derive it from the leader's time).🤖 Generated with Claude Code