Skip to content

fix: allow named spritesheet animation frames - #368

Open
han4wluc wants to merge 1 commit into
mainfrom
fix/spritesheet-frame-names
Open

han4wluc wants to merge 1 commit into
mainfrom
fix/spritesheet-frame-names

Conversation

@han4wluc

Copy link
Copy Markdown
Contributor

Spritesheet clips address frames by index into the atlas's key order, which JavaScript enumerates with array-index-like keys first: with authored frame order ["10", "2", "1"], clip indexes [0, 1] resolve to ["1", "2"]. The schema also rejects frame names.

Reproduce: an atlas with numeric-looking frame keys and a clip addressing them by index (regression tests and a visual test).

Fix: clip frames may be indexes or names, so clips can address frames without relying on key enumeration order.

Tests: schema, renderer and visual coverage (no visual mismatches); the full suite (2,164 tests) and lint pass.

This branch has not been deployed

No deployments
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