Skip to content

fix(watch): a 4-frame sheet is 2x2, not 3x2 with two black cells - #8

Merged
jonit-dev merged 1 commit into
mainfrom
fix/watch-tile-grid
Nov 5, 2026
Merged

jonit-dev merged 1 commit into
mainfrom
fix/watch-tile-grid

Conversation

@jonit-dev

Copy link
Copy Markdown
Collaborator

Measured on a live OoT z-targeting run through the scaffolded-project path: --frames 4 tiled 3x2 and left two black cells, which read like frames the slicer failed to produce.

Columns now come from the frame count (ceil(sqrt(n)), capped at 3): 4 → 2x2, 2 → 2x1, 5 and 6 → 3x2, 12 → 3x4. At most one cell is ever blank.

tests/watch.spec.mjs pins the grid for 1, 2, 4, 5, 6 and 12 frames. npm test 44/44.

Measured on a live OoT run: four frames tiled 3x2 leave two black cells that
look like frames the slicer lost. Columns now come from the frame count
(ceil(sqrt(n)) capped at 3), so a blank cell only ever reads as padding.
@jonit-dev
jonit-dev merged commit 207f1bc into main Nov 5, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant