diff options
author | Andre Eisenbach <serenity@4ae.us> | 2022-12-14 16:43:27 -0500 |
---|---|---|
committer | Andrew Kaster <andrewdkaster@gmail.com> | 2022-12-16 08:50:35 -0700 |
commit | e80f0b23e32c6f8863e285d0cdb11716baf7756f (patch) | |
tree | 0b6afaffa5861123ca84c0679b27062e19f067a5 /Userland/Applications/TerminalSettings | |
parent | 213d82f39b30425c340b80099846e7266ee7c23c (diff) | |
download | serenity-e80f0b23e32c6f8863e285d0cdb11716baf7756f.zip |
CatDog: Simplify animation frame logic and fix minor bugs
Moved all images into a Vector instead of storing every animation frame
in its own member variable. This greatly simplifies the bitmap selection
logic and removes redundant if() checks.
Also fixes minor state bugs. For example, CatDog woudld go to sleep
immediately after actively moving for > 5 seconds. Also fixes arbitrary
hardcoded values for mouse offset movement tresholds as well as
inconsistent movement increments. This allows clicking anywhere on the
CatDog window without moving CatDog.
In addition to removing many member variables, the API interface is
also cleaned up a bit to expose less CatDog internals. Nobody likes
exposed CatDog internals ;).
Variables and function are also renamed where necessary to (hopefully)
improve readability.
Diffstat (limited to 'Userland/Applications/TerminalSettings')
0 files changed, 0 insertions, 0 deletions