feat: add facing orientation to parts

Replace the face/back boolean with a three-state facing (face, back,
standing) seeded from setup placements. Parts now orient about the
anchor at the resting face/edge, so back-down parts sit on the table
instead of below it and standing parts rest on their bottom edge.
This commit is contained in:
2026-08-10 11:47:58 +08:00
parent aa23e93b3f
commit d663f4afea
13 changed files with 126 additions and 36 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ interface GameState {
interface PartState {
path: string; // the path key this part is on
index: number; // the part's position in its path's stack
face: boolean; // whether the part's face is up
facing: 'face' | 'back' | 'standing'; // how the part is oriented on the board
}
```