Repository navigation
feat(desktop-pet): add sprite pool and prepare v2.3.0 - #25
Merged
Merged
Conversation
…uan-cat Split each state into connected components (body, bubble, sweat drop, Zzz, sparkles) and derive a second frame per state (breathing squash, hop, accessory offsets). Ships as APNG under the .png extension with pack.json animated=true so static viewers keep the first frame.
The APNG part-animation experiment is retired; keep the static first frame as the shipped art. The animated state remains recoverable from the preceding feat(sprites) commit, and scripts/animate_pack.py can regenerate the frames at any time.
Clamp the window frame into the monitor work area when an anchored resize changes the window size, and add a periodic containment check to the position watchdog so any partial off-screen drift is corrected within 2 seconds.
Add sprite_pool to the desktop-pet config: when non-empty, the pet is randomly drawn from the pooled packs on launch, rerolled every 10 minutes, and a right-click 'Shuffle Pet' menu item rerolls on demand. Settings cards get a pool toggle per pack; an explicit single-pack choice clears the pool. Legacy configs without sprite_pool default to the previous single-pack behavior.
Derives two-frame APNG part animations (breathing squash, hop, accessory offsets) from static state art via connected-component separation, and finalizes pack.json animated flag, sha256 and fpack.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Validation
cargo test --workspacecargo clippy --workspace --all-targets -- -D warningscd app && npm run buildgit diff --checkNo telemetry or remote data collection is added.