From 91da24f1a726c97ea7c7d417a5109caedd3b3c83 Mon Sep 17 00:00:00 2001 From: Oliver Rieger Date: Sat, 11 Jul 2026 15:01:59 +0200 Subject: [PATCH] Serve stance can no longer render mirrored MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The sprite file was fine — drawChar mirrors sprites by P.facing, which persisted from the last run direction, so the pre-serve bounce stance randomly flipped (racket in the wrong hand, ball beside the wrong hand). setupPoint now resets both players to the canonical righty stance. Co-Authored-By: Claude Fable 5 --- game.js | 1 + 1 file changed, 1 insertion(+) diff --git a/game.js b/game.js index 56f83f8..5cff7f4 100644 --- a/game.js +++ b/game.js @@ -249,6 +249,7 @@ function setupPoint() { sv.z = sv.side === 'P' ? 24.3 : -0.5; rc.x = -sv.x; rc.z = rc.side === 'P' ? 22.5 : 1.2; P.pose = O.pose = 'idle'; P.swingT = O.swingT = -1; + P.facing = O.facing = 1; // canonical righty stance — bounce/serve sprites must not render mirrored aiServeT = score.server === 'O' ? 1.4 : 0; }