Serve stance can no longer render mirrored
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 <noreply@anthropic.com>
This commit is contained in:
1 parent
34f31a65a2
commit
91da24f1a7
1 file changed
+1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user