ladybird/Userland/Demos
Andre Eisenbach e80f0b23e3 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.
2022-12-16 08:50:35 -07:00
..
CatDog CatDog: Simplify animation frame logic and fix minor bugs 2022-12-16 08:50:35 -07:00
Cube AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
Eyes Meta+Userland: Pass Gfx::IntPoint by value 2022-12-07 11:48:27 +01:00
Fire AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
LibGfxDemo Everywhere: Mark dependencies of most targets as PRIVATE 2022-11-01 14:49:09 +00:00
LibGfxScaleDemo Everywhere: Mark dependencies of most targets as PRIVATE 2022-11-01 14:49:09 +00:00
Mandelbrot LibGfx+Userland: Make PNGWriter::encode() return ErrorOr<ByteBuffer> 2022-12-08 13:01:11 +00:00
ModelGallery AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
Mouse WindowServer+MouseSettings: Improve buttons_switched naming 2022-12-08 07:04:09 -05:00
Screensaver Everywhere: Mark dependencies of most targets as PRIVATE 2022-11-01 14:49:09 +00:00
Starfield Everywhere: Mark dependencies of most targets as PRIVATE 2022-11-01 14:49:09 +00:00
Tubes Everywhere: Mark dependencies of most targets as PRIVATE 2022-11-01 14:49:09 +00:00
VirGLDemo VirGLDemo: Make a factory function for Demo and propagate errors 2022-12-15 12:35:19 +00:00
WidgetGallery LibGUI: Split OpacitySlider into vertical and horizontal helper classes 2022-12-09 00:25:30 +01:00
CMakeLists.txt Demos: Add Tubes :^) 2022-09-11 22:45:49 +01:00