gnome-runcat
gnome-runcat copied to clipboard
Feature/animated-sleeping
Animated Sleeping
What?
- The cat has a sleeping animation now
- Varying number of sprites can be used in animations without needing to modify code
Why?
- It is adorable
- They need a nice nap after running
- Greater support for different animation sets
How?
-
iconProvider.js
looks for and loads sprites into arrays based on their name likerunning-0
orsleeping-3
etc. -
iconProvider.js
has a rudimentary state machine for different sprite sets (looking to implement feature/different-runners) -
prefs.js
et al. has a toggle button for reverting back to non-animated sleeping - Brand new sleeping sprites based on the original
my-sleeping-symbolic.svg
(contains cute snoozing)
Hello, @EXINCORE!
Thanks for the PR! I need some time to review the PR.
Please, fix conflicts and I will merge the PR
Closed by mistake, reopening...
Goodness, this will take a while to merge/rebase
@win0err I will clean up the idle sprites, but other than that, this feature is ready for re-review. Note that the animation state machine previously implemented in this feature is now removed.
Addition of RunnerPacks
and RunnerStates
constants moves hardcoded values of 'cat', 'idle', 'active'
out of the way, and also makes future expansion to other runner states like walking #29 or other runner packs #23 easier.
LGTM. Great work, thank you!