WIP splatter feedback round + HANDOFF.md for session continuation

Done (unverified): faster serve cadence in splatter (overT 0.25, serve from
where you stand, flick = instant aimed quick serve), aim-anywhere targeting
relative to the player. Not done: zombie speed ramp (G.splatT exists but is
never incremented), eaten-on-touch death + restart screen. Full state and
plans in HANDOFF.md.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
wuwiandClaude Fable 5 committed 2026-07-11 19:28:00 +02:00
1 parent 60c5f72a0a
commit e7aab295d4
4 files changed
+140 -15

No files matched your search

+2 -2
View File
@@ -28,6 +28,7 @@ export const G = {
aiSwingCool: 0,
aiReactT: 9, // time since the player's last hit; CPU reads the shot after TUNE.aiReaction
wasServe: false, // the ball in flight is a serve (first bounce must hit the box)
splatT: 0, // time survived in splatter mode — drives the difficulty ramp
};
export const other = s => s === 'P' ? 'O' : 'P';
@@ -35,9 +36,8 @@ export const deuceSide = () => (score.pts[0] + score.pts[1]) % 2 === 0; // even
export function setupPoint() {
G.phase = 'pretoss'; ball.active = false; ball.bounces = 0; ball.firstLand = null;
if (G.mode === 'splatter') { // always your serve; the receiver is... plural now
if (G.mode === 'splatter') { // always your serve, from wherever you're standing
score.server = 'P';
P.x = deuceSide() ? 1.3 : -1.3; P.z = 24.3;
P.pose = 'idle'; P.swingT = -1; P.facing = 1;
return;
}