commit 75df901d2de2713d03adaa476101af3ecfd39d50 Author: olcxja Date: Wed Oct 28 09:56:33 2026 +0100 bleh diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..aa34a39 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +/target +/frames +/dist diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..e486214 --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,1371 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "async-broadcast" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "435a87a52755b8f27fcf321ac4f04b2802e337c8c4872923137471ec39c37532" +dependencies = [ + "event-listener", + "event-listener-strategy", + "futures-core", + "pin-project-lite", +] + +[[package]] +name = "async-channel" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "924ed96dd52d1b75e9c1a3e6275715fd320f5f9439fb5a4a11fa51f4221158d2" +dependencies = [ + "concurrent-queue", + "event-listener-strategy", + "futures-core", + "pin-project-lite", +] + +[[package]] +name = "async-executor" +version = "1.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c96bf972d85afc50bf5ab8fe2d54d1586b4e0b46c97c50a0c9e71e2f7bcd812a" +dependencies = [ + "async-task", + "concurrent-queue", + "fastrand", + "futures-lite", + "pin-project-lite", + "slab", +] + +[[package]] +name = "async-io" +version = "2.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "456b8a8feb6f42d237746d4b3e9a178494627745c3c56c6ea55d92ba50d026fc" +dependencies = [ + "autocfg", + "cfg-if", + "concurrent-queue", + "futures-io", + "futures-lite", + "parking", + "polling", + "rustix", + "slab", + "windows-sys", +] + +[[package]] +name = "async-lock" +version = "3.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "290f7f2596bd5b78a9fec8088ccd89180d7f9f55b94b0576823bbbdc72ee8311" +dependencies = [ + "event-listener", + "event-listener-strategy", + "pin-project-lite", +] + +[[package]] +name = "async-process" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc50921ec0055cdd8a16de48773bfeec5c972598674347252c0399676be7da75" +dependencies = [ + "async-channel", + "async-io", + "async-lock", + "async-signal", + "async-task", + "blocking", + "cfg-if", + "event-listener", + "futures-lite", + "rustix", +] + +[[package]] +name = "async-recursion" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4f8abc12baad266b1c8cec146854c195b5864b4221d4b2ca7296a7ae82d9e451" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "async-signal" +version = "0.2.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52b5aaafa020cf5053a01f2a60e8ff5dccf550f0f77ec54a4e47285ac2bab485" +dependencies = [ + "async-io", + "async-lock", + "atomic-waker", + "cfg-if", + "futures-core", + "futures-io", + "rustix", + "signal-hook-registry", + "slab", + "windows-sys", +] + +[[package]] +name = "async-task" +version = "4.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b75356056920673b02621b35afd0f7dda9306d03c79a30f5c56c44cf256e3de" + +[[package]] +name = "async-trait" +version = "0.1.92" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82f6aeea286b8eb4dd3431a1be1b59d290ace00f5bfd8e2a159bc2a05e2c1667" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "atomic-waker" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" + +[[package]] +name = "autocfg" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53" + +[[package]] +name = "bitflags" +version = "2.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06" + +[[package]] +name = "blocking" +version = "1.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a70e4329df6cb94385eed412ec92375c3cdd8a6e502493d1229b6414e4036dfa" +dependencies = [ + "async-channel", + "async-task", + "futures-io", + "futures-lite", + "piper", +] + +[[package]] +name = "bumpalo" +version = "3.20.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649" + +[[package]] +name = "bytemuck" +version = "1.25.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95832e849adfb21180ccb6826a99da14e5d266ae5c2e668e1602cf234f153797" + +[[package]] +name = "byteorder-lite" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f1fe948ff07f4bd06c30984e69f5b4899c516a3ef74f34df92a2df2ab535495" + +[[package]] +name = "cc" +version = "1.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "86e055fa6e3e40ad6187ba25b6855eeb635d5271f8e0f0e1e9a5826b8d75bea0" +dependencies = [ + "find-msvc-tools", + "shlex", +] + +[[package]] +name = "cfg-if" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600" + +[[package]] +name = "concurrent-queue" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ca0197aee26d1ae37445ee532fefce43251d24cc7c166799f4d46817f1d3973" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "convert_frames" +version = "0.1.0" +dependencies = [ + "hamster-pet", + "image", + "serde_json", +] + +[[package]] +name = "crossbeam-utils" +version = "0.8.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a31eee39dddec8330830986fcd7625edb5a24ec90ea038215273bbc3adb08ac6" + +[[package]] +name = "downcast-rs" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75b325c5dbd37f80359721ad39aca5a29fb04c89279657cffdda8736d0c0b9d2" + +[[package]] +name = "endi" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "66b7e2430c6dff6a955451e2cfc438f09cea1965a9d6f87f7e3b90decc014099" + +[[package]] +name = "enumflags2" +version = "0.7.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1027f7680c853e056ebcec683615fb6fbbc07dbaa13b4d5d9442b146ded4ecef" +dependencies = [ + "enumflags2_derive", + "serde", +] + +[[package]] +name = "enumflags2_derive" +version = "0.7.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67c78a4d8fdf9953a5c9d458f9efe940fd97a0cab0941c075a813ac594733827" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "equivalent" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00d174d5400e5e8fd687ad1049e2f578285fa914201b1af7e8b112a4546bd826" + +[[package]] +name = "errno" +version = "0.3.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" +dependencies = [ + "libc", + "windows-sys", +] + +[[package]] +name = "event-listener" +version = "5.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a23add41df1562121a9393cb065eab5146a1242410f23a644851e90cfd669d2" +dependencies = [ + "parking", + "pin-project-lite", +] + +[[package]] +name = "event-listener-strategy" +version = "0.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8be9f3dfaaffdae2972880079a491a1a8bb7cbed0b8dd7a347f668b4150a3b93" +dependencies = [ + "event-listener", + "pin-project-lite", +] + +[[package]] +name = "fastrand" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223" + +[[package]] +name = "find-msvc-tools" +version = "0.1.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c66915cc5391097de7a2b0b972e8505aa33c0df401fd3a6811dbdb32881ba48" + +[[package]] +name = "futures-core" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92d699e522242e69e3003b94ecc1f960f3a5e015aa7c5d7486e65ad01dd94f5e" + +[[package]] +name = "futures-io" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "53c0fa8157de1303bfffdaa1cc2a673bfffb60102f76b0ef4441659124373fed" + +[[package]] +name = "futures-lite" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f78e10609fe0e0b3f4157ffab1876319b5b0db102a2c60dc4626306dc46b44ad" +dependencies = [ + "fastrand", + "futures-core", + "futures-io", + "parking", + "pin-project-lite", +] + +[[package]] +name = "futures-task" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd417de3d1d015fc3bfd2b1ea46dfc7bab72ef86f1cc7cc9c78e728b34a6d1fd" + +[[package]] +name = "futures-util" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d50a92467f8ba5dd6e3ee5d4bd04d73ab2e4e1c44474a0674821dfce14b79bc" +dependencies = [ + "futures-core", + "futures-task", + "pin-project-lite", + "slab", +] + +[[package]] +name = "gethostname" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1bd49230192a3797a9a4d6abe9b3eed6f7fa4c8a8a4947977c6f80025f92cbd8" +dependencies = [ + "rustix", + "windows-link", +] + +[[package]] +name = "getrandom" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099" +dependencies = [ + "cfg-if", + "libc", + "r-efi", +] + +[[package]] +name = "hamster-pet" +version = "0.1.0" +dependencies = [ + "image", + "libc", + "notify", + "serde", + "serde_json", + "wayland-client", + "wayland-protocols", + "wayland-protocols-wlr", + "windows", + "windows-future", + "x11rb", + "zbus", +] + +[[package]] +name = "hashbrown" +version = "0.17.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a" + +[[package]] +name = "hermit-abi" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e17592d60ebacc7d5e169f4663c5f84f9161cc90328abcfe8456f41e4dfcb284" + +[[package]] +name = "hex" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" + +[[package]] +name = "image" +version = "0.25.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85ab80394333c02fe689eaf900ab500fbd0c2213da414687ebf995a65d5a6104" +dependencies = [ + "bytemuck", + "byteorder-lite", + "image-webp", + "moxcms", + "num-traits", + "zune-core", + "zune-jpeg", +] + +[[package]] +name = "image-webp" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "525e9ff3e1a4be2fbea1fdf0e98686a6d98b4d8f937e1bf7402245af1909e8c3" +dependencies = [ + "byteorder-lite", + "quick-error", +] + +[[package]] +name = "indexmap" +version = "2.14.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc4e190f5d26ca7051642629da2c52fc03bde85a03197c99408dcd291734c855" +dependencies = [ + "equivalent", + "hashbrown", +] + +[[package]] +name = "inotify" +version = "0.11.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cc00ea907cab49550b7da656f80ebb97be1b997d931fbcd28d39734e17ce592" +dependencies = [ + "bitflags", + "inotify-sys", + "libc", +] + +[[package]] +name = "inotify-sys" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c033f80b2c113cdf91ab7a33faa9cbc014726dcad99880c8609af2a370edf37d" +dependencies = [ + "libc", +] + +[[package]] +name = "itoa" +version = "1.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682" + +[[package]] +name = "js-sys" +version = "0.3.106" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7883d941dae510fb2d978fc3fe018c71c9e2892fd38854de3e8b92c2e5ad9cc5" +dependencies = [ + "cfg-if", + "futures-util", + "wasm-bindgen", +] + +[[package]] +name = "kqueue" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d763e5b24120b4ddf50de6c92308156765aabfbbccebf401da7cff2d70a41ea" +dependencies = [ + "kqueue-sys", + "libc", +] + +[[package]] +name = "kqueue-sys" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07293a4e297ac234359b510362495713f75ea345d5307140414f20c69ffeb087" +dependencies = [ + "bitflags", + "libc", +] + +[[package]] +name = "libc" +version = "0.2.191" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a" + +[[package]] +name = "linux-raw-sys" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53" + +[[package]] +name = "log" +version = "0.4.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f9f8bd3e56ce4dfc153cf470fffbfa98c7620958b312ca5c3a4b8d5181fd13c6" + +[[package]] +name = "memchr" +version = "2.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98" + +[[package]] +name = "memoffset" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a" +dependencies = [ + "autocfg", +] + +[[package]] +name = "mio" +version = "1.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1788edb87fdc09c7e26304471e2f5be8cdefb1b6930d6e3985fc02ff53bf86ee" +dependencies = [ + "libc", + "log", + "wasi", + "windows-sys", +] + +[[package]] +name = "moxcms" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb85c154ba489f01b25c0d36ae69a87e4a1c73a72631fc6c0eb6dde34a73e44b" +dependencies = [ + "num-traits", + "pxfm", +] + +[[package]] +name = "notify" +version = "8.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82f812702fbc75d35416d3f884e04925be7e9498f4eceea2e24ba34559284674" +dependencies = [ + "bitflags", + "inotify", + "kqueue", + "libc", + "log", + "mio", + "notify-types", + "objc2-core-foundation", + "objc2-core-services", + "walkdir", + "windows-sys", +] + +[[package]] +name = "notify-types" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42b8cfee0e339a0337359f3c88165702ac6e600dc01c0cc9579a92d62b08477a" +dependencies = [ + "bitflags", +] + +[[package]] +name = "num-traits" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" +dependencies = [ + "autocfg", +] + +[[package]] +name = "objc2-core-foundation" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536" +dependencies = [ + "bitflags", +] + +[[package]] +name = "objc2-core-services" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "583300ad934cba24ff5292aee751ecc070f7ca6b39a574cc21b7b5e588e06a0b" +dependencies = [ + "libc", + "objc2-core-foundation", +] + +[[package]] +name = "once_cell" +version = "1.21.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50" + +[[package]] +name = "ordered-stream" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9aa2b01e1d916879f73a53d01d1d6cee68adbb31d6d9177a8cfce093cced1d50" +dependencies = [ + "futures-core", + "pin-project-lite", +] + +[[package]] +name = "parking" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f38d5652c16fde515bb1ecef450ab0f6a219d619a7274976324d5e377f7dceba" + +[[package]] +name = "pin-project-lite" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd" + +[[package]] +name = "piper" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c835479a4443ded371d6c535cbfd8d31ad92c5d23ae9770a61bc155e4992a3c1" +dependencies = [ + "atomic-waker", + "fastrand", + "futures-io", +] + +[[package]] +name = "pkg-config" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6b464fbc74e149a392436b17d523f769e057cb6877f6a5c4618bc6f11800548" + +[[package]] +name = "polling" +version = "3.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d0e4f59085d47d8241c88ead0f274e8a0cb551f3625263c05eb8dd897c34218" +dependencies = [ + "cfg-if", + "concurrent-queue", + "hermit-abi", + "pin-project-lite", + "rustix", + "windows-sys", +] + +[[package]] +name = "proc-macro-crate" +version = "3.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e67ba7e9b2b56446f1d419b1d807906278ffa1a658a8a5d8a39dcb1f5a78614f" +dependencies = [ + "toml_edit", +] + +[[package]] +name = "proc-macro2" +version = "1.0.107" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "pxfm" +version = "0.1.30" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d55d956fa96f5ec02be2e13af0e20391a5aa83d6a074e3ad368959d0fab299ea" + +[[package]] +name = "quick-error" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a993555f31e5a609f617c12db6250dedcac1b0a85076912c436e6fc9b2c8e6a3" + +[[package]] +name = "quick-xml" +version = "0.41.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e660451e55124f798a69a5af3f49ccfbefbd41910eefd25caf2393e1f3473ec1" +dependencies = [ + "memchr", +] + +[[package]] +name = "quote" +version = "1.0.47" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "r-efi" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" + +[[package]] +name = "rustix" +version = "1.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5e76742e5294153d4dde1207dbec5bdd81eef6fabdc0d2118babadabfd858aa" +dependencies = [ + "bitflags", + "errno", + "libc", + "linux-raw-sys", + "windows-sys", +] + +[[package]] +name = "rustversion" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f" + +[[package]] +name = "same-file" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" +dependencies = [ + "winapi-util", +] + +[[package]] +name = "serde" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba" +dependencies = [ + "serde_core", + "serde_derive", +] + +[[package]] +name = "serde_core" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_derive" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "serde_json" +version = "1.0.154" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7e9cc8b1b85264074fbcc02a88680c4096b1e47df8f739dceb03bf482f04bd6" +dependencies = [ + "itoa", + "memchr", + "serde", + "serde_core", + "zmij", +] + +[[package]] +name = "serde_repr" +version = "0.1.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d3b1629de253c70a0508c3899572da79ca359fdab27c7920ff00406df418906" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "shlex" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba" + +[[package]] +name = "signal-hook-registry" +version = "1.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b" +dependencies = [ + "errno", + "libc", +] + +[[package]] +name = "slab" +version = "0.4.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" + +[[package]] +name = "smallvec" +version = "1.16.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0d5d4b1981b8bbbb7aed204cae5726d683d5d6ac7e74ec54122ea28f315e7c8" + +[[package]] +name = "syn" +version = "2.0.119" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "syn" +version = "3.0.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d78c8dee4c7bf0e14673097256fed6142ce9d3b85a408189d07482442145823b" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "tempfile" +version = "3.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd" +dependencies = [ + "fastrand", + "getrandom", + "once_cell", + "rustix", + "windows-sys", +] + +[[package]] +name = "toml_datetime" +version = "1.1.2+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b86d767906c6c42421dcba507eb9d203e779497710a47782a224bb871653053" +dependencies = [ + "serde_core", +] + +[[package]] +name = "toml_edit" +version = "0.25.17+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3641d5bbb5349a79e1020a242d251efbc546ad8048d133958323ce9c40a9c9c" +dependencies = [ + "indexmap", + "toml_datetime", + "toml_parser", + "winnow", +] + +[[package]] +name = "toml_parser" +version = "1.1.5+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "baa693a8032d7e1cada7d0041e96126df243179ff061456783ac7f12bda4744c" +dependencies = [ + "winnow", +] + +[[package]] +name = "tracing" +version = "0.1.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100" +dependencies = [ + "pin-project-lite", + "tracing-attributes", + "tracing-core", +] + +[[package]] +name = "tracing-attributes" +version = "0.1.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "tracing-core" +version = "0.1.36" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a" +dependencies = [ + "once_cell", +] + +[[package]] +name = "uds_windows" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2f6fb2847f6742cd76af783a2a2c49e9375d0a111c7bef6f71cd9e738c72d6e" +dependencies = [ + "memoffset", + "tempfile", + "windows-sys", +] + +[[package]] +name = "unicode-ident" +version = "1.0.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563" + +[[package]] +name = "uuid" +version = "1.29.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4a0e2d11620c50695fe12bbbfde96b3477fe606e7284c22d505c12ce51214514" +dependencies = [ + "js-sys", + "serde_core", + "wasm-bindgen", +] + +[[package]] +name = "walkdir" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" +dependencies = [ + "same-file", + "winapi-util", +] + +[[package]] +name = "wasi" +version = "0.11.1+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" + +[[package]] +name = "wasm-bindgen" +version = "0.2.129" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9bb54f33acc68fd454578d9820b0bde1a1a3d17aa17bb7b6595806d02886d409" +dependencies = [ + "cfg-if", + "once_cell", + "rustversion", + "wasm-bindgen-macro", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-macro" +version = "0.2.129" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2e29d0c35b16e224a7eeb5cd2d25e3e1968fbd65604117b44d3b789d00ee8535" +dependencies = [ + "quote", + "wasm-bindgen-macro-support", +] + +[[package]] +name = "wasm-bindgen-macro-support" +version = "0.2.129" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6f501a8bc3719dba86ef8ae4728879c08001bea749eb1333ac5b91e040e2a6b7" +dependencies = [ + "bumpalo", + "proc-macro2", + "quote", + "syn 3.0.9", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-shared" +version = "0.2.129" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23f0c9c52aa7cd7d77769a4cfe2a9adb1b331f489a41d912ce14513d5ab995c6" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "wayland-backend" +version = "0.3.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38a91b4eaddff87b1cd1074985e3713da4af2c49742d1b356b2c01670a67a078" +dependencies = [ + "cc", + "downcast-rs", + "rustix", + "smallvec", + "wayland-sys", +] + +[[package]] +name = "wayland-client" +version = "0.31.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3c36a0f861ad76d0901f2800b46321410d9f73f2ea88aac0650d86c32688073" +dependencies = [ + "bitflags", + "rustix", + "wayland-backend", + "wayland-scanner", +] + +[[package]] +name = "wayland-protocols" +version = "0.32.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23d0c813de3daa2ed6520af85a3bd49b0e722a3078506899aa9686fea58dc4b6" +dependencies = [ + "bitflags", + "wayland-backend", + "wayland-client", + "wayland-scanner", +] + +[[package]] +name = "wayland-protocols-wlr" +version = "0.3.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eb04e52f7836d7c7976c78ca0250d61e33873c34156a2a1fc9474828ec268234" +dependencies = [ + "bitflags", + "wayland-backend", + "wayland-client", + "wayland-protocols", + "wayland-scanner", +] + +[[package]] +name = "wayland-scanner" +version = "0.31.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "338e30461b3a2b67d70eb30a6d89f8e0c93a833e07d2ae89085cd070c4a00ac0" +dependencies = [ + "proc-macro2", + "quick-xml", + "quote", +] + +[[package]] +name = "wayland-sys" +version = "0.31.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d8eab23fefc9e41f8e841df4a9c707e8a8c4ed26e944ef69297184de2785e3be" +dependencies = [ + "pkg-config", +] + +[[package]] +name = "winapi-util" +version = "0.1.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" +dependencies = [ + "windows-sys", +] + +[[package]] +name = "windows" +version = "0.62.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "527fadee13e0c05939a6a05d5bd6eec6cd2e3dbd648b9f8e447c6518133d8580" +dependencies = [ + "windows-collections", + "windows-core", + "windows-future", + "windows-numerics", +] + +[[package]] +name = "windows-collections" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23b2d95af1a8a14a3c7367e1ed4fc9c20e0a26e79551b1454d72583c97cc6610" +dependencies = [ + "windows-core", +] + +[[package]] +name = "windows-core" +version = "0.62.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb" +dependencies = [ + "windows-implement", + "windows-interface", + "windows-link", + "windows-result", + "windows-strings", +] + +[[package]] +name = "windows-future" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e1d6f90251fe18a279739e78025bd6ddc52a7e22f921070ccdc67dde84c605cb" +dependencies = [ + "windows-core", + "windows-link", + "windows-threading", +] + +[[package]] +name = "windows-implement" +version = "0.60.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "windows-interface" +version = "0.59.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "windows-link" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" + +[[package]] +name = "windows-numerics" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e2e40844ac143cdb44aead537bbf727de9b044e107a0f1220392177d15b0f26" +dependencies = [ + "windows-core", + "windows-link", +] + +[[package]] +name = "windows-result" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-strings" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-sys" +version = "0.61.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-threading" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3949bd5b99cafdf1c7ca86b43ca564028dfe27d66958f2470940f73d86d75b37" +dependencies = [ + "windows-link", +] + +[[package]] +name = "winnow" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23b97319f7b8343df12cc98938e5c3eb436064524c8d2b4e30a1d3a36eecdf81" +dependencies = [ + "memchr", +] + +[[package]] +name = "x11rb" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9993aa5be5a26815fe2c3eacfc1fde061fc1a1f094bf1ad2a18bf9c495dd7414" +dependencies = [ + "gethostname", + "rustix", + "x11rb-protocol", +] + +[[package]] +name = "x11rb-protocol" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea6fc2961e4ef194dcbfe56bb845534d0dc8098940c7e5c012a258bfec6701bd" + +[[package]] +name = "zbus" +version = "5.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5db4be7c075cb421e4b7ee645541604239bd243ba7c357511f4ff3a74b555907" +dependencies = [ + "async-broadcast", + "async-executor", + "async-io", + "async-lock", + "async-process", + "async-recursion", + "async-task", + "async-trait", + "blocking", + "enumflags2", + "event-listener", + "futures-core", + "futures-lite", + "hex", + "libc", + "ordered-stream", + "rustix", + "serde", + "serde_repr", + "tracing", + "uds_windows", + "uuid", + "windows-sys", + "winnow", + "zbus_macros", + "zbus_names", + "zvariant", +] + +[[package]] +name = "zbus_macros" +version = "5.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2990635d09ade6df1868f72f8cac69a876a90981e8bd3c40b1be413f8dc88f40" +dependencies = [ + "proc-macro-crate", + "proc-macro2", + "quote", + "syn 3.0.9", + "zbus_names", + "zvariant", + "zvariant_utils", +] + +[[package]] +name = "zbus_names" +version = "4.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "812a12be4ead7a59e18ea8f047d08add0066b73bc62fc1467066a2472ae088dd" +dependencies = [ + "serde", + "winnow", + "zvariant", +] + +[[package]] +name = "zcheapstr" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1afec51604565183aeb5c54c20aeab286120d4e4460f7f76e3e8bb8c0d99473" +dependencies = [ + "serde", +] + +[[package]] +name = "zmij" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b" + +[[package]] +name = "zune-core" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d56377fd46368984a170bc5aac5567e52ca5da874caa60bea39fcbca78fb658b" + +[[package]] +name = "zune-jpeg" +version = "0.5.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27bc9d5b815bc103f142aa054f561d9187d191692ec7c2d1e2b4737f8dbd7296" +dependencies = [ + "zune-core", +] + +[[package]] +name = "zvariant" +version = "5.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "80bf6d6cd6a4b601acb64cfb8284cdc643fcfa75ef26ae3c46ec8aa4e8a1fbb7" +dependencies = [ + "endi", + "enumflags2", + "serde", + "winnow", + "zcheapstr", + "zvariant_derive", + "zvariant_utils", +] + +[[package]] +name = "zvariant_derive" +version = "5.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef2672456ba1cb54b5eaec136e63135b3c7495fb938e53b28a62e633496d486d" +dependencies = [ + "proc-macro-crate", + "proc-macro2", + "quote", + "syn 3.0.9", + "zvariant_utils", +] + +[[package]] +name = "zvariant_utils" +version = "4.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bad0294361a320b694a328460dc73add56c306150f5cb6bfafc44446120008a3" +dependencies = [ + "proc-macro2", + "quote", + "serde", + "syn 3.0.9", + "winnow", +] diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..16787d4 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,51 @@ +[workspace] +members = ["tools/convert_frames"] +resolver = "2" + +[package] +name = "hamster-pet" +version = "0.1.0" +edition = "2021" +description = "Transparent always-on-top desktop hamster driven by the frames/ clip set" +license = "MIT" + +[lib] +name = "hamster_pet" +path = "src/lib.rs" + +[[bin]] +name = "hamster-pet" +path = "src/main.rs" + +[dependencies] +serde = { version = "1", features = ["derive"] } +serde_json = "1" +image = { version = "0.25", default-features = false, features = ["webp"] } +# Watches the screenshot folders on every platform. +notify = "8" + +[target.'cfg(target_os = "linux")'.dependencies] +libc = "0.2" +x11rb = { version = "0.13", features = ["shape", "randr"] } +wayland-client = "0.31" +wayland-protocols = { version = "0.32", features = ["client"] } +wayland-protocols-wlr = { version = "0.3", features = ["client"] } +zbus = "5" + +[target.'cfg(target_os = "windows")'.dependencies] +windows = { version = "0.62", features = [ + "Foundation", + "Media_Control", + "Win32_Foundation", + "Win32_Graphics_Gdi", + "Win32_System_LibraryLoader", + "Win32_System_WinRT", + "Win32_UI_HiDpi", + "Win32_UI_Input_KeyboardAndMouse", + "Win32_UI_WindowsAndMessaging", +] } +# The async status of the media session manager, which the `windows` crate leaves to this crate. +windows-future = "0.3" + +[profile.release] +lto = "thin" diff --git a/README.md b/README.md new file mode 100644 index 0000000..98ee16b --- /dev/null +++ b/README.md @@ -0,0 +1,185 @@ +# Desktop Chomik + +A hamster that lives on top of your screen and reacts to typing, screenshots, music and being dragged +around with the mouse. It runs on Linux (X11 and Wayland) and Windows; macOS, the tray and packaging +are still on the list ([`docs/PLAN.md`](docs/PLAN.md)). + +Source frames live in [`frames/`](frames) (18 animation folders, 1812 JPEG frames on black). The +converter turns them into a transparent, lossless WebP set in `assets/animations/` — 30 clips, 1811 +frames, 24.7 MB — plus the `manifest.json` the app reads at startup. + +## Running it + +```bash +cargo run -p convert_frames -- --in frames --out assets/animations # regenerate assets +cargo test --workspace # unit + asset tests + +cargo run --release # the pet, on your screen +cargo run --release -- --backend x11 # force a backend (auto follows the session) +cargo run --release -- --headless --seconds 20 # tick loop without a window +cargo run --release -- --replay scripts/demo.txt --seed 4 # scripted event sequence +./build.sh # release binaries in dist/ +``` + +Flags: `--assets`, `--config`, `--seed`, `--fps-scale`, `--backend`, `--no-sensors`, `--no-dialog`, +`--seconds`, `--trace`, `--headless`, `--replay`. A replay script is ` ` with +`key`, `drag_start`, `drag_stop`, `screenshot`, `music_on` and `music_off`; `--replay` and `--trace` +print every clip hand-off with its timestamp, which is how the rules below are verified. + +## Building + +[`build.sh`](build.sh) builds release binaries into `dist/`. With no argument it builds everything +this machine can produce; targets can also be named, several at once: + +```bash +./build.sh # everything available here +./build.sh all # the same, explicit +./build.sh win64amd # only the Windows x86_64 .exe +./build.sh linux64amd linux64arm +``` + +The aliases are `linux64amd`, `linux64arm`, `mac64amd`, `mac64arm`, `win64amd` and `win64arm`. +Missing Rust targets or linkers are reported with the command that enables them, and each file is +named after its target (e.g. `dist/hamster-pet-x86_64-unknown-linux-gnu`). Windows x86_64 +cross-builds from Linux with mingw; arm64 Windows uses MSVC on Windows and LLVM-MinGW elsewhere. On +Windows run the script from Git Bash in a Visual Studio developer shell (rustc needs `link.exe`). +macOS builds on a Mac only, and its window backend is still planned (M5), so that binary exits with +an unsupported-platform message. + +## The window + +A transparent, always-on-top window the size of the canvas plus its padding (252x223), drawn by three +backends: X11 (a dock-type window with a 32-bit ARGB visual), Wayland (a `wlr-layer-shell` top surface +bound to one output, as KWin, sway and Hyprland provide) and Windows (a `WS_EX_LAYERED` popup whose +frames go through `UpdateLayeredWindow`). On a display scaled above 100% the canvas is rendered at +that scale. Without layer-shell the pet becomes an ordinary toplevel that the compositor places, so +it cannot be dragged there; on X11 without a compositor it falls back to a shape mask — hard edged, +but still animated and click-through outside the silhouette. + +Pixels the hamster does not cover are cut out of the input region, so clicks reach whatever is +behind: the shape extension on X11, an input region on Wayland, the alpha hit test of a layered +window on Windows. Drag with the left button — the pet follows the cursor exactly and keeps playing +its drag animation; right click quits. It wakes up in the bottom right corner and remembers where you +left it, in global screen coordinates. Dragging is not clamped, so it can hang over an edge or sit on +any monitor; only a saved position that is off every monitor is pulled back on screen. + +## Sensors + +| Sensor | How it works | +| --- | --- | +| Typing | `/dev/input` on Linux (needs the `input` group), a `WH_KEYBOARD_LL` hook on Windows; starts only on a burst of `typing_start_keys` presses inside `typing_start_window_ms`, so one shortcut key does not make it type | +| Screenshots | the `PrintScreen` key from that same reader, so a shot that is never saved still counts, plus a folder watch on `sensors.screenshot_dirs` (the pictures folder by default) for shots taken with another shortcut. A file saved within 8 s of the press is that same shot. `sensors.screenshot`: `auto` (both), `key` (no disk), `files` (disk only), `off` | +| Music | MPRIS over the session D-Bus on Linux, the media session manager (SMTC) on Windows: any player that reports `Playing` | + +No privileges beyond read access: run the pet as your own user (root has no session bus). If typing +is reported as off, `sudo usermod -aG input $USER` and log back in; the startup dialog says the same. +Anything the pet cannot use (no `/dev/input`, no session bus, no screenshot folder) is shown once in a +startup dialog with its fix, using whatever the desktop ships (kdialog, zenity, yad) or the native +message box on Windows; `startup_dialog: false` or `--no-dialog` turns that off. + +## Config + +[`config.json`](config.json) is read from the working directory, next to `assets/`, so it lives in the +project and nothing of the pet ends up in your home directory. It lists every option, so the knobs +are easy to find and edit; without the file the pet runs on the defaults below and writes nothing. +`--config ` uses another file instead, and creates it with all defaults when it does not exist +yet. Only the window position is written back, into whichever file was read; command line overrides +never are. A partial file keeps the defaults, out-of-range values are clamped, and a broken or +unknown field falls back to the defaults with a warning — never a pet that refuses to start. + +| Key | Default | Meaning | +| --- | --- | --- | +| `position` | bottom right | Last anchor position on the desktop | +| `backend` | `auto` | `auto`, `wayland` or `x11` | +| `output` | largest | Wayland output the surface is bound to, e.g. `HDMI-A-1` | +| `typing_start_keys` | `3` | Presses needed before the hamster starts typing | +| `typing_start_window_ms` | `1500` | Window those presses are counted in | +| `typing_stop_delay_ms` | `700` | How long it keeps typing after the last key | +| `idle_delay_ms` | `[2000, 7000]` | Pause between idle activities | +| `activity_loop_ms` | `[2500, 5000]` | How long the looping middle of an idle activity runs | +| `fps_scale` | `1.0` | Playback speed multiplier for every clip, or `--fps-scale ` for one run | +| `clip_fps` | `{}` | Frame rate of single clips, e.g. `{"idle_blink": 15}`; names are the keys of `assets/animations/manifest.json` | +| `min_loops` | `{}` | Minimum full plays of a loop, e.g. `{"idle_activity_sleep_loop": 3}`; only the idle activity loops run for a set time, so only they can be stretched | +| `disabled_activities` | `["dig"]` | Idle activities that must never play | +| `screenshot_request_ttl_ms` | `3000` | How long a queued screenshot reaction may wait before it is dropped | +| `sensors` | all on | `typing` (`auto`/`evdev`/`off`), `music`, `screenshot` (`auto`/`key`/`files`/`off`), `screenshot_dirs` (empty means the pictures folder) | +| `startup_dialog` | `true` | Dialog at startup for anything the pet cannot use | + +The wording of that dialog lives in [`texts.json`](texts.json), next to the config: `title`, `intro`, +`outro`, the `problem` template and one entry per situation. `{reason}` and `{folders}` are filled in at +runtime, an unknown placeholder stays visible (so a typo is easy to spot), a message without `fix` +drops the arrow line, and anything left out or unreadable keeps its built-in wording. + +## Playback rules + +1. **Frame rate belongs to the clip, not to the display.** Every clip plays at its own `fps` from the + manifest (30 fps today) against a monotonic clock, so a 60 Hz, 144 Hz or throttled compositor all + show the same speed. One render tick never advances more than 100 ms of animation, so a stall slows + playback instead of fast-forwarding it. +2. **A running animation finishes before it is overridden.** When a higher priority state takes over, + the current chain plays its `finish` clip first, and the new clip starts when that ends. A `start` + clip that is already playing always plays out. Chains without a finish clip (the screenshot + reaction, one-shot idle gags) are cut, as the source engine did. +3. **Dragging is the exception:** it takes the hamster instantly, without waiting for a finish clip. +4. **Priorities:** `drag > screenshot > typing > music > idle activity > main idle`. A condition that + is still valid keeps its chain running — a screenshot arriving mid-drag waits instead of ending it. +5. **Idle life:** the resting animation picks a weighted random activity (blink dominates, props like + the newspaper are rare) after a random pause, then returns to the main idle. The digging idle is + disabled by default, matching the source data. The looping middle runs for `activity_loop_ms`, + measured from the loop clip itself, and at least `min_loops` full cycles when it has an entry there. + +## Development rules + +1. **All code, comments, docs and commit messages in English.** Keep the README short and factual. +2. **Comments only where they earn their place.** One or two lines on *why*, never a narration of what + the code already says. No commented-out code. +3. **No over-engineering.** No abstraction, configuration knob or dependency for a single use case. +4. **Shared logic gets a named helper** in one small module, never copy-pasted. +5. **Platform code stays behind interfaces.** The core (animation, state machine, config) is + platform-free and unit-testable; no `cfg` blocks in business logic. +6. **Edge cases are part of the feature.** Every external input — files, config, sensors, monitors, + clock — is untrusted: validate, clamp, debounce, degrade gracefully, never crash, never fail + silently. +7. **Test the logic that can break quietly:** state machine transitions, chain timing, scheduler + weights, config clamping, manifest validation and asset matting, with a fake clock. The generated + assets are checked against everything the manifest promises. +8. **The frame loop does no unbounded work.** Frames are decoded on demand into a bounded LRU cache; + nothing waits on a process or a display-server round trip per frame. +9. **Targets: idle CPU < 1%, RAM < 60 MB.** Measure before claiming a speedup. +10. **Keep the tree small and obvious.** `frames/` is a read-only local input; generated assets are + reproducible from it and never edited by hand. + +## Repository layout + +``` +frames/ raw source frames (read-only input, not committed) +assets/animations/ generated lossless WebP clips + manifest.json (built by tools/) +config.json behaviour, edited before a build +texts.json wording of the startup dialog +tools/convert_frames/ JPG -> transparent WebP converter and clip table +src/core/ manifest, frame cache, clip/chain player, engine, config, texts, replay +src/platform/ the pet window: shared frame loop, compositor, X11, Wayland and Windows + backends, startup dialog +src/sensors/ keyboard (evdev or a Windows hook: typing + PrintScreen), music (MPRIS/SMTC), + screenshot folder watch +src/main.rs CLI: window, headless tick loop and --replay mode +tests/assets.rs checks the generated asset set against the manifest +build.sh release builds into dist/ (named targets, or all) +scripts/ replay scripts used to verify the animation rules +docs/PLAN.md implementation plan, asset format, per-OS support matrix +``` + +## Asset pipeline + +The converter (`cargo run -p convert_frames`, see above) is deterministic — the same input gives +byte-identical output — and verifies its own output: the first and last frame of every clip are +decoded back and compared byte for byte, a missing source frame or a size mismatch stops the run, and +unused source frames are reported (the stray neutral frame in `pacidle0` is expected). + +Matting clears only the background reachable from the image border: enclosed dark details (eyes, belly) +stay fully opaque, and a one pixel alpha ramp keeps a whisker a hair instead of a thick dark spike. +The baked drop shadow is kept by default, because removing it needs a threshold high enough to eat +whiskers and dark props; `--shadow drop` does it anyway. + +`frames/` is not committed: `assets/animations/` is the set that ships, and the source frames are only +needed to regenerate it. diff --git a/assets/animations/drag_end/frame_000.webp b/assets/animations/drag_end/frame_000.webp new file mode 100644 index 0000000..fcbf4d3 Binary files /dev/null and b/assets/animations/drag_end/frame_000.webp differ diff --git a/assets/animations/drag_end/frame_001.webp b/assets/animations/drag_end/frame_001.webp new file mode 100644 index 0000000..4344b71 Binary files /dev/null and b/assets/animations/drag_end/frame_001.webp differ diff --git a/assets/animations/drag_end/frame_002.webp b/assets/animations/drag_end/frame_002.webp new file mode 100644 index 0000000..398d426 Binary files /dev/null and b/assets/animations/drag_end/frame_002.webp differ diff --git a/assets/animations/drag_end/frame_003.webp b/assets/animations/drag_end/frame_003.webp new file mode 100644 index 0000000..8c3957b Binary files /dev/null and b/assets/animations/drag_end/frame_003.webp differ diff --git a/assets/animations/drag_end/frame_004.webp b/assets/animations/drag_end/frame_004.webp new file mode 100644 index 0000000..63f292e Binary files /dev/null and b/assets/animations/drag_end/frame_004.webp differ diff --git a/assets/animations/drag_end/frame_005.webp b/assets/animations/drag_end/frame_005.webp new file mode 100644 index 0000000..2bb9cca Binary files /dev/null and b/assets/animations/drag_end/frame_005.webp differ diff --git a/assets/animations/drag_end/frame_006.webp b/assets/animations/drag_end/frame_006.webp new file mode 100644 index 0000000..12545b9 Binary files /dev/null and b/assets/animations/drag_end/frame_006.webp differ diff --git a/assets/animations/drag_end/frame_007.webp b/assets/animations/drag_end/frame_007.webp new file mode 100644 index 0000000..2daf4f0 Binary files /dev/null and b/assets/animations/drag_end/frame_007.webp differ diff --git a/assets/animations/drag_end/frame_008.webp b/assets/animations/drag_end/frame_008.webp new file mode 100644 index 0000000..68dbe23 Binary files /dev/null and b/assets/animations/drag_end/frame_008.webp differ diff --git a/assets/animations/drag_end/frame_009.webp b/assets/animations/drag_end/frame_009.webp new file mode 100644 index 0000000..07352ea Binary files /dev/null and b/assets/animations/drag_end/frame_009.webp differ diff --git a/assets/animations/drag_end/frame_010.webp b/assets/animations/drag_end/frame_010.webp new file mode 100644 index 0000000..bc0c717 Binary files /dev/null and b/assets/animations/drag_end/frame_010.webp differ diff --git a/assets/animations/drag_end/frame_011.webp b/assets/animations/drag_end/frame_011.webp new file mode 100644 index 0000000..8ec73c1 Binary files /dev/null and b/assets/animations/drag_end/frame_011.webp differ diff --git a/assets/animations/drag_end/frame_012.webp b/assets/animations/drag_end/frame_012.webp new file mode 100644 index 0000000..e054371 Binary files /dev/null and b/assets/animations/drag_end/frame_012.webp differ diff --git a/assets/animations/drag_end/frame_013.webp b/assets/animations/drag_end/frame_013.webp new file mode 100644 index 0000000..29f60ed Binary files /dev/null and b/assets/animations/drag_end/frame_013.webp differ diff --git a/assets/animations/drag_end/frame_014.webp b/assets/animations/drag_end/frame_014.webp new file mode 100644 index 0000000..999cc87 Binary files /dev/null and b/assets/animations/drag_end/frame_014.webp differ diff --git a/assets/animations/drag_loop/frame_000.webp b/assets/animations/drag_loop/frame_000.webp new file mode 100644 index 0000000..f94f6a1 Binary files /dev/null and b/assets/animations/drag_loop/frame_000.webp differ diff --git a/assets/animations/drag_loop/frame_001.webp b/assets/animations/drag_loop/frame_001.webp new file mode 100644 index 0000000..af814ce Binary files /dev/null and b/assets/animations/drag_loop/frame_001.webp differ diff --git a/assets/animations/drag_loop/frame_002.webp b/assets/animations/drag_loop/frame_002.webp new file mode 100644 index 0000000..dbb9390 Binary files /dev/null and b/assets/animations/drag_loop/frame_002.webp differ diff --git a/assets/animations/drag_loop/frame_003.webp b/assets/animations/drag_loop/frame_003.webp new file mode 100644 index 0000000..649c276 Binary files /dev/null and b/assets/animations/drag_loop/frame_003.webp differ diff --git a/assets/animations/drag_loop/frame_004.webp b/assets/animations/drag_loop/frame_004.webp new file mode 100644 index 0000000..049503b Binary files /dev/null and b/assets/animations/drag_loop/frame_004.webp differ diff --git a/assets/animations/drag_loop/frame_005.webp b/assets/animations/drag_loop/frame_005.webp new file mode 100644 index 0000000..1a226b7 Binary files /dev/null and b/assets/animations/drag_loop/frame_005.webp differ diff --git a/assets/animations/drag_loop/frame_006.webp b/assets/animations/drag_loop/frame_006.webp new file mode 100644 index 0000000..96328a7 Binary files /dev/null and b/assets/animations/drag_loop/frame_006.webp differ diff --git a/assets/animations/drag_loop/frame_007.webp b/assets/animations/drag_loop/frame_007.webp new file mode 100644 index 0000000..93acc72 Binary files /dev/null and b/assets/animations/drag_loop/frame_007.webp differ diff --git a/assets/animations/drag_loop/frame_008.webp b/assets/animations/drag_loop/frame_008.webp new file mode 100644 index 0000000..6d2fc68 Binary files /dev/null and b/assets/animations/drag_loop/frame_008.webp differ diff --git a/assets/animations/drag_loop/frame_009.webp b/assets/animations/drag_loop/frame_009.webp new file mode 100644 index 0000000..a0f07a9 Binary files /dev/null and b/assets/animations/drag_loop/frame_009.webp differ diff --git a/assets/animations/drag_loop/frame_010.webp b/assets/animations/drag_loop/frame_010.webp new file mode 100644 index 0000000..e549f30 Binary files /dev/null and b/assets/animations/drag_loop/frame_010.webp differ diff --git a/assets/animations/drag_loop/frame_011.webp b/assets/animations/drag_loop/frame_011.webp new file mode 100644 index 0000000..e9847e9 Binary files /dev/null and b/assets/animations/drag_loop/frame_011.webp differ diff --git a/assets/animations/drag_loop/frame_012.webp b/assets/animations/drag_loop/frame_012.webp new file mode 100644 index 0000000..c560155 Binary files /dev/null and b/assets/animations/drag_loop/frame_012.webp differ diff --git a/assets/animations/drag_loop/frame_013.webp b/assets/animations/drag_loop/frame_013.webp new file mode 100644 index 0000000..789f146 Binary files /dev/null and b/assets/animations/drag_loop/frame_013.webp differ diff --git a/assets/animations/drag_loop/frame_014.webp b/assets/animations/drag_loop/frame_014.webp new file mode 100644 index 0000000..8d4c33d Binary files /dev/null and b/assets/animations/drag_loop/frame_014.webp differ diff --git a/assets/animations/drag_loop/frame_015.webp b/assets/animations/drag_loop/frame_015.webp new file mode 100644 index 0000000..93b0856 Binary files /dev/null and b/assets/animations/drag_loop/frame_015.webp differ diff --git a/assets/animations/drag_loop/frame_016.webp b/assets/animations/drag_loop/frame_016.webp new file mode 100644 index 0000000..a1f4a21 Binary files /dev/null and b/assets/animations/drag_loop/frame_016.webp differ diff --git a/assets/animations/drag_loop/frame_017.webp b/assets/animations/drag_loop/frame_017.webp new file mode 100644 index 0000000..968cf4d Binary files /dev/null and b/assets/animations/drag_loop/frame_017.webp differ diff --git a/assets/animations/drag_loop/frame_018.webp b/assets/animations/drag_loop/frame_018.webp new file mode 100644 index 0000000..aa851d8 Binary files /dev/null and b/assets/animations/drag_loop/frame_018.webp differ diff --git a/assets/animations/drag_loop/frame_019.webp b/assets/animations/drag_loop/frame_019.webp new file mode 100644 index 0000000..ab4b6a6 Binary files /dev/null and b/assets/animations/drag_loop/frame_019.webp differ diff --git a/assets/animations/drag_loop/frame_020.webp b/assets/animations/drag_loop/frame_020.webp new file mode 100644 index 0000000..7065a05 Binary files /dev/null and b/assets/animations/drag_loop/frame_020.webp differ diff --git a/assets/animations/drag_loop/frame_021.webp b/assets/animations/drag_loop/frame_021.webp new file mode 100644 index 0000000..fcff9ee Binary files /dev/null and b/assets/animations/drag_loop/frame_021.webp differ diff --git a/assets/animations/drag_loop/frame_022.webp b/assets/animations/drag_loop/frame_022.webp new file mode 100644 index 0000000..f679708 Binary files /dev/null and b/assets/animations/drag_loop/frame_022.webp differ diff --git a/assets/animations/drag_loop/frame_023.webp b/assets/animations/drag_loop/frame_023.webp new file mode 100644 index 0000000..6d6fec6 Binary files /dev/null and b/assets/animations/drag_loop/frame_023.webp differ diff --git a/assets/animations/drag_loop/frame_024.webp b/assets/animations/drag_loop/frame_024.webp new file mode 100644 index 0000000..ac4a7dc Binary files /dev/null and b/assets/animations/drag_loop/frame_024.webp differ diff --git a/assets/animations/drag_loop/frame_025.webp b/assets/animations/drag_loop/frame_025.webp new file mode 100644 index 0000000..9768a2a Binary files /dev/null and b/assets/animations/drag_loop/frame_025.webp differ diff --git a/assets/animations/drag_loop/frame_026.webp b/assets/animations/drag_loop/frame_026.webp new file mode 100644 index 0000000..fcca84f Binary files /dev/null and b/assets/animations/drag_loop/frame_026.webp differ diff --git a/assets/animations/drag_loop/frame_027.webp b/assets/animations/drag_loop/frame_027.webp new file mode 100644 index 0000000..9c43e47 Binary files /dev/null and b/assets/animations/drag_loop/frame_027.webp differ diff --git a/assets/animations/drag_loop/frame_028.webp b/assets/animations/drag_loop/frame_028.webp new file mode 100644 index 0000000..63d86f7 Binary files /dev/null and b/assets/animations/drag_loop/frame_028.webp differ diff --git a/assets/animations/drag_loop/frame_029.webp b/assets/animations/drag_loop/frame_029.webp new file mode 100644 index 0000000..fc1fb8b Binary files /dev/null and b/assets/animations/drag_loop/frame_029.webp differ diff --git a/assets/animations/drag_start/frame_000.webp b/assets/animations/drag_start/frame_000.webp new file mode 100644 index 0000000..9b0119d Binary files /dev/null and b/assets/animations/drag_start/frame_000.webp differ diff --git a/assets/animations/drag_start/frame_001.webp b/assets/animations/drag_start/frame_001.webp new file mode 100644 index 0000000..d5cefe6 Binary files /dev/null and b/assets/animations/drag_start/frame_001.webp differ diff --git a/assets/animations/drag_start/frame_002.webp b/assets/animations/drag_start/frame_002.webp new file mode 100644 index 0000000..b5aa944 Binary files /dev/null and b/assets/animations/drag_start/frame_002.webp differ diff --git a/assets/animations/drag_start/frame_003.webp b/assets/animations/drag_start/frame_003.webp new file mode 100644 index 0000000..e0f19d9 Binary files /dev/null and b/assets/animations/drag_start/frame_003.webp differ diff --git a/assets/animations/drag_start/frame_004.webp b/assets/animations/drag_start/frame_004.webp new file mode 100644 index 0000000..ef43743 Binary files /dev/null and b/assets/animations/drag_start/frame_004.webp differ diff --git a/assets/animations/idle_activity_book_finish/frame_000.webp b/assets/animations/idle_activity_book_finish/frame_000.webp new file mode 100644 index 0000000..577aa23 Binary files /dev/null and b/assets/animations/idle_activity_book_finish/frame_000.webp differ diff --git a/assets/animations/idle_activity_book_finish/frame_001.webp b/assets/animations/idle_activity_book_finish/frame_001.webp new file mode 100644 index 0000000..8e93b0f Binary files /dev/null and b/assets/animations/idle_activity_book_finish/frame_001.webp differ diff --git a/assets/animations/idle_activity_book_finish/frame_002.webp b/assets/animations/idle_activity_book_finish/frame_002.webp new file mode 100644 index 0000000..ac61fb7 Binary files /dev/null and b/assets/animations/idle_activity_book_finish/frame_002.webp differ diff --git a/assets/animations/idle_activity_book_finish/frame_003.webp b/assets/animations/idle_activity_book_finish/frame_003.webp new file mode 100644 index 0000000..550fadc Binary files /dev/null and b/assets/animations/idle_activity_book_finish/frame_003.webp differ diff --git a/assets/animations/idle_activity_book_finish/frame_004.webp b/assets/animations/idle_activity_book_finish/frame_004.webp new file mode 100644 index 0000000..6d6b99b Binary files /dev/null and b/assets/animations/idle_activity_book_finish/frame_004.webp differ diff --git a/assets/animations/idle_activity_book_finish/frame_005.webp b/assets/animations/idle_activity_book_finish/frame_005.webp new file mode 100644 index 0000000..ff56eaa Binary files /dev/null and b/assets/animations/idle_activity_book_finish/frame_005.webp differ diff --git a/assets/animations/idle_activity_book_finish/frame_006.webp b/assets/animations/idle_activity_book_finish/frame_006.webp new file mode 100644 index 0000000..8ddaa64 Binary files /dev/null and b/assets/animations/idle_activity_book_finish/frame_006.webp differ diff --git a/assets/animations/idle_activity_book_finish/frame_007.webp b/assets/animations/idle_activity_book_finish/frame_007.webp new file mode 100644 index 0000000..5b404cc Binary files /dev/null and b/assets/animations/idle_activity_book_finish/frame_007.webp differ diff --git a/assets/animations/idle_activity_book_finish/frame_008.webp b/assets/animations/idle_activity_book_finish/frame_008.webp new file mode 100644 index 0000000..9215fc0 Binary files /dev/null and b/assets/animations/idle_activity_book_finish/frame_008.webp differ diff --git a/assets/animations/idle_activity_book_finish/frame_009.webp b/assets/animations/idle_activity_book_finish/frame_009.webp new file mode 100644 index 0000000..249e4e4 Binary files /dev/null and b/assets/animations/idle_activity_book_finish/frame_009.webp differ diff --git a/assets/animations/idle_activity_book_finish/frame_010.webp b/assets/animations/idle_activity_book_finish/frame_010.webp new file mode 100644 index 0000000..44afe7a Binary files /dev/null and b/assets/animations/idle_activity_book_finish/frame_010.webp differ diff --git a/assets/animations/idle_activity_book_finish/frame_011.webp b/assets/animations/idle_activity_book_finish/frame_011.webp new file mode 100644 index 0000000..b149afd Binary files /dev/null and b/assets/animations/idle_activity_book_finish/frame_011.webp differ diff --git a/assets/animations/idle_activity_book_finish/frame_012.webp b/assets/animations/idle_activity_book_finish/frame_012.webp new file mode 100644 index 0000000..7107c3f Binary files /dev/null and b/assets/animations/idle_activity_book_finish/frame_012.webp differ diff --git a/assets/animations/idle_activity_book_finish/frame_013.webp b/assets/animations/idle_activity_book_finish/frame_013.webp new file mode 100644 index 0000000..e768a1f Binary files /dev/null and b/assets/animations/idle_activity_book_finish/frame_013.webp differ diff --git a/assets/animations/idle_activity_book_finish/frame_014.webp b/assets/animations/idle_activity_book_finish/frame_014.webp new file mode 100644 index 0000000..0860e51 Binary files /dev/null and b/assets/animations/idle_activity_book_finish/frame_014.webp differ diff --git a/assets/animations/idle_activity_book_finish/frame_015.webp b/assets/animations/idle_activity_book_finish/frame_015.webp new file mode 100644 index 0000000..30e5574 Binary files /dev/null and b/assets/animations/idle_activity_book_finish/frame_015.webp differ diff --git a/assets/animations/idle_activity_book_finish/frame_016.webp b/assets/animations/idle_activity_book_finish/frame_016.webp new file mode 100644 index 0000000..6320aac Binary files /dev/null and b/assets/animations/idle_activity_book_finish/frame_016.webp differ diff --git a/assets/animations/idle_activity_book_finish/frame_017.webp b/assets/animations/idle_activity_book_finish/frame_017.webp new file mode 100644 index 0000000..42c5ff0 Binary files /dev/null and b/assets/animations/idle_activity_book_finish/frame_017.webp differ diff --git a/assets/animations/idle_activity_book_finish/frame_018.webp b/assets/animations/idle_activity_book_finish/frame_018.webp new file mode 100644 index 0000000..1f7c411 Binary files /dev/null and b/assets/animations/idle_activity_book_finish/frame_018.webp differ diff --git a/assets/animations/idle_activity_book_finish/frame_019.webp b/assets/animations/idle_activity_book_finish/frame_019.webp new file mode 100644 index 0000000..8bc83a0 Binary files /dev/null and b/assets/animations/idle_activity_book_finish/frame_019.webp differ diff --git a/assets/animations/idle_activity_book_finish/frame_020.webp b/assets/animations/idle_activity_book_finish/frame_020.webp new file mode 100644 index 0000000..cd72866 Binary files /dev/null and b/assets/animations/idle_activity_book_finish/frame_020.webp differ diff --git a/assets/animations/idle_activity_book_finish/frame_021.webp b/assets/animations/idle_activity_book_finish/frame_021.webp new file mode 100644 index 0000000..621fc96 Binary files /dev/null and b/assets/animations/idle_activity_book_finish/frame_021.webp differ diff --git a/assets/animations/idle_activity_book_finish/frame_022.webp b/assets/animations/idle_activity_book_finish/frame_022.webp new file mode 100644 index 0000000..253a143 Binary files /dev/null and b/assets/animations/idle_activity_book_finish/frame_022.webp differ diff --git a/assets/animations/idle_activity_book_finish/frame_023.webp b/assets/animations/idle_activity_book_finish/frame_023.webp new file mode 100644 index 0000000..927e2b5 Binary files /dev/null and b/assets/animations/idle_activity_book_finish/frame_023.webp differ diff --git a/assets/animations/idle_activity_book_finish/frame_024.webp b/assets/animations/idle_activity_book_finish/frame_024.webp new file mode 100644 index 0000000..74549e2 Binary files /dev/null and b/assets/animations/idle_activity_book_finish/frame_024.webp differ diff --git a/assets/animations/idle_activity_book_finish/frame_025.webp b/assets/animations/idle_activity_book_finish/frame_025.webp new file mode 100644 index 0000000..ab4bd4c Binary files /dev/null and b/assets/animations/idle_activity_book_finish/frame_025.webp differ diff --git a/assets/animations/idle_activity_book_finish/frame_026.webp b/assets/animations/idle_activity_book_finish/frame_026.webp new file mode 100644 index 0000000..1923ff4 Binary files /dev/null and b/assets/animations/idle_activity_book_finish/frame_026.webp differ diff --git a/assets/animations/idle_activity_book_finish/frame_027.webp b/assets/animations/idle_activity_book_finish/frame_027.webp new file mode 100644 index 0000000..9d6b6ca Binary files /dev/null and b/assets/animations/idle_activity_book_finish/frame_027.webp differ diff --git a/assets/animations/idle_activity_book_finish/frame_028.webp b/assets/animations/idle_activity_book_finish/frame_028.webp new file mode 100644 index 0000000..0eff3ca Binary files /dev/null and b/assets/animations/idle_activity_book_finish/frame_028.webp differ diff --git a/assets/animations/idle_activity_book_finish/frame_029.webp b/assets/animations/idle_activity_book_finish/frame_029.webp new file mode 100644 index 0000000..df188db Binary files /dev/null and b/assets/animations/idle_activity_book_finish/frame_029.webp differ diff --git a/assets/animations/idle_activity_book_finish/frame_030.webp b/assets/animations/idle_activity_book_finish/frame_030.webp new file mode 100644 index 0000000..a34bbb8 Binary files /dev/null and b/assets/animations/idle_activity_book_finish/frame_030.webp differ diff --git a/assets/animations/idle_activity_book_finish/frame_031.webp b/assets/animations/idle_activity_book_finish/frame_031.webp new file mode 100644 index 0000000..6cfc198 Binary files /dev/null and b/assets/animations/idle_activity_book_finish/frame_031.webp differ diff --git a/assets/animations/idle_activity_book_finish/frame_032.webp b/assets/animations/idle_activity_book_finish/frame_032.webp new file mode 100644 index 0000000..83d1e46 Binary files /dev/null and b/assets/animations/idle_activity_book_finish/frame_032.webp differ diff --git a/assets/animations/idle_activity_book_finish/frame_033.webp b/assets/animations/idle_activity_book_finish/frame_033.webp new file mode 100644 index 0000000..a90ea1d Binary files /dev/null and b/assets/animations/idle_activity_book_finish/frame_033.webp differ diff --git a/assets/animations/idle_activity_book_finish/frame_034.webp b/assets/animations/idle_activity_book_finish/frame_034.webp new file mode 100644 index 0000000..d5e5222 Binary files /dev/null and b/assets/animations/idle_activity_book_finish/frame_034.webp differ diff --git a/assets/animations/idle_activity_book_finish/frame_035.webp b/assets/animations/idle_activity_book_finish/frame_035.webp new file mode 100644 index 0000000..8507ec4 Binary files /dev/null and b/assets/animations/idle_activity_book_finish/frame_035.webp differ diff --git a/assets/animations/idle_activity_book_finish/frame_036.webp b/assets/animations/idle_activity_book_finish/frame_036.webp new file mode 100644 index 0000000..78fb9d1 Binary files /dev/null and b/assets/animations/idle_activity_book_finish/frame_036.webp differ diff --git a/assets/animations/idle_activity_book_finish/frame_037.webp b/assets/animations/idle_activity_book_finish/frame_037.webp new file mode 100644 index 0000000..178e1a4 Binary files /dev/null and b/assets/animations/idle_activity_book_finish/frame_037.webp differ diff --git a/assets/animations/idle_activity_book_finish/frame_038.webp b/assets/animations/idle_activity_book_finish/frame_038.webp new file mode 100644 index 0000000..f78579e Binary files /dev/null and b/assets/animations/idle_activity_book_finish/frame_038.webp differ diff --git a/assets/animations/idle_activity_book_finish/frame_039.webp b/assets/animations/idle_activity_book_finish/frame_039.webp new file mode 100644 index 0000000..4f80867 Binary files /dev/null and b/assets/animations/idle_activity_book_finish/frame_039.webp differ diff --git a/assets/animations/idle_activity_book_finish/frame_040.webp b/assets/animations/idle_activity_book_finish/frame_040.webp new file mode 100644 index 0000000..b1e3fb9 Binary files /dev/null and b/assets/animations/idle_activity_book_finish/frame_040.webp differ diff --git a/assets/animations/idle_activity_book_finish/frame_041.webp b/assets/animations/idle_activity_book_finish/frame_041.webp new file mode 100644 index 0000000..e5e56ef Binary files /dev/null and b/assets/animations/idle_activity_book_finish/frame_041.webp differ diff --git a/assets/animations/idle_activity_book_finish/frame_042.webp b/assets/animations/idle_activity_book_finish/frame_042.webp new file mode 100644 index 0000000..5339552 Binary files /dev/null and b/assets/animations/idle_activity_book_finish/frame_042.webp differ diff --git a/assets/animations/idle_activity_book_finish/frame_043.webp b/assets/animations/idle_activity_book_finish/frame_043.webp new file mode 100644 index 0000000..76a5935 Binary files /dev/null and b/assets/animations/idle_activity_book_finish/frame_043.webp differ diff --git a/assets/animations/idle_activity_book_finish/frame_044.webp b/assets/animations/idle_activity_book_finish/frame_044.webp new file mode 100644 index 0000000..839e8ed Binary files /dev/null and b/assets/animations/idle_activity_book_finish/frame_044.webp differ diff --git a/assets/animations/idle_activity_book_finish/frame_045.webp b/assets/animations/idle_activity_book_finish/frame_045.webp new file mode 100644 index 0000000..bea2dda Binary files /dev/null and b/assets/animations/idle_activity_book_finish/frame_045.webp differ diff --git a/assets/animations/idle_activity_book_finish/frame_046.webp b/assets/animations/idle_activity_book_finish/frame_046.webp new file mode 100644 index 0000000..8031b30 Binary files /dev/null and b/assets/animations/idle_activity_book_finish/frame_046.webp differ diff --git a/assets/animations/idle_activity_book_finish/frame_047.webp b/assets/animations/idle_activity_book_finish/frame_047.webp new file mode 100644 index 0000000..cf9a824 Binary files /dev/null and b/assets/animations/idle_activity_book_finish/frame_047.webp differ diff --git a/assets/animations/idle_activity_book_finish/frame_048.webp b/assets/animations/idle_activity_book_finish/frame_048.webp new file mode 100644 index 0000000..0ff14ed Binary files /dev/null and b/assets/animations/idle_activity_book_finish/frame_048.webp differ diff --git a/assets/animations/idle_activity_book_finish/frame_049.webp b/assets/animations/idle_activity_book_finish/frame_049.webp new file mode 100644 index 0000000..f3654a2 Binary files /dev/null and b/assets/animations/idle_activity_book_finish/frame_049.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_000.webp b/assets/animations/idle_activity_book_loop/frame_000.webp new file mode 100644 index 0000000..c53b8a7 Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_000.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_001.webp b/assets/animations/idle_activity_book_loop/frame_001.webp new file mode 100644 index 0000000..ae1934e Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_001.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_002.webp b/assets/animations/idle_activity_book_loop/frame_002.webp new file mode 100644 index 0000000..67c0b0d Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_002.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_003.webp b/assets/animations/idle_activity_book_loop/frame_003.webp new file mode 100644 index 0000000..83873f3 Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_003.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_004.webp b/assets/animations/idle_activity_book_loop/frame_004.webp new file mode 100644 index 0000000..1b0d283 Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_004.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_005.webp b/assets/animations/idle_activity_book_loop/frame_005.webp new file mode 100644 index 0000000..f2100fd Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_005.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_006.webp b/assets/animations/idle_activity_book_loop/frame_006.webp new file mode 100644 index 0000000..2d22cb4 Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_006.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_007.webp b/assets/animations/idle_activity_book_loop/frame_007.webp new file mode 100644 index 0000000..fafb278 Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_007.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_008.webp b/assets/animations/idle_activity_book_loop/frame_008.webp new file mode 100644 index 0000000..6d4d47d Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_008.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_009.webp b/assets/animations/idle_activity_book_loop/frame_009.webp new file mode 100644 index 0000000..02716d6 Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_009.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_010.webp b/assets/animations/idle_activity_book_loop/frame_010.webp new file mode 100644 index 0000000..897f7fc Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_010.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_011.webp b/assets/animations/idle_activity_book_loop/frame_011.webp new file mode 100644 index 0000000..4908213 Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_011.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_012.webp b/assets/animations/idle_activity_book_loop/frame_012.webp new file mode 100644 index 0000000..5ada6c7 Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_012.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_013.webp b/assets/animations/idle_activity_book_loop/frame_013.webp new file mode 100644 index 0000000..457a8a0 Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_013.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_014.webp b/assets/animations/idle_activity_book_loop/frame_014.webp new file mode 100644 index 0000000..91f7e8f Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_014.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_015.webp b/assets/animations/idle_activity_book_loop/frame_015.webp new file mode 100644 index 0000000..42d996e Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_015.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_016.webp b/assets/animations/idle_activity_book_loop/frame_016.webp new file mode 100644 index 0000000..653a714 Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_016.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_017.webp b/assets/animations/idle_activity_book_loop/frame_017.webp new file mode 100644 index 0000000..0a96eb5 Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_017.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_018.webp b/assets/animations/idle_activity_book_loop/frame_018.webp new file mode 100644 index 0000000..47939de Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_018.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_019.webp b/assets/animations/idle_activity_book_loop/frame_019.webp new file mode 100644 index 0000000..977894f Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_019.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_020.webp b/assets/animations/idle_activity_book_loop/frame_020.webp new file mode 100644 index 0000000..ff1d8fd Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_020.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_021.webp b/assets/animations/idle_activity_book_loop/frame_021.webp new file mode 100644 index 0000000..1a8bb11 Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_021.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_022.webp b/assets/animations/idle_activity_book_loop/frame_022.webp new file mode 100644 index 0000000..1685458 Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_022.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_023.webp b/assets/animations/idle_activity_book_loop/frame_023.webp new file mode 100644 index 0000000..a3ead68 Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_023.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_024.webp b/assets/animations/idle_activity_book_loop/frame_024.webp new file mode 100644 index 0000000..492a0c2 Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_024.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_025.webp b/assets/animations/idle_activity_book_loop/frame_025.webp new file mode 100644 index 0000000..cfda717 Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_025.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_026.webp b/assets/animations/idle_activity_book_loop/frame_026.webp new file mode 100644 index 0000000..f124baf Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_026.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_027.webp b/assets/animations/idle_activity_book_loop/frame_027.webp new file mode 100644 index 0000000..1a6d69d Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_027.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_028.webp b/assets/animations/idle_activity_book_loop/frame_028.webp new file mode 100644 index 0000000..c283ab8 Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_028.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_029.webp b/assets/animations/idle_activity_book_loop/frame_029.webp new file mode 100644 index 0000000..9e7fd3e Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_029.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_030.webp b/assets/animations/idle_activity_book_loop/frame_030.webp new file mode 100644 index 0000000..03fd693 Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_030.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_031.webp b/assets/animations/idle_activity_book_loop/frame_031.webp new file mode 100644 index 0000000..31e46ae Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_031.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_032.webp b/assets/animations/idle_activity_book_loop/frame_032.webp new file mode 100644 index 0000000..86ffad4 Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_032.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_033.webp b/assets/animations/idle_activity_book_loop/frame_033.webp new file mode 100644 index 0000000..dbf3b2f Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_033.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_034.webp b/assets/animations/idle_activity_book_loop/frame_034.webp new file mode 100644 index 0000000..5195431 Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_034.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_035.webp b/assets/animations/idle_activity_book_loop/frame_035.webp new file mode 100644 index 0000000..75018dd Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_035.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_036.webp b/assets/animations/idle_activity_book_loop/frame_036.webp new file mode 100644 index 0000000..0d2785f Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_036.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_037.webp b/assets/animations/idle_activity_book_loop/frame_037.webp new file mode 100644 index 0000000..3cfcc61 Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_037.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_038.webp b/assets/animations/idle_activity_book_loop/frame_038.webp new file mode 100644 index 0000000..5c1568c Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_038.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_039.webp b/assets/animations/idle_activity_book_loop/frame_039.webp new file mode 100644 index 0000000..511b50c Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_039.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_040.webp b/assets/animations/idle_activity_book_loop/frame_040.webp new file mode 100644 index 0000000..a248e12 Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_040.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_041.webp b/assets/animations/idle_activity_book_loop/frame_041.webp new file mode 100644 index 0000000..29ce13f Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_041.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_042.webp b/assets/animations/idle_activity_book_loop/frame_042.webp new file mode 100644 index 0000000..9971dbf Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_042.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_043.webp b/assets/animations/idle_activity_book_loop/frame_043.webp new file mode 100644 index 0000000..76ee89a Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_043.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_044.webp b/assets/animations/idle_activity_book_loop/frame_044.webp new file mode 100644 index 0000000..870ffb2 Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_044.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_045.webp b/assets/animations/idle_activity_book_loop/frame_045.webp new file mode 100644 index 0000000..267a536 Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_045.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_046.webp b/assets/animations/idle_activity_book_loop/frame_046.webp new file mode 100644 index 0000000..7108c4d Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_046.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_047.webp b/assets/animations/idle_activity_book_loop/frame_047.webp new file mode 100644 index 0000000..a694395 Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_047.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_048.webp b/assets/animations/idle_activity_book_loop/frame_048.webp new file mode 100644 index 0000000..0d1f2e9 Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_048.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_049.webp b/assets/animations/idle_activity_book_loop/frame_049.webp new file mode 100644 index 0000000..c6daeac Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_049.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_050.webp b/assets/animations/idle_activity_book_loop/frame_050.webp new file mode 100644 index 0000000..f8ed965 Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_050.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_051.webp b/assets/animations/idle_activity_book_loop/frame_051.webp new file mode 100644 index 0000000..d2faa01 Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_051.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_052.webp b/assets/animations/idle_activity_book_loop/frame_052.webp new file mode 100644 index 0000000..b037370 Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_052.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_053.webp b/assets/animations/idle_activity_book_loop/frame_053.webp new file mode 100644 index 0000000..d0e879d Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_053.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_054.webp b/assets/animations/idle_activity_book_loop/frame_054.webp new file mode 100644 index 0000000..e50b31e Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_054.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_055.webp b/assets/animations/idle_activity_book_loop/frame_055.webp new file mode 100644 index 0000000..cdcd9e2 Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_055.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_056.webp b/assets/animations/idle_activity_book_loop/frame_056.webp new file mode 100644 index 0000000..110c80f Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_056.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_057.webp b/assets/animations/idle_activity_book_loop/frame_057.webp new file mode 100644 index 0000000..8d2dda6 Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_057.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_058.webp b/assets/animations/idle_activity_book_loop/frame_058.webp new file mode 100644 index 0000000..d64e585 Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_058.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_059.webp b/assets/animations/idle_activity_book_loop/frame_059.webp new file mode 100644 index 0000000..cc22776 Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_059.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_060.webp b/assets/animations/idle_activity_book_loop/frame_060.webp new file mode 100644 index 0000000..3a2693b Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_060.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_061.webp b/assets/animations/idle_activity_book_loop/frame_061.webp new file mode 100644 index 0000000..7d31f8a Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_061.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_062.webp b/assets/animations/idle_activity_book_loop/frame_062.webp new file mode 100644 index 0000000..165fd8b Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_062.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_063.webp b/assets/animations/idle_activity_book_loop/frame_063.webp new file mode 100644 index 0000000..d37efad Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_063.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_064.webp b/assets/animations/idle_activity_book_loop/frame_064.webp new file mode 100644 index 0000000..265dce0 Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_064.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_065.webp b/assets/animations/idle_activity_book_loop/frame_065.webp new file mode 100644 index 0000000..ae73c84 Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_065.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_066.webp b/assets/animations/idle_activity_book_loop/frame_066.webp new file mode 100644 index 0000000..6740daf Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_066.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_067.webp b/assets/animations/idle_activity_book_loop/frame_067.webp new file mode 100644 index 0000000..86d4f6d Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_067.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_068.webp b/assets/animations/idle_activity_book_loop/frame_068.webp new file mode 100644 index 0000000..3c3e10b Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_068.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_069.webp b/assets/animations/idle_activity_book_loop/frame_069.webp new file mode 100644 index 0000000..f6470bd Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_069.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_070.webp b/assets/animations/idle_activity_book_loop/frame_070.webp new file mode 100644 index 0000000..de25b02 Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_070.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_071.webp b/assets/animations/idle_activity_book_loop/frame_071.webp new file mode 100644 index 0000000..8a5aff0 Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_071.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_072.webp b/assets/animations/idle_activity_book_loop/frame_072.webp new file mode 100644 index 0000000..df86393 Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_072.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_073.webp b/assets/animations/idle_activity_book_loop/frame_073.webp new file mode 100644 index 0000000..74aa1b4 Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_073.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_074.webp b/assets/animations/idle_activity_book_loop/frame_074.webp new file mode 100644 index 0000000..a0c7384 Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_074.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_075.webp b/assets/animations/idle_activity_book_loop/frame_075.webp new file mode 100644 index 0000000..089047a Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_075.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_076.webp b/assets/animations/idle_activity_book_loop/frame_076.webp new file mode 100644 index 0000000..8bf8cf1 Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_076.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_077.webp b/assets/animations/idle_activity_book_loop/frame_077.webp new file mode 100644 index 0000000..cfbf68e Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_077.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_078.webp b/assets/animations/idle_activity_book_loop/frame_078.webp new file mode 100644 index 0000000..58bdce3 Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_078.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_079.webp b/assets/animations/idle_activity_book_loop/frame_079.webp new file mode 100644 index 0000000..91e5ec2 Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_079.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_080.webp b/assets/animations/idle_activity_book_loop/frame_080.webp new file mode 100644 index 0000000..799b981 Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_080.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_081.webp b/assets/animations/idle_activity_book_loop/frame_081.webp new file mode 100644 index 0000000..2f9d6e9 Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_081.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_082.webp b/assets/animations/idle_activity_book_loop/frame_082.webp new file mode 100644 index 0000000..2f4a2c1 Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_082.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_083.webp b/assets/animations/idle_activity_book_loop/frame_083.webp new file mode 100644 index 0000000..73b04b4 Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_083.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_084.webp b/assets/animations/idle_activity_book_loop/frame_084.webp new file mode 100644 index 0000000..c97aff3 Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_084.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_085.webp b/assets/animations/idle_activity_book_loop/frame_085.webp new file mode 100644 index 0000000..389decd Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_085.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_086.webp b/assets/animations/idle_activity_book_loop/frame_086.webp new file mode 100644 index 0000000..33f7e45 Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_086.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_087.webp b/assets/animations/idle_activity_book_loop/frame_087.webp new file mode 100644 index 0000000..9ffa43b Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_087.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_088.webp b/assets/animations/idle_activity_book_loop/frame_088.webp new file mode 100644 index 0000000..89d0700 Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_088.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_089.webp b/assets/animations/idle_activity_book_loop/frame_089.webp new file mode 100644 index 0000000..33bb9da Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_089.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_090.webp b/assets/animations/idle_activity_book_loop/frame_090.webp new file mode 100644 index 0000000..a1dbd73 Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_090.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_091.webp b/assets/animations/idle_activity_book_loop/frame_091.webp new file mode 100644 index 0000000..1cf11f7 Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_091.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_092.webp b/assets/animations/idle_activity_book_loop/frame_092.webp new file mode 100644 index 0000000..28a691d Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_092.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_093.webp b/assets/animations/idle_activity_book_loop/frame_093.webp new file mode 100644 index 0000000..3c0a18d Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_093.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_094.webp b/assets/animations/idle_activity_book_loop/frame_094.webp new file mode 100644 index 0000000..eb9165c Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_094.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_095.webp b/assets/animations/idle_activity_book_loop/frame_095.webp new file mode 100644 index 0000000..e93aa8f Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_095.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_096.webp b/assets/animations/idle_activity_book_loop/frame_096.webp new file mode 100644 index 0000000..f1f2db0 Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_096.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_097.webp b/assets/animations/idle_activity_book_loop/frame_097.webp new file mode 100644 index 0000000..896dbab Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_097.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_098.webp b/assets/animations/idle_activity_book_loop/frame_098.webp new file mode 100644 index 0000000..89653da Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_098.webp differ diff --git a/assets/animations/idle_activity_book_loop/frame_099.webp b/assets/animations/idle_activity_book_loop/frame_099.webp new file mode 100644 index 0000000..0c66c77 Binary files /dev/null and b/assets/animations/idle_activity_book_loop/frame_099.webp differ diff --git a/assets/animations/idle_activity_book_start/frame_000.webp b/assets/animations/idle_activity_book_start/frame_000.webp new file mode 100644 index 0000000..b613b35 Binary files /dev/null and b/assets/animations/idle_activity_book_start/frame_000.webp differ diff --git a/assets/animations/idle_activity_book_start/frame_001.webp b/assets/animations/idle_activity_book_start/frame_001.webp new file mode 100644 index 0000000..fed4373 Binary files /dev/null and b/assets/animations/idle_activity_book_start/frame_001.webp differ diff --git a/assets/animations/idle_activity_book_start/frame_002.webp b/assets/animations/idle_activity_book_start/frame_002.webp new file mode 100644 index 0000000..6e86daf Binary files /dev/null and b/assets/animations/idle_activity_book_start/frame_002.webp differ diff --git a/assets/animations/idle_activity_book_start/frame_003.webp b/assets/animations/idle_activity_book_start/frame_003.webp new file mode 100644 index 0000000..393682e Binary files /dev/null and b/assets/animations/idle_activity_book_start/frame_003.webp differ diff --git a/assets/animations/idle_activity_book_start/frame_004.webp b/assets/animations/idle_activity_book_start/frame_004.webp new file mode 100644 index 0000000..e211231 Binary files /dev/null and b/assets/animations/idle_activity_book_start/frame_004.webp differ diff --git a/assets/animations/idle_activity_book_start/frame_005.webp b/assets/animations/idle_activity_book_start/frame_005.webp new file mode 100644 index 0000000..82e928f Binary files /dev/null and b/assets/animations/idle_activity_book_start/frame_005.webp differ diff --git a/assets/animations/idle_activity_book_start/frame_006.webp b/assets/animations/idle_activity_book_start/frame_006.webp new file mode 100644 index 0000000..7ae5c08 Binary files /dev/null and b/assets/animations/idle_activity_book_start/frame_006.webp differ diff --git a/assets/animations/idle_activity_book_start/frame_007.webp b/assets/animations/idle_activity_book_start/frame_007.webp new file mode 100644 index 0000000..92d7cfe Binary files /dev/null and b/assets/animations/idle_activity_book_start/frame_007.webp differ diff --git a/assets/animations/idle_activity_book_start/frame_008.webp b/assets/animations/idle_activity_book_start/frame_008.webp new file mode 100644 index 0000000..6f6a908 Binary files /dev/null and b/assets/animations/idle_activity_book_start/frame_008.webp differ diff --git a/assets/animations/idle_activity_book_start/frame_009.webp b/assets/animations/idle_activity_book_start/frame_009.webp new file mode 100644 index 0000000..76e0987 Binary files /dev/null and b/assets/animations/idle_activity_book_start/frame_009.webp differ diff --git a/assets/animations/idle_activity_book_start/frame_010.webp b/assets/animations/idle_activity_book_start/frame_010.webp new file mode 100644 index 0000000..e2c1479 Binary files /dev/null and b/assets/animations/idle_activity_book_start/frame_010.webp differ diff --git a/assets/animations/idle_activity_book_start/frame_011.webp b/assets/animations/idle_activity_book_start/frame_011.webp new file mode 100644 index 0000000..520a498 Binary files /dev/null and b/assets/animations/idle_activity_book_start/frame_011.webp differ diff --git a/assets/animations/idle_activity_book_start/frame_012.webp b/assets/animations/idle_activity_book_start/frame_012.webp new file mode 100644 index 0000000..d8513fe Binary files /dev/null and b/assets/animations/idle_activity_book_start/frame_012.webp differ diff --git a/assets/animations/idle_activity_book_start/frame_013.webp b/assets/animations/idle_activity_book_start/frame_013.webp new file mode 100644 index 0000000..a1715fe Binary files /dev/null and b/assets/animations/idle_activity_book_start/frame_013.webp differ diff --git a/assets/animations/idle_activity_book_start/frame_014.webp b/assets/animations/idle_activity_book_start/frame_014.webp new file mode 100644 index 0000000..59d9bc0 Binary files /dev/null and b/assets/animations/idle_activity_book_start/frame_014.webp differ diff --git a/assets/animations/idle_activity_book_start/frame_015.webp b/assets/animations/idle_activity_book_start/frame_015.webp new file mode 100644 index 0000000..c8e8311 Binary files /dev/null and b/assets/animations/idle_activity_book_start/frame_015.webp differ diff --git a/assets/animations/idle_activity_book_start/frame_016.webp b/assets/animations/idle_activity_book_start/frame_016.webp new file mode 100644 index 0000000..3f3c810 Binary files /dev/null and b/assets/animations/idle_activity_book_start/frame_016.webp differ diff --git a/assets/animations/idle_activity_book_start/frame_017.webp b/assets/animations/idle_activity_book_start/frame_017.webp new file mode 100644 index 0000000..9acd298 Binary files /dev/null and b/assets/animations/idle_activity_book_start/frame_017.webp differ diff --git a/assets/animations/idle_activity_book_start/frame_018.webp b/assets/animations/idle_activity_book_start/frame_018.webp new file mode 100644 index 0000000..498856d Binary files /dev/null and b/assets/animations/idle_activity_book_start/frame_018.webp differ diff --git a/assets/animations/idle_activity_book_start/frame_019.webp b/assets/animations/idle_activity_book_start/frame_019.webp new file mode 100644 index 0000000..4c1bb7f Binary files /dev/null and b/assets/animations/idle_activity_book_start/frame_019.webp differ diff --git a/assets/animations/idle_activity_book_start/frame_020.webp b/assets/animations/idle_activity_book_start/frame_020.webp new file mode 100644 index 0000000..c05cda4 Binary files /dev/null and b/assets/animations/idle_activity_book_start/frame_020.webp differ diff --git a/assets/animations/idle_activity_book_start/frame_021.webp b/assets/animations/idle_activity_book_start/frame_021.webp new file mode 100644 index 0000000..69eb9f2 Binary files /dev/null and b/assets/animations/idle_activity_book_start/frame_021.webp differ diff --git a/assets/animations/idle_activity_book_start/frame_022.webp b/assets/animations/idle_activity_book_start/frame_022.webp new file mode 100644 index 0000000..c6488de Binary files /dev/null and b/assets/animations/idle_activity_book_start/frame_022.webp differ diff --git a/assets/animations/idle_activity_book_start/frame_023.webp b/assets/animations/idle_activity_book_start/frame_023.webp new file mode 100644 index 0000000..d9672e1 Binary files /dev/null and b/assets/animations/idle_activity_book_start/frame_023.webp differ diff --git a/assets/animations/idle_activity_book_start/frame_024.webp b/assets/animations/idle_activity_book_start/frame_024.webp new file mode 100644 index 0000000..fddd8a4 Binary files /dev/null and b/assets/animations/idle_activity_book_start/frame_024.webp differ diff --git a/assets/animations/idle_activity_book_start/frame_025.webp b/assets/animations/idle_activity_book_start/frame_025.webp new file mode 100644 index 0000000..a8b707c Binary files /dev/null and b/assets/animations/idle_activity_book_start/frame_025.webp differ diff --git a/assets/animations/idle_activity_book_start/frame_026.webp b/assets/animations/idle_activity_book_start/frame_026.webp new file mode 100644 index 0000000..fb667ca Binary files /dev/null and b/assets/animations/idle_activity_book_start/frame_026.webp differ diff --git a/assets/animations/idle_activity_book_start/frame_027.webp b/assets/animations/idle_activity_book_start/frame_027.webp new file mode 100644 index 0000000..938f811 Binary files /dev/null and b/assets/animations/idle_activity_book_start/frame_027.webp differ diff --git a/assets/animations/idle_activity_book_start/frame_028.webp b/assets/animations/idle_activity_book_start/frame_028.webp new file mode 100644 index 0000000..df1f32b Binary files /dev/null and b/assets/animations/idle_activity_book_start/frame_028.webp differ diff --git a/assets/animations/idle_activity_book_start/frame_029.webp b/assets/animations/idle_activity_book_start/frame_029.webp new file mode 100644 index 0000000..f9fb5fd Binary files /dev/null and b/assets/animations/idle_activity_book_start/frame_029.webp differ diff --git a/assets/animations/idle_activity_book_start/frame_030.webp b/assets/animations/idle_activity_book_start/frame_030.webp new file mode 100644 index 0000000..6eff382 Binary files /dev/null and b/assets/animations/idle_activity_book_start/frame_030.webp differ diff --git a/assets/animations/idle_activity_book_start/frame_031.webp b/assets/animations/idle_activity_book_start/frame_031.webp new file mode 100644 index 0000000..8d4e876 Binary files /dev/null and b/assets/animations/idle_activity_book_start/frame_031.webp differ diff --git a/assets/animations/idle_activity_book_start/frame_032.webp b/assets/animations/idle_activity_book_start/frame_032.webp new file mode 100644 index 0000000..22db326 Binary files /dev/null and b/assets/animations/idle_activity_book_start/frame_032.webp differ diff --git a/assets/animations/idle_activity_book_start/frame_033.webp b/assets/animations/idle_activity_book_start/frame_033.webp new file mode 100644 index 0000000..af31bd3 Binary files /dev/null and b/assets/animations/idle_activity_book_start/frame_033.webp differ diff --git a/assets/animations/idle_activity_book_start/frame_034.webp b/assets/animations/idle_activity_book_start/frame_034.webp new file mode 100644 index 0000000..57c9526 Binary files /dev/null and b/assets/animations/idle_activity_book_start/frame_034.webp differ diff --git a/assets/animations/idle_activity_book_start/frame_035.webp b/assets/animations/idle_activity_book_start/frame_035.webp new file mode 100644 index 0000000..4b3b660 Binary files /dev/null and b/assets/animations/idle_activity_book_start/frame_035.webp differ diff --git a/assets/animations/idle_activity_book_start/frame_036.webp b/assets/animations/idle_activity_book_start/frame_036.webp new file mode 100644 index 0000000..44e06a6 Binary files /dev/null and b/assets/animations/idle_activity_book_start/frame_036.webp differ diff --git a/assets/animations/idle_activity_book_start/frame_037.webp b/assets/animations/idle_activity_book_start/frame_037.webp new file mode 100644 index 0000000..3cecbe6 Binary files /dev/null and b/assets/animations/idle_activity_book_start/frame_037.webp differ diff --git a/assets/animations/idle_activity_book_start/frame_038.webp b/assets/animations/idle_activity_book_start/frame_038.webp new file mode 100644 index 0000000..ab094c8 Binary files /dev/null and b/assets/animations/idle_activity_book_start/frame_038.webp differ diff --git a/assets/animations/idle_activity_book_start/frame_039.webp b/assets/animations/idle_activity_book_start/frame_039.webp new file mode 100644 index 0000000..7af2734 Binary files /dev/null and b/assets/animations/idle_activity_book_start/frame_039.webp differ diff --git a/assets/animations/idle_activity_newspaper_finish/frame_000.webp b/assets/animations/idle_activity_newspaper_finish/frame_000.webp new file mode 100644 index 0000000..eb9be2c Binary files /dev/null and b/assets/animations/idle_activity_newspaper_finish/frame_000.webp differ diff --git a/assets/animations/idle_activity_newspaper_finish/frame_001.webp b/assets/animations/idle_activity_newspaper_finish/frame_001.webp new file mode 100644 index 0000000..af243c2 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_finish/frame_001.webp differ diff --git a/assets/animations/idle_activity_newspaper_finish/frame_002.webp b/assets/animations/idle_activity_newspaper_finish/frame_002.webp new file mode 100644 index 0000000..ffc19ef Binary files /dev/null and b/assets/animations/idle_activity_newspaper_finish/frame_002.webp differ diff --git a/assets/animations/idle_activity_newspaper_finish/frame_003.webp b/assets/animations/idle_activity_newspaper_finish/frame_003.webp new file mode 100644 index 0000000..13d2495 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_finish/frame_003.webp differ diff --git a/assets/animations/idle_activity_newspaper_finish/frame_004.webp b/assets/animations/idle_activity_newspaper_finish/frame_004.webp new file mode 100644 index 0000000..5d52c37 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_finish/frame_004.webp differ diff --git a/assets/animations/idle_activity_newspaper_finish/frame_005.webp b/assets/animations/idle_activity_newspaper_finish/frame_005.webp new file mode 100644 index 0000000..8906856 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_finish/frame_005.webp differ diff --git a/assets/animations/idle_activity_newspaper_finish/frame_006.webp b/assets/animations/idle_activity_newspaper_finish/frame_006.webp new file mode 100644 index 0000000..c1813a5 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_finish/frame_006.webp differ diff --git a/assets/animations/idle_activity_newspaper_finish/frame_007.webp b/assets/animations/idle_activity_newspaper_finish/frame_007.webp new file mode 100644 index 0000000..0b6c63c Binary files /dev/null and b/assets/animations/idle_activity_newspaper_finish/frame_007.webp differ diff --git a/assets/animations/idle_activity_newspaper_finish/frame_008.webp b/assets/animations/idle_activity_newspaper_finish/frame_008.webp new file mode 100644 index 0000000..d86d02f Binary files /dev/null and b/assets/animations/idle_activity_newspaper_finish/frame_008.webp differ diff --git a/assets/animations/idle_activity_newspaper_finish/frame_009.webp b/assets/animations/idle_activity_newspaper_finish/frame_009.webp new file mode 100644 index 0000000..503d416 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_finish/frame_009.webp differ diff --git a/assets/animations/idle_activity_newspaper_finish/frame_010.webp b/assets/animations/idle_activity_newspaper_finish/frame_010.webp new file mode 100644 index 0000000..24f6585 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_finish/frame_010.webp differ diff --git a/assets/animations/idle_activity_newspaper_finish/frame_011.webp b/assets/animations/idle_activity_newspaper_finish/frame_011.webp new file mode 100644 index 0000000..193ed3b Binary files /dev/null and b/assets/animations/idle_activity_newspaper_finish/frame_011.webp differ diff --git a/assets/animations/idle_activity_newspaper_finish/frame_012.webp b/assets/animations/idle_activity_newspaper_finish/frame_012.webp new file mode 100644 index 0000000..fc32aa4 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_finish/frame_012.webp differ diff --git a/assets/animations/idle_activity_newspaper_finish/frame_013.webp b/assets/animations/idle_activity_newspaper_finish/frame_013.webp new file mode 100644 index 0000000..0500ddc Binary files /dev/null and b/assets/animations/idle_activity_newspaper_finish/frame_013.webp differ diff --git a/assets/animations/idle_activity_newspaper_finish/frame_014.webp b/assets/animations/idle_activity_newspaper_finish/frame_014.webp new file mode 100644 index 0000000..99614b1 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_finish/frame_014.webp differ diff --git a/assets/animations/idle_activity_newspaper_finish/frame_015.webp b/assets/animations/idle_activity_newspaper_finish/frame_015.webp new file mode 100644 index 0000000..4c94cc1 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_finish/frame_015.webp differ diff --git a/assets/animations/idle_activity_newspaper_finish/frame_016.webp b/assets/animations/idle_activity_newspaper_finish/frame_016.webp new file mode 100644 index 0000000..5282642 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_finish/frame_016.webp differ diff --git a/assets/animations/idle_activity_newspaper_finish/frame_017.webp b/assets/animations/idle_activity_newspaper_finish/frame_017.webp new file mode 100644 index 0000000..d839b19 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_finish/frame_017.webp differ diff --git a/assets/animations/idle_activity_newspaper_finish/frame_018.webp b/assets/animations/idle_activity_newspaper_finish/frame_018.webp new file mode 100644 index 0000000..f6a4f99 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_finish/frame_018.webp differ diff --git a/assets/animations/idle_activity_newspaper_finish/frame_019.webp b/assets/animations/idle_activity_newspaper_finish/frame_019.webp new file mode 100644 index 0000000..86cbbae Binary files /dev/null and b/assets/animations/idle_activity_newspaper_finish/frame_019.webp differ diff --git a/assets/animations/idle_activity_newspaper_finish/frame_020.webp b/assets/animations/idle_activity_newspaper_finish/frame_020.webp new file mode 100644 index 0000000..d5ee0f6 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_finish/frame_020.webp differ diff --git a/assets/animations/idle_activity_newspaper_finish/frame_021.webp b/assets/animations/idle_activity_newspaper_finish/frame_021.webp new file mode 100644 index 0000000..10c48d8 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_finish/frame_021.webp differ diff --git a/assets/animations/idle_activity_newspaper_finish/frame_022.webp b/assets/animations/idle_activity_newspaper_finish/frame_022.webp new file mode 100644 index 0000000..929f168 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_finish/frame_022.webp differ diff --git a/assets/animations/idle_activity_newspaper_finish/frame_023.webp b/assets/animations/idle_activity_newspaper_finish/frame_023.webp new file mode 100644 index 0000000..b464df9 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_finish/frame_023.webp differ diff --git a/assets/animations/idle_activity_newspaper_finish/frame_024.webp b/assets/animations/idle_activity_newspaper_finish/frame_024.webp new file mode 100644 index 0000000..0177614 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_finish/frame_024.webp differ diff --git a/assets/animations/idle_activity_newspaper_finish/frame_025.webp b/assets/animations/idle_activity_newspaper_finish/frame_025.webp new file mode 100644 index 0000000..4f2d8f7 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_finish/frame_025.webp differ diff --git a/assets/animations/idle_activity_newspaper_finish/frame_026.webp b/assets/animations/idle_activity_newspaper_finish/frame_026.webp new file mode 100644 index 0000000..283c70d Binary files /dev/null and b/assets/animations/idle_activity_newspaper_finish/frame_026.webp differ diff --git a/assets/animations/idle_activity_newspaper_finish/frame_027.webp b/assets/animations/idle_activity_newspaper_finish/frame_027.webp new file mode 100644 index 0000000..adcc488 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_finish/frame_027.webp differ diff --git a/assets/animations/idle_activity_newspaper_finish/frame_028.webp b/assets/animations/idle_activity_newspaper_finish/frame_028.webp new file mode 100644 index 0000000..152fd60 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_finish/frame_028.webp differ diff --git a/assets/animations/idle_activity_newspaper_finish/frame_029.webp b/assets/animations/idle_activity_newspaper_finish/frame_029.webp new file mode 100644 index 0000000..b86870f Binary files /dev/null and b/assets/animations/idle_activity_newspaper_finish/frame_029.webp differ diff --git a/assets/animations/idle_activity_newspaper_finish/frame_030.webp b/assets/animations/idle_activity_newspaper_finish/frame_030.webp new file mode 100644 index 0000000..9b06c2f Binary files /dev/null and b/assets/animations/idle_activity_newspaper_finish/frame_030.webp differ diff --git a/assets/animations/idle_activity_newspaper_finish/frame_031.webp b/assets/animations/idle_activity_newspaper_finish/frame_031.webp new file mode 100644 index 0000000..af5816b Binary files /dev/null and b/assets/animations/idle_activity_newspaper_finish/frame_031.webp differ diff --git a/assets/animations/idle_activity_newspaper_finish/frame_032.webp b/assets/animations/idle_activity_newspaper_finish/frame_032.webp new file mode 100644 index 0000000..fec587d Binary files /dev/null and b/assets/animations/idle_activity_newspaper_finish/frame_032.webp differ diff --git a/assets/animations/idle_activity_newspaper_finish/frame_033.webp b/assets/animations/idle_activity_newspaper_finish/frame_033.webp new file mode 100644 index 0000000..dee7b51 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_finish/frame_033.webp differ diff --git a/assets/animations/idle_activity_newspaper_finish/frame_034.webp b/assets/animations/idle_activity_newspaper_finish/frame_034.webp new file mode 100644 index 0000000..770bcfa Binary files /dev/null and b/assets/animations/idle_activity_newspaper_finish/frame_034.webp differ diff --git a/assets/animations/idle_activity_newspaper_finish/frame_035.webp b/assets/animations/idle_activity_newspaper_finish/frame_035.webp new file mode 100644 index 0000000..a788956 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_finish/frame_035.webp differ diff --git a/assets/animations/idle_activity_newspaper_finish/frame_036.webp b/assets/animations/idle_activity_newspaper_finish/frame_036.webp new file mode 100644 index 0000000..a97f4e2 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_finish/frame_036.webp differ diff --git a/assets/animations/idle_activity_newspaper_finish/frame_037.webp b/assets/animations/idle_activity_newspaper_finish/frame_037.webp new file mode 100644 index 0000000..274513a Binary files /dev/null and b/assets/animations/idle_activity_newspaper_finish/frame_037.webp differ diff --git a/assets/animations/idle_activity_newspaper_finish/frame_038.webp b/assets/animations/idle_activity_newspaper_finish/frame_038.webp new file mode 100644 index 0000000..69a1ff9 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_finish/frame_038.webp differ diff --git a/assets/animations/idle_activity_newspaper_finish/frame_039.webp b/assets/animations/idle_activity_newspaper_finish/frame_039.webp new file mode 100644 index 0000000..356193c Binary files /dev/null and b/assets/animations/idle_activity_newspaper_finish/frame_039.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_000.webp b/assets/animations/idle_activity_newspaper_loop/frame_000.webp new file mode 100644 index 0000000..b7537ae Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_000.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_001.webp b/assets/animations/idle_activity_newspaper_loop/frame_001.webp new file mode 100644 index 0000000..d4e349f Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_001.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_002.webp b/assets/animations/idle_activity_newspaper_loop/frame_002.webp new file mode 100644 index 0000000..c6362c1 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_002.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_003.webp b/assets/animations/idle_activity_newspaper_loop/frame_003.webp new file mode 100644 index 0000000..dd184f6 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_003.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_004.webp b/assets/animations/idle_activity_newspaper_loop/frame_004.webp new file mode 100644 index 0000000..986c7ed Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_004.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_005.webp b/assets/animations/idle_activity_newspaper_loop/frame_005.webp new file mode 100644 index 0000000..32ae4b8 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_005.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_006.webp b/assets/animations/idle_activity_newspaper_loop/frame_006.webp new file mode 100644 index 0000000..2f416d8 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_006.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_007.webp b/assets/animations/idle_activity_newspaper_loop/frame_007.webp new file mode 100644 index 0000000..832e96f Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_007.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_008.webp b/assets/animations/idle_activity_newspaper_loop/frame_008.webp new file mode 100644 index 0000000..05bfb3f Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_008.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_009.webp b/assets/animations/idle_activity_newspaper_loop/frame_009.webp new file mode 100644 index 0000000..58f9a5f Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_009.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_010.webp b/assets/animations/idle_activity_newspaper_loop/frame_010.webp new file mode 100644 index 0000000..6a5cee4 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_010.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_011.webp b/assets/animations/idle_activity_newspaper_loop/frame_011.webp new file mode 100644 index 0000000..1c1453e Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_011.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_012.webp b/assets/animations/idle_activity_newspaper_loop/frame_012.webp new file mode 100644 index 0000000..53765c7 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_012.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_013.webp b/assets/animations/idle_activity_newspaper_loop/frame_013.webp new file mode 100644 index 0000000..56da6da Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_013.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_014.webp b/assets/animations/idle_activity_newspaper_loop/frame_014.webp new file mode 100644 index 0000000..dad873d Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_014.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_015.webp b/assets/animations/idle_activity_newspaper_loop/frame_015.webp new file mode 100644 index 0000000..970dc17 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_015.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_016.webp b/assets/animations/idle_activity_newspaper_loop/frame_016.webp new file mode 100644 index 0000000..f36d9c5 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_016.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_017.webp b/assets/animations/idle_activity_newspaper_loop/frame_017.webp new file mode 100644 index 0000000..843a7a3 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_017.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_018.webp b/assets/animations/idle_activity_newspaper_loop/frame_018.webp new file mode 100644 index 0000000..9a62157 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_018.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_019.webp b/assets/animations/idle_activity_newspaper_loop/frame_019.webp new file mode 100644 index 0000000..b73f05d Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_019.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_020.webp b/assets/animations/idle_activity_newspaper_loop/frame_020.webp new file mode 100644 index 0000000..2ca653a Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_020.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_021.webp b/assets/animations/idle_activity_newspaper_loop/frame_021.webp new file mode 100644 index 0000000..bb6a85e Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_021.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_022.webp b/assets/animations/idle_activity_newspaper_loop/frame_022.webp new file mode 100644 index 0000000..f23a98f Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_022.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_023.webp b/assets/animations/idle_activity_newspaper_loop/frame_023.webp new file mode 100644 index 0000000..2d3c47e Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_023.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_024.webp b/assets/animations/idle_activity_newspaper_loop/frame_024.webp new file mode 100644 index 0000000..ff0adaa Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_024.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_025.webp b/assets/animations/idle_activity_newspaper_loop/frame_025.webp new file mode 100644 index 0000000..e1a1e60 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_025.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_026.webp b/assets/animations/idle_activity_newspaper_loop/frame_026.webp new file mode 100644 index 0000000..88683bb Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_026.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_027.webp b/assets/animations/idle_activity_newspaper_loop/frame_027.webp new file mode 100644 index 0000000..456572d Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_027.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_028.webp b/assets/animations/idle_activity_newspaper_loop/frame_028.webp new file mode 100644 index 0000000..5d982c7 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_028.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_029.webp b/assets/animations/idle_activity_newspaper_loop/frame_029.webp new file mode 100644 index 0000000..93ece78 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_029.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_030.webp b/assets/animations/idle_activity_newspaper_loop/frame_030.webp new file mode 100644 index 0000000..fae04e2 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_030.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_031.webp b/assets/animations/idle_activity_newspaper_loop/frame_031.webp new file mode 100644 index 0000000..2dcbc85 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_031.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_032.webp b/assets/animations/idle_activity_newspaper_loop/frame_032.webp new file mode 100644 index 0000000..010ab96 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_032.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_033.webp b/assets/animations/idle_activity_newspaper_loop/frame_033.webp new file mode 100644 index 0000000..044a09f Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_033.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_034.webp b/assets/animations/idle_activity_newspaper_loop/frame_034.webp new file mode 100644 index 0000000..76b30c3 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_034.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_035.webp b/assets/animations/idle_activity_newspaper_loop/frame_035.webp new file mode 100644 index 0000000..6c0f34d Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_035.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_036.webp b/assets/animations/idle_activity_newspaper_loop/frame_036.webp new file mode 100644 index 0000000..71f571b Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_036.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_037.webp b/assets/animations/idle_activity_newspaper_loop/frame_037.webp new file mode 100644 index 0000000..bd9bbdc Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_037.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_038.webp b/assets/animations/idle_activity_newspaper_loop/frame_038.webp new file mode 100644 index 0000000..bf4098d Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_038.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_039.webp b/assets/animations/idle_activity_newspaper_loop/frame_039.webp new file mode 100644 index 0000000..247d369 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_039.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_040.webp b/assets/animations/idle_activity_newspaper_loop/frame_040.webp new file mode 100644 index 0000000..5850a7f Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_040.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_041.webp b/assets/animations/idle_activity_newspaper_loop/frame_041.webp new file mode 100644 index 0000000..28bf9ec Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_041.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_042.webp b/assets/animations/idle_activity_newspaper_loop/frame_042.webp new file mode 100644 index 0000000..741db6b Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_042.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_043.webp b/assets/animations/idle_activity_newspaper_loop/frame_043.webp new file mode 100644 index 0000000..fb19e32 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_043.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_044.webp b/assets/animations/idle_activity_newspaper_loop/frame_044.webp new file mode 100644 index 0000000..fd97dfd Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_044.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_045.webp b/assets/animations/idle_activity_newspaper_loop/frame_045.webp new file mode 100644 index 0000000..feebd73 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_045.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_046.webp b/assets/animations/idle_activity_newspaper_loop/frame_046.webp new file mode 100644 index 0000000..76bb8df Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_046.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_047.webp b/assets/animations/idle_activity_newspaper_loop/frame_047.webp new file mode 100644 index 0000000..3378b54 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_047.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_048.webp b/assets/animations/idle_activity_newspaper_loop/frame_048.webp new file mode 100644 index 0000000..81af7b5 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_048.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_049.webp b/assets/animations/idle_activity_newspaper_loop/frame_049.webp new file mode 100644 index 0000000..cb4a204 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_049.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_050.webp b/assets/animations/idle_activity_newspaper_loop/frame_050.webp new file mode 100644 index 0000000..a33edf9 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_050.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_051.webp b/assets/animations/idle_activity_newspaper_loop/frame_051.webp new file mode 100644 index 0000000..996a4d0 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_051.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_052.webp b/assets/animations/idle_activity_newspaper_loop/frame_052.webp new file mode 100644 index 0000000..ce79399 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_052.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_053.webp b/assets/animations/idle_activity_newspaper_loop/frame_053.webp new file mode 100644 index 0000000..ed641bc Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_053.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_054.webp b/assets/animations/idle_activity_newspaper_loop/frame_054.webp new file mode 100644 index 0000000..d7d4506 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_054.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_055.webp b/assets/animations/idle_activity_newspaper_loop/frame_055.webp new file mode 100644 index 0000000..c258002 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_055.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_056.webp b/assets/animations/idle_activity_newspaper_loop/frame_056.webp new file mode 100644 index 0000000..dbe2a0d Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_056.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_057.webp b/assets/animations/idle_activity_newspaper_loop/frame_057.webp new file mode 100644 index 0000000..e657f58 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_057.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_058.webp b/assets/animations/idle_activity_newspaper_loop/frame_058.webp new file mode 100644 index 0000000..34eb1f6 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_058.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_059.webp b/assets/animations/idle_activity_newspaper_loop/frame_059.webp new file mode 100644 index 0000000..1174b5a Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_059.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_060.webp b/assets/animations/idle_activity_newspaper_loop/frame_060.webp new file mode 100644 index 0000000..eb7177a Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_060.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_061.webp b/assets/animations/idle_activity_newspaper_loop/frame_061.webp new file mode 100644 index 0000000..62e2781 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_061.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_062.webp b/assets/animations/idle_activity_newspaper_loop/frame_062.webp new file mode 100644 index 0000000..72484cd Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_062.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_063.webp b/assets/animations/idle_activity_newspaper_loop/frame_063.webp new file mode 100644 index 0000000..7dad3bd Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_063.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_064.webp b/assets/animations/idle_activity_newspaper_loop/frame_064.webp new file mode 100644 index 0000000..a55813e Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_064.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_065.webp b/assets/animations/idle_activity_newspaper_loop/frame_065.webp new file mode 100644 index 0000000..c6a44a6 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_065.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_066.webp b/assets/animations/idle_activity_newspaper_loop/frame_066.webp new file mode 100644 index 0000000..0dff22b Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_066.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_067.webp b/assets/animations/idle_activity_newspaper_loop/frame_067.webp new file mode 100644 index 0000000..cdbd05b Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_067.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_068.webp b/assets/animations/idle_activity_newspaper_loop/frame_068.webp new file mode 100644 index 0000000..edd61fe Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_068.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_069.webp b/assets/animations/idle_activity_newspaper_loop/frame_069.webp new file mode 100644 index 0000000..d6f4ac2 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_069.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_070.webp b/assets/animations/idle_activity_newspaper_loop/frame_070.webp new file mode 100644 index 0000000..2f46c7d Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_070.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_071.webp b/assets/animations/idle_activity_newspaper_loop/frame_071.webp new file mode 100644 index 0000000..2919f6b Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_071.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_072.webp b/assets/animations/idle_activity_newspaper_loop/frame_072.webp new file mode 100644 index 0000000..a25c3df Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_072.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_073.webp b/assets/animations/idle_activity_newspaper_loop/frame_073.webp new file mode 100644 index 0000000..65264fa Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_073.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_074.webp b/assets/animations/idle_activity_newspaper_loop/frame_074.webp new file mode 100644 index 0000000..0a5b264 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_074.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_075.webp b/assets/animations/idle_activity_newspaper_loop/frame_075.webp new file mode 100644 index 0000000..c3ff605 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_075.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_076.webp b/assets/animations/idle_activity_newspaper_loop/frame_076.webp new file mode 100644 index 0000000..cc7f982 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_076.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_077.webp b/assets/animations/idle_activity_newspaper_loop/frame_077.webp new file mode 100644 index 0000000..06fda52 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_077.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_078.webp b/assets/animations/idle_activity_newspaper_loop/frame_078.webp new file mode 100644 index 0000000..7cca838 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_078.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_079.webp b/assets/animations/idle_activity_newspaper_loop/frame_079.webp new file mode 100644 index 0000000..9bbbd35 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_079.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_080.webp b/assets/animations/idle_activity_newspaper_loop/frame_080.webp new file mode 100644 index 0000000..0c6dc87 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_080.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_081.webp b/assets/animations/idle_activity_newspaper_loop/frame_081.webp new file mode 100644 index 0000000..2b11542 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_081.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_082.webp b/assets/animations/idle_activity_newspaper_loop/frame_082.webp new file mode 100644 index 0000000..e5ac5a2 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_082.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_083.webp b/assets/animations/idle_activity_newspaper_loop/frame_083.webp new file mode 100644 index 0000000..919d9cd Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_083.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_084.webp b/assets/animations/idle_activity_newspaper_loop/frame_084.webp new file mode 100644 index 0000000..be3ea11 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_084.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_085.webp b/assets/animations/idle_activity_newspaper_loop/frame_085.webp new file mode 100644 index 0000000..72893f5 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_085.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_086.webp b/assets/animations/idle_activity_newspaper_loop/frame_086.webp new file mode 100644 index 0000000..28c02f4 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_086.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_087.webp b/assets/animations/idle_activity_newspaper_loop/frame_087.webp new file mode 100644 index 0000000..bc8442f Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_087.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_088.webp b/assets/animations/idle_activity_newspaper_loop/frame_088.webp new file mode 100644 index 0000000..af22099 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_088.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_089.webp b/assets/animations/idle_activity_newspaper_loop/frame_089.webp new file mode 100644 index 0000000..806d88a Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_089.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_090.webp b/assets/animations/idle_activity_newspaper_loop/frame_090.webp new file mode 100644 index 0000000..16649e3 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_090.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_091.webp b/assets/animations/idle_activity_newspaper_loop/frame_091.webp new file mode 100644 index 0000000..eb37f50 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_091.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_092.webp b/assets/animations/idle_activity_newspaper_loop/frame_092.webp new file mode 100644 index 0000000..d88fb52 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_092.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_093.webp b/assets/animations/idle_activity_newspaper_loop/frame_093.webp new file mode 100644 index 0000000..d462030 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_093.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_094.webp b/assets/animations/idle_activity_newspaper_loop/frame_094.webp new file mode 100644 index 0000000..e837ed8 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_094.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_095.webp b/assets/animations/idle_activity_newspaper_loop/frame_095.webp new file mode 100644 index 0000000..e26b878 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_095.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_096.webp b/assets/animations/idle_activity_newspaper_loop/frame_096.webp new file mode 100644 index 0000000..2bcce37 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_096.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_097.webp b/assets/animations/idle_activity_newspaper_loop/frame_097.webp new file mode 100644 index 0000000..3669edb Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_097.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_098.webp b/assets/animations/idle_activity_newspaper_loop/frame_098.webp new file mode 100644 index 0000000..48607a5 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_098.webp differ diff --git a/assets/animations/idle_activity_newspaper_loop/frame_099.webp b/assets/animations/idle_activity_newspaper_loop/frame_099.webp new file mode 100644 index 0000000..895e646 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_loop/frame_099.webp differ diff --git a/assets/animations/idle_activity_newspaper_start/frame_000.webp b/assets/animations/idle_activity_newspaper_start/frame_000.webp new file mode 100644 index 0000000..1310052 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_start/frame_000.webp differ diff --git a/assets/animations/idle_activity_newspaper_start/frame_001.webp b/assets/animations/idle_activity_newspaper_start/frame_001.webp new file mode 100644 index 0000000..92dbb43 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_start/frame_001.webp differ diff --git a/assets/animations/idle_activity_newspaper_start/frame_002.webp b/assets/animations/idle_activity_newspaper_start/frame_002.webp new file mode 100644 index 0000000..193828f Binary files /dev/null and b/assets/animations/idle_activity_newspaper_start/frame_002.webp differ diff --git a/assets/animations/idle_activity_newspaper_start/frame_003.webp b/assets/animations/idle_activity_newspaper_start/frame_003.webp new file mode 100644 index 0000000..b367879 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_start/frame_003.webp differ diff --git a/assets/animations/idle_activity_newspaper_start/frame_004.webp b/assets/animations/idle_activity_newspaper_start/frame_004.webp new file mode 100644 index 0000000..535d7e9 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_start/frame_004.webp differ diff --git a/assets/animations/idle_activity_newspaper_start/frame_005.webp b/assets/animations/idle_activity_newspaper_start/frame_005.webp new file mode 100644 index 0000000..a8545de Binary files /dev/null and b/assets/animations/idle_activity_newspaper_start/frame_005.webp differ diff --git a/assets/animations/idle_activity_newspaper_start/frame_006.webp b/assets/animations/idle_activity_newspaper_start/frame_006.webp new file mode 100644 index 0000000..d0f91d6 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_start/frame_006.webp differ diff --git a/assets/animations/idle_activity_newspaper_start/frame_007.webp b/assets/animations/idle_activity_newspaper_start/frame_007.webp new file mode 100644 index 0000000..966d07d Binary files /dev/null and b/assets/animations/idle_activity_newspaper_start/frame_007.webp differ diff --git a/assets/animations/idle_activity_newspaper_start/frame_008.webp b/assets/animations/idle_activity_newspaper_start/frame_008.webp new file mode 100644 index 0000000..8aa6baa Binary files /dev/null and b/assets/animations/idle_activity_newspaper_start/frame_008.webp differ diff --git a/assets/animations/idle_activity_newspaper_start/frame_009.webp b/assets/animations/idle_activity_newspaper_start/frame_009.webp new file mode 100644 index 0000000..c55ae02 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_start/frame_009.webp differ diff --git a/assets/animations/idle_activity_newspaper_start/frame_010.webp b/assets/animations/idle_activity_newspaper_start/frame_010.webp new file mode 100644 index 0000000..41c18a8 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_start/frame_010.webp differ diff --git a/assets/animations/idle_activity_newspaper_start/frame_011.webp b/assets/animations/idle_activity_newspaper_start/frame_011.webp new file mode 100644 index 0000000..2d75afd Binary files /dev/null and b/assets/animations/idle_activity_newspaper_start/frame_011.webp differ diff --git a/assets/animations/idle_activity_newspaper_start/frame_012.webp b/assets/animations/idle_activity_newspaper_start/frame_012.webp new file mode 100644 index 0000000..c72c3ed Binary files /dev/null and b/assets/animations/idle_activity_newspaper_start/frame_012.webp differ diff --git a/assets/animations/idle_activity_newspaper_start/frame_013.webp b/assets/animations/idle_activity_newspaper_start/frame_013.webp new file mode 100644 index 0000000..a5eb8d0 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_start/frame_013.webp differ diff --git a/assets/animations/idle_activity_newspaper_start/frame_014.webp b/assets/animations/idle_activity_newspaper_start/frame_014.webp new file mode 100644 index 0000000..f70dc63 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_start/frame_014.webp differ diff --git a/assets/animations/idle_activity_newspaper_start/frame_015.webp b/assets/animations/idle_activity_newspaper_start/frame_015.webp new file mode 100644 index 0000000..4d1a9b3 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_start/frame_015.webp differ diff --git a/assets/animations/idle_activity_newspaper_start/frame_016.webp b/assets/animations/idle_activity_newspaper_start/frame_016.webp new file mode 100644 index 0000000..b0162ab Binary files /dev/null and b/assets/animations/idle_activity_newspaper_start/frame_016.webp differ diff --git a/assets/animations/idle_activity_newspaper_start/frame_017.webp b/assets/animations/idle_activity_newspaper_start/frame_017.webp new file mode 100644 index 0000000..fd03b01 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_start/frame_017.webp differ diff --git a/assets/animations/idle_activity_newspaper_start/frame_018.webp b/assets/animations/idle_activity_newspaper_start/frame_018.webp new file mode 100644 index 0000000..1d5e887 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_start/frame_018.webp differ diff --git a/assets/animations/idle_activity_newspaper_start/frame_019.webp b/assets/animations/idle_activity_newspaper_start/frame_019.webp new file mode 100644 index 0000000..1d4d83c Binary files /dev/null and b/assets/animations/idle_activity_newspaper_start/frame_019.webp differ diff --git a/assets/animations/idle_activity_newspaper_start/frame_020.webp b/assets/animations/idle_activity_newspaper_start/frame_020.webp new file mode 100644 index 0000000..2fb65ec Binary files /dev/null and b/assets/animations/idle_activity_newspaper_start/frame_020.webp differ diff --git a/assets/animations/idle_activity_newspaper_start/frame_021.webp b/assets/animations/idle_activity_newspaper_start/frame_021.webp new file mode 100644 index 0000000..69b1936 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_start/frame_021.webp differ diff --git a/assets/animations/idle_activity_newspaper_start/frame_022.webp b/assets/animations/idle_activity_newspaper_start/frame_022.webp new file mode 100644 index 0000000..b89d824 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_start/frame_022.webp differ diff --git a/assets/animations/idle_activity_newspaper_start/frame_023.webp b/assets/animations/idle_activity_newspaper_start/frame_023.webp new file mode 100644 index 0000000..c94b711 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_start/frame_023.webp differ diff --git a/assets/animations/idle_activity_newspaper_start/frame_024.webp b/assets/animations/idle_activity_newspaper_start/frame_024.webp new file mode 100644 index 0000000..88d7c15 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_start/frame_024.webp differ diff --git a/assets/animations/idle_activity_newspaper_start/frame_025.webp b/assets/animations/idle_activity_newspaper_start/frame_025.webp new file mode 100644 index 0000000..e9664fd Binary files /dev/null and b/assets/animations/idle_activity_newspaper_start/frame_025.webp differ diff --git a/assets/animations/idle_activity_newspaper_start/frame_026.webp b/assets/animations/idle_activity_newspaper_start/frame_026.webp new file mode 100644 index 0000000..0e8200e Binary files /dev/null and b/assets/animations/idle_activity_newspaper_start/frame_026.webp differ diff --git a/assets/animations/idle_activity_newspaper_start/frame_027.webp b/assets/animations/idle_activity_newspaper_start/frame_027.webp new file mode 100644 index 0000000..34ebcd0 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_start/frame_027.webp differ diff --git a/assets/animations/idle_activity_newspaper_start/frame_028.webp b/assets/animations/idle_activity_newspaper_start/frame_028.webp new file mode 100644 index 0000000..bc8021c Binary files /dev/null and b/assets/animations/idle_activity_newspaper_start/frame_028.webp differ diff --git a/assets/animations/idle_activity_newspaper_start/frame_029.webp b/assets/animations/idle_activity_newspaper_start/frame_029.webp new file mode 100644 index 0000000..d78f5b8 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_start/frame_029.webp differ diff --git a/assets/animations/idle_activity_newspaper_start/frame_030.webp b/assets/animations/idle_activity_newspaper_start/frame_030.webp new file mode 100644 index 0000000..cd21afd Binary files /dev/null and b/assets/animations/idle_activity_newspaper_start/frame_030.webp differ diff --git a/assets/animations/idle_activity_newspaper_start/frame_031.webp b/assets/animations/idle_activity_newspaper_start/frame_031.webp new file mode 100644 index 0000000..98c51a7 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_start/frame_031.webp differ diff --git a/assets/animations/idle_activity_newspaper_start/frame_032.webp b/assets/animations/idle_activity_newspaper_start/frame_032.webp new file mode 100644 index 0000000..a557085 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_start/frame_032.webp differ diff --git a/assets/animations/idle_activity_newspaper_start/frame_033.webp b/assets/animations/idle_activity_newspaper_start/frame_033.webp new file mode 100644 index 0000000..2903a93 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_start/frame_033.webp differ diff --git a/assets/animations/idle_activity_newspaper_start/frame_034.webp b/assets/animations/idle_activity_newspaper_start/frame_034.webp new file mode 100644 index 0000000..071aff3 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_start/frame_034.webp differ diff --git a/assets/animations/idle_activity_newspaper_start/frame_035.webp b/assets/animations/idle_activity_newspaper_start/frame_035.webp new file mode 100644 index 0000000..405d199 Binary files /dev/null and b/assets/animations/idle_activity_newspaper_start/frame_035.webp differ diff --git a/assets/animations/idle_activity_newspaper_start/frame_036.webp b/assets/animations/idle_activity_newspaper_start/frame_036.webp new file mode 100644 index 0000000..e45bb7a Binary files /dev/null and b/assets/animations/idle_activity_newspaper_start/frame_036.webp differ diff --git a/assets/animations/idle_activity_newspaper_start/frame_037.webp b/assets/animations/idle_activity_newspaper_start/frame_037.webp new file mode 100644 index 0000000..9cecbad Binary files /dev/null and b/assets/animations/idle_activity_newspaper_start/frame_037.webp differ diff --git a/assets/animations/idle_activity_newspaper_start/frame_038.webp b/assets/animations/idle_activity_newspaper_start/frame_038.webp new file mode 100644 index 0000000..a94b26c Binary files /dev/null and b/assets/animations/idle_activity_newspaper_start/frame_038.webp differ diff --git a/assets/animations/idle_activity_newspaper_start/frame_039.webp b/assets/animations/idle_activity_newspaper_start/frame_039.webp new file mode 100644 index 0000000..620a64e Binary files /dev/null and b/assets/animations/idle_activity_newspaper_start/frame_039.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_000.webp b/assets/animations/idle_activity_sleep_finish/frame_000.webp new file mode 100644 index 0000000..1d6175a Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_000.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_001.webp b/assets/animations/idle_activity_sleep_finish/frame_001.webp new file mode 100644 index 0000000..499e71b Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_001.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_002.webp b/assets/animations/idle_activity_sleep_finish/frame_002.webp new file mode 100644 index 0000000..8154748 Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_002.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_003.webp b/assets/animations/idle_activity_sleep_finish/frame_003.webp new file mode 100644 index 0000000..2d5e218 Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_003.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_004.webp b/assets/animations/idle_activity_sleep_finish/frame_004.webp new file mode 100644 index 0000000..19e5da8 Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_004.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_005.webp b/assets/animations/idle_activity_sleep_finish/frame_005.webp new file mode 100644 index 0000000..0d5a371 Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_005.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_006.webp b/assets/animations/idle_activity_sleep_finish/frame_006.webp new file mode 100644 index 0000000..560f178 Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_006.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_007.webp b/assets/animations/idle_activity_sleep_finish/frame_007.webp new file mode 100644 index 0000000..eaa9515 Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_007.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_008.webp b/assets/animations/idle_activity_sleep_finish/frame_008.webp new file mode 100644 index 0000000..748af2b Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_008.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_009.webp b/assets/animations/idle_activity_sleep_finish/frame_009.webp new file mode 100644 index 0000000..3f83c2e Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_009.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_010.webp b/assets/animations/idle_activity_sleep_finish/frame_010.webp new file mode 100644 index 0000000..1713876 Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_010.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_011.webp b/assets/animations/idle_activity_sleep_finish/frame_011.webp new file mode 100644 index 0000000..a835d90 Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_011.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_012.webp b/assets/animations/idle_activity_sleep_finish/frame_012.webp new file mode 100644 index 0000000..6cfbe16 Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_012.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_013.webp b/assets/animations/idle_activity_sleep_finish/frame_013.webp new file mode 100644 index 0000000..9f0406f Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_013.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_014.webp b/assets/animations/idle_activity_sleep_finish/frame_014.webp new file mode 100644 index 0000000..1a37020 Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_014.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_015.webp b/assets/animations/idle_activity_sleep_finish/frame_015.webp new file mode 100644 index 0000000..dd5d59f Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_015.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_016.webp b/assets/animations/idle_activity_sleep_finish/frame_016.webp new file mode 100644 index 0000000..9671070 Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_016.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_017.webp b/assets/animations/idle_activity_sleep_finish/frame_017.webp new file mode 100644 index 0000000..32fff3e Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_017.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_018.webp b/assets/animations/idle_activity_sleep_finish/frame_018.webp new file mode 100644 index 0000000..b029155 Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_018.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_019.webp b/assets/animations/idle_activity_sleep_finish/frame_019.webp new file mode 100644 index 0000000..05c5c3f Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_019.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_020.webp b/assets/animations/idle_activity_sleep_finish/frame_020.webp new file mode 100644 index 0000000..5e4652c Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_020.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_021.webp b/assets/animations/idle_activity_sleep_finish/frame_021.webp new file mode 100644 index 0000000..88320eb Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_021.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_022.webp b/assets/animations/idle_activity_sleep_finish/frame_022.webp new file mode 100644 index 0000000..4742aca Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_022.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_023.webp b/assets/animations/idle_activity_sleep_finish/frame_023.webp new file mode 100644 index 0000000..c7665a1 Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_023.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_024.webp b/assets/animations/idle_activity_sleep_finish/frame_024.webp new file mode 100644 index 0000000..5fbc1c2 Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_024.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_025.webp b/assets/animations/idle_activity_sleep_finish/frame_025.webp new file mode 100644 index 0000000..9d4eed7 Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_025.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_026.webp b/assets/animations/idle_activity_sleep_finish/frame_026.webp new file mode 100644 index 0000000..e41f914 Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_026.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_027.webp b/assets/animations/idle_activity_sleep_finish/frame_027.webp new file mode 100644 index 0000000..5407155 Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_027.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_028.webp b/assets/animations/idle_activity_sleep_finish/frame_028.webp new file mode 100644 index 0000000..108cdd6 Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_028.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_029.webp b/assets/animations/idle_activity_sleep_finish/frame_029.webp new file mode 100644 index 0000000..5c31a73 Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_029.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_030.webp b/assets/animations/idle_activity_sleep_finish/frame_030.webp new file mode 100644 index 0000000..46c4898 Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_030.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_031.webp b/assets/animations/idle_activity_sleep_finish/frame_031.webp new file mode 100644 index 0000000..b4232b5 Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_031.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_032.webp b/assets/animations/idle_activity_sleep_finish/frame_032.webp new file mode 100644 index 0000000..76df8b3 Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_032.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_033.webp b/assets/animations/idle_activity_sleep_finish/frame_033.webp new file mode 100644 index 0000000..d4fe23c Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_033.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_034.webp b/assets/animations/idle_activity_sleep_finish/frame_034.webp new file mode 100644 index 0000000..52209ed Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_034.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_035.webp b/assets/animations/idle_activity_sleep_finish/frame_035.webp new file mode 100644 index 0000000..ed9bc18 Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_035.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_036.webp b/assets/animations/idle_activity_sleep_finish/frame_036.webp new file mode 100644 index 0000000..ac420ae Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_036.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_037.webp b/assets/animations/idle_activity_sleep_finish/frame_037.webp new file mode 100644 index 0000000..68b0030 Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_037.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_038.webp b/assets/animations/idle_activity_sleep_finish/frame_038.webp new file mode 100644 index 0000000..5c61166 Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_038.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_039.webp b/assets/animations/idle_activity_sleep_finish/frame_039.webp new file mode 100644 index 0000000..d48a0d8 Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_039.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_040.webp b/assets/animations/idle_activity_sleep_finish/frame_040.webp new file mode 100644 index 0000000..c0330f0 Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_040.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_041.webp b/assets/animations/idle_activity_sleep_finish/frame_041.webp new file mode 100644 index 0000000..0fe9cad Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_041.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_042.webp b/assets/animations/idle_activity_sleep_finish/frame_042.webp new file mode 100644 index 0000000..35e5a5a Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_042.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_043.webp b/assets/animations/idle_activity_sleep_finish/frame_043.webp new file mode 100644 index 0000000..f06830f Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_043.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_044.webp b/assets/animations/idle_activity_sleep_finish/frame_044.webp new file mode 100644 index 0000000..ece6d1e Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_044.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_045.webp b/assets/animations/idle_activity_sleep_finish/frame_045.webp new file mode 100644 index 0000000..a92e040 Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_045.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_046.webp b/assets/animations/idle_activity_sleep_finish/frame_046.webp new file mode 100644 index 0000000..95f63b2 Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_046.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_047.webp b/assets/animations/idle_activity_sleep_finish/frame_047.webp new file mode 100644 index 0000000..e8d41d1 Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_047.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_048.webp b/assets/animations/idle_activity_sleep_finish/frame_048.webp new file mode 100644 index 0000000..ae050db Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_048.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_049.webp b/assets/animations/idle_activity_sleep_finish/frame_049.webp new file mode 100644 index 0000000..ebf35a5 Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_049.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_050.webp b/assets/animations/idle_activity_sleep_finish/frame_050.webp new file mode 100644 index 0000000..75fb37b Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_050.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_051.webp b/assets/animations/idle_activity_sleep_finish/frame_051.webp new file mode 100644 index 0000000..831ab1e Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_051.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_052.webp b/assets/animations/idle_activity_sleep_finish/frame_052.webp new file mode 100644 index 0000000..f55d35f Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_052.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_053.webp b/assets/animations/idle_activity_sleep_finish/frame_053.webp new file mode 100644 index 0000000..271db0d Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_053.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_054.webp b/assets/animations/idle_activity_sleep_finish/frame_054.webp new file mode 100644 index 0000000..4608ae5 Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_054.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_055.webp b/assets/animations/idle_activity_sleep_finish/frame_055.webp new file mode 100644 index 0000000..4276d26 Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_055.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_056.webp b/assets/animations/idle_activity_sleep_finish/frame_056.webp new file mode 100644 index 0000000..9c8790b Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_056.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_057.webp b/assets/animations/idle_activity_sleep_finish/frame_057.webp new file mode 100644 index 0000000..750bff7 Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_057.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_058.webp b/assets/animations/idle_activity_sleep_finish/frame_058.webp new file mode 100644 index 0000000..82182a4 Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_058.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_059.webp b/assets/animations/idle_activity_sleep_finish/frame_059.webp new file mode 100644 index 0000000..4fab6a1 Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_059.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_060.webp b/assets/animations/idle_activity_sleep_finish/frame_060.webp new file mode 100644 index 0000000..b445db3 Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_060.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_061.webp b/assets/animations/idle_activity_sleep_finish/frame_061.webp new file mode 100644 index 0000000..9c468f6 Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_061.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_062.webp b/assets/animations/idle_activity_sleep_finish/frame_062.webp new file mode 100644 index 0000000..fca6005 Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_062.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_063.webp b/assets/animations/idle_activity_sleep_finish/frame_063.webp new file mode 100644 index 0000000..29882b0 Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_063.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_064.webp b/assets/animations/idle_activity_sleep_finish/frame_064.webp new file mode 100644 index 0000000..5145ac1 Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_064.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_065.webp b/assets/animations/idle_activity_sleep_finish/frame_065.webp new file mode 100644 index 0000000..0d0e6a9 Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_065.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_066.webp b/assets/animations/idle_activity_sleep_finish/frame_066.webp new file mode 100644 index 0000000..b00e8cc Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_066.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_067.webp b/assets/animations/idle_activity_sleep_finish/frame_067.webp new file mode 100644 index 0000000..a6e6789 Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_067.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_068.webp b/assets/animations/idle_activity_sleep_finish/frame_068.webp new file mode 100644 index 0000000..713bdd6 Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_068.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_069.webp b/assets/animations/idle_activity_sleep_finish/frame_069.webp new file mode 100644 index 0000000..af71522 Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_069.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_070.webp b/assets/animations/idle_activity_sleep_finish/frame_070.webp new file mode 100644 index 0000000..5aec9c1 Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_070.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_071.webp b/assets/animations/idle_activity_sleep_finish/frame_071.webp new file mode 100644 index 0000000..64a94b8 Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_071.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_072.webp b/assets/animations/idle_activity_sleep_finish/frame_072.webp new file mode 100644 index 0000000..d441534 Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_072.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_073.webp b/assets/animations/idle_activity_sleep_finish/frame_073.webp new file mode 100644 index 0000000..adb9706 Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_073.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_074.webp b/assets/animations/idle_activity_sleep_finish/frame_074.webp new file mode 100644 index 0000000..25528bc Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_074.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_075.webp b/assets/animations/idle_activity_sleep_finish/frame_075.webp new file mode 100644 index 0000000..049c4c0 Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_075.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_076.webp b/assets/animations/idle_activity_sleep_finish/frame_076.webp new file mode 100644 index 0000000..cdfdd26 Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_076.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_077.webp b/assets/animations/idle_activity_sleep_finish/frame_077.webp new file mode 100644 index 0000000..f371e4f Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_077.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_078.webp b/assets/animations/idle_activity_sleep_finish/frame_078.webp new file mode 100644 index 0000000..433200f Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_078.webp differ diff --git a/assets/animations/idle_activity_sleep_finish/frame_079.webp b/assets/animations/idle_activity_sleep_finish/frame_079.webp new file mode 100644 index 0000000..ac04f56 Binary files /dev/null and b/assets/animations/idle_activity_sleep_finish/frame_079.webp differ diff --git a/assets/animations/idle_activity_sleep_loop/frame_000.webp b/assets/animations/idle_activity_sleep_loop/frame_000.webp new file mode 100644 index 0000000..1af2020 Binary files /dev/null and b/assets/animations/idle_activity_sleep_loop/frame_000.webp differ diff --git a/assets/animations/idle_activity_sleep_loop/frame_001.webp b/assets/animations/idle_activity_sleep_loop/frame_001.webp new file mode 100644 index 0000000..1cf97e3 Binary files /dev/null and b/assets/animations/idle_activity_sleep_loop/frame_001.webp differ diff --git a/assets/animations/idle_activity_sleep_loop/frame_002.webp b/assets/animations/idle_activity_sleep_loop/frame_002.webp new file mode 100644 index 0000000..aa11414 Binary files /dev/null and b/assets/animations/idle_activity_sleep_loop/frame_002.webp differ diff --git a/assets/animations/idle_activity_sleep_loop/frame_003.webp b/assets/animations/idle_activity_sleep_loop/frame_003.webp new file mode 100644 index 0000000..fc74144 Binary files /dev/null and b/assets/animations/idle_activity_sleep_loop/frame_003.webp differ diff --git a/assets/animations/idle_activity_sleep_loop/frame_004.webp b/assets/animations/idle_activity_sleep_loop/frame_004.webp new file mode 100644 index 0000000..30f9007 Binary files /dev/null and b/assets/animations/idle_activity_sleep_loop/frame_004.webp differ diff --git a/assets/animations/idle_activity_sleep_loop/frame_005.webp b/assets/animations/idle_activity_sleep_loop/frame_005.webp new file mode 100644 index 0000000..b947db2 Binary files /dev/null and b/assets/animations/idle_activity_sleep_loop/frame_005.webp differ diff --git a/assets/animations/idle_activity_sleep_loop/frame_006.webp b/assets/animations/idle_activity_sleep_loop/frame_006.webp new file mode 100644 index 0000000..2135073 Binary files /dev/null and b/assets/animations/idle_activity_sleep_loop/frame_006.webp differ diff --git a/assets/animations/idle_activity_sleep_loop/frame_007.webp b/assets/animations/idle_activity_sleep_loop/frame_007.webp new file mode 100644 index 0000000..1897970 Binary files /dev/null and b/assets/animations/idle_activity_sleep_loop/frame_007.webp differ diff --git a/assets/animations/idle_activity_sleep_loop/frame_008.webp b/assets/animations/idle_activity_sleep_loop/frame_008.webp new file mode 100644 index 0000000..7560b6f Binary files /dev/null and b/assets/animations/idle_activity_sleep_loop/frame_008.webp differ diff --git a/assets/animations/idle_activity_sleep_loop/frame_009.webp b/assets/animations/idle_activity_sleep_loop/frame_009.webp new file mode 100644 index 0000000..a8efa10 Binary files /dev/null and b/assets/animations/idle_activity_sleep_loop/frame_009.webp differ diff --git a/assets/animations/idle_activity_sleep_loop/frame_010.webp b/assets/animations/idle_activity_sleep_loop/frame_010.webp new file mode 100644 index 0000000..01fd226 Binary files /dev/null and b/assets/animations/idle_activity_sleep_loop/frame_010.webp differ diff --git a/assets/animations/idle_activity_sleep_loop/frame_011.webp b/assets/animations/idle_activity_sleep_loop/frame_011.webp new file mode 100644 index 0000000..56c7b34 Binary files /dev/null and b/assets/animations/idle_activity_sleep_loop/frame_011.webp differ diff --git a/assets/animations/idle_activity_sleep_loop/frame_012.webp b/assets/animations/idle_activity_sleep_loop/frame_012.webp new file mode 100644 index 0000000..e6d9735 Binary files /dev/null and b/assets/animations/idle_activity_sleep_loop/frame_012.webp differ diff --git a/assets/animations/idle_activity_sleep_loop/frame_013.webp b/assets/animations/idle_activity_sleep_loop/frame_013.webp new file mode 100644 index 0000000..40bb7b4 Binary files /dev/null and b/assets/animations/idle_activity_sleep_loop/frame_013.webp differ diff --git a/assets/animations/idle_activity_sleep_loop/frame_014.webp b/assets/animations/idle_activity_sleep_loop/frame_014.webp new file mode 100644 index 0000000..0ff427e Binary files /dev/null and b/assets/animations/idle_activity_sleep_loop/frame_014.webp differ diff --git a/assets/animations/idle_activity_sleep_loop/frame_015.webp b/assets/animations/idle_activity_sleep_loop/frame_015.webp new file mode 100644 index 0000000..f68a27f Binary files /dev/null and b/assets/animations/idle_activity_sleep_loop/frame_015.webp differ diff --git a/assets/animations/idle_activity_sleep_loop/frame_016.webp b/assets/animations/idle_activity_sleep_loop/frame_016.webp new file mode 100644 index 0000000..571482f Binary files /dev/null and b/assets/animations/idle_activity_sleep_loop/frame_016.webp differ diff --git a/assets/animations/idle_activity_sleep_loop/frame_017.webp b/assets/animations/idle_activity_sleep_loop/frame_017.webp new file mode 100644 index 0000000..efcf6b6 Binary files /dev/null and b/assets/animations/idle_activity_sleep_loop/frame_017.webp differ diff --git a/assets/animations/idle_activity_sleep_loop/frame_018.webp b/assets/animations/idle_activity_sleep_loop/frame_018.webp new file mode 100644 index 0000000..66d684c Binary files /dev/null and b/assets/animations/idle_activity_sleep_loop/frame_018.webp differ diff --git a/assets/animations/idle_activity_sleep_loop/frame_019.webp b/assets/animations/idle_activity_sleep_loop/frame_019.webp new file mode 100644 index 0000000..63a08c3 Binary files /dev/null and b/assets/animations/idle_activity_sleep_loop/frame_019.webp differ diff --git a/assets/animations/idle_activity_sleep_loop/frame_020.webp b/assets/animations/idle_activity_sleep_loop/frame_020.webp new file mode 100644 index 0000000..fa39f84 Binary files /dev/null and b/assets/animations/idle_activity_sleep_loop/frame_020.webp differ diff --git a/assets/animations/idle_activity_sleep_loop/frame_021.webp b/assets/animations/idle_activity_sleep_loop/frame_021.webp new file mode 100644 index 0000000..03faca8 Binary files /dev/null and b/assets/animations/idle_activity_sleep_loop/frame_021.webp differ diff --git a/assets/animations/idle_activity_sleep_loop/frame_022.webp b/assets/animations/idle_activity_sleep_loop/frame_022.webp new file mode 100644 index 0000000..6b4e717 Binary files /dev/null and b/assets/animations/idle_activity_sleep_loop/frame_022.webp differ diff --git a/assets/animations/idle_activity_sleep_loop/frame_023.webp b/assets/animations/idle_activity_sleep_loop/frame_023.webp new file mode 100644 index 0000000..aeed8a5 Binary files /dev/null and b/assets/animations/idle_activity_sleep_loop/frame_023.webp differ diff --git a/assets/animations/idle_activity_sleep_loop/frame_024.webp b/assets/animations/idle_activity_sleep_loop/frame_024.webp new file mode 100644 index 0000000..cbd1498 Binary files /dev/null and b/assets/animations/idle_activity_sleep_loop/frame_024.webp differ diff --git a/assets/animations/idle_activity_sleep_loop/frame_025.webp b/assets/animations/idle_activity_sleep_loop/frame_025.webp new file mode 100644 index 0000000..7cf01ce Binary files /dev/null and b/assets/animations/idle_activity_sleep_loop/frame_025.webp differ diff --git a/assets/animations/idle_activity_sleep_loop/frame_026.webp b/assets/animations/idle_activity_sleep_loop/frame_026.webp new file mode 100644 index 0000000..b7ef7d9 Binary files /dev/null and b/assets/animations/idle_activity_sleep_loop/frame_026.webp differ diff --git a/assets/animations/idle_activity_sleep_loop/frame_027.webp b/assets/animations/idle_activity_sleep_loop/frame_027.webp new file mode 100644 index 0000000..07ecc80 Binary files /dev/null and b/assets/animations/idle_activity_sleep_loop/frame_027.webp differ diff --git a/assets/animations/idle_activity_sleep_loop/frame_028.webp b/assets/animations/idle_activity_sleep_loop/frame_028.webp new file mode 100644 index 0000000..b3f9aab Binary files /dev/null and b/assets/animations/idle_activity_sleep_loop/frame_028.webp differ diff --git a/assets/animations/idle_activity_sleep_loop/frame_029.webp b/assets/animations/idle_activity_sleep_loop/frame_029.webp new file mode 100644 index 0000000..f5e41bd Binary files /dev/null and b/assets/animations/idle_activity_sleep_loop/frame_029.webp differ diff --git a/assets/animations/idle_activity_sleep_loop/frame_030.webp b/assets/animations/idle_activity_sleep_loop/frame_030.webp new file mode 100644 index 0000000..b8231f9 Binary files /dev/null and b/assets/animations/idle_activity_sleep_loop/frame_030.webp differ diff --git a/assets/animations/idle_activity_sleep_loop/frame_031.webp b/assets/animations/idle_activity_sleep_loop/frame_031.webp new file mode 100644 index 0000000..e0f821b Binary files /dev/null and b/assets/animations/idle_activity_sleep_loop/frame_031.webp differ diff --git a/assets/animations/idle_activity_sleep_loop/frame_032.webp b/assets/animations/idle_activity_sleep_loop/frame_032.webp new file mode 100644 index 0000000..3475cee Binary files /dev/null and b/assets/animations/idle_activity_sleep_loop/frame_032.webp differ diff --git a/assets/animations/idle_activity_sleep_loop/frame_033.webp b/assets/animations/idle_activity_sleep_loop/frame_033.webp new file mode 100644 index 0000000..1760ca2 Binary files /dev/null and b/assets/animations/idle_activity_sleep_loop/frame_033.webp differ diff --git a/assets/animations/idle_activity_sleep_loop/frame_034.webp b/assets/animations/idle_activity_sleep_loop/frame_034.webp new file mode 100644 index 0000000..d10e7da Binary files /dev/null and b/assets/animations/idle_activity_sleep_loop/frame_034.webp differ diff --git a/assets/animations/idle_activity_sleep_loop/frame_035.webp b/assets/animations/idle_activity_sleep_loop/frame_035.webp new file mode 100644 index 0000000..243f985 Binary files /dev/null and b/assets/animations/idle_activity_sleep_loop/frame_035.webp differ diff --git a/assets/animations/idle_activity_sleep_loop/frame_036.webp b/assets/animations/idle_activity_sleep_loop/frame_036.webp new file mode 100644 index 0000000..465a2d5 Binary files /dev/null and b/assets/animations/idle_activity_sleep_loop/frame_036.webp differ diff --git a/assets/animations/idle_activity_sleep_loop/frame_037.webp b/assets/animations/idle_activity_sleep_loop/frame_037.webp new file mode 100644 index 0000000..5445e52 Binary files /dev/null and b/assets/animations/idle_activity_sleep_loop/frame_037.webp differ diff --git a/assets/animations/idle_activity_sleep_loop/frame_038.webp b/assets/animations/idle_activity_sleep_loop/frame_038.webp new file mode 100644 index 0000000..5baf920 Binary files /dev/null and b/assets/animations/idle_activity_sleep_loop/frame_038.webp differ diff --git a/assets/animations/idle_activity_sleep_loop/frame_039.webp b/assets/animations/idle_activity_sleep_loop/frame_039.webp new file mode 100644 index 0000000..73b2b44 Binary files /dev/null and b/assets/animations/idle_activity_sleep_loop/frame_039.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_000.webp b/assets/animations/idle_activity_sleep_start/frame_000.webp new file mode 100644 index 0000000..c68f267 Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_000.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_001.webp b/assets/animations/idle_activity_sleep_start/frame_001.webp new file mode 100644 index 0000000..0c8ec0f Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_001.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_002.webp b/assets/animations/idle_activity_sleep_start/frame_002.webp new file mode 100644 index 0000000..dabbbc1 Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_002.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_003.webp b/assets/animations/idle_activity_sleep_start/frame_003.webp new file mode 100644 index 0000000..5f62020 Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_003.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_004.webp b/assets/animations/idle_activity_sleep_start/frame_004.webp new file mode 100644 index 0000000..bfe5899 Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_004.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_005.webp b/assets/animations/idle_activity_sleep_start/frame_005.webp new file mode 100644 index 0000000..d5b3ea7 Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_005.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_006.webp b/assets/animations/idle_activity_sleep_start/frame_006.webp new file mode 100644 index 0000000..c324b1d Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_006.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_007.webp b/assets/animations/idle_activity_sleep_start/frame_007.webp new file mode 100644 index 0000000..616ae32 Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_007.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_008.webp b/assets/animations/idle_activity_sleep_start/frame_008.webp new file mode 100644 index 0000000..6796cd4 Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_008.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_009.webp b/assets/animations/idle_activity_sleep_start/frame_009.webp new file mode 100644 index 0000000..01fcd21 Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_009.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_010.webp b/assets/animations/idle_activity_sleep_start/frame_010.webp new file mode 100644 index 0000000..e9a53cf Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_010.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_011.webp b/assets/animations/idle_activity_sleep_start/frame_011.webp new file mode 100644 index 0000000..49aa7f8 Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_011.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_012.webp b/assets/animations/idle_activity_sleep_start/frame_012.webp new file mode 100644 index 0000000..0d3d12a Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_012.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_013.webp b/assets/animations/idle_activity_sleep_start/frame_013.webp new file mode 100644 index 0000000..d9249aa Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_013.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_014.webp b/assets/animations/idle_activity_sleep_start/frame_014.webp new file mode 100644 index 0000000..8757931 Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_014.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_015.webp b/assets/animations/idle_activity_sleep_start/frame_015.webp new file mode 100644 index 0000000..e90b84a Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_015.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_016.webp b/assets/animations/idle_activity_sleep_start/frame_016.webp new file mode 100644 index 0000000..0e31f7f Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_016.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_017.webp b/assets/animations/idle_activity_sleep_start/frame_017.webp new file mode 100644 index 0000000..c7cae8e Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_017.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_018.webp b/assets/animations/idle_activity_sleep_start/frame_018.webp new file mode 100644 index 0000000..d543cf1 Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_018.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_019.webp b/assets/animations/idle_activity_sleep_start/frame_019.webp new file mode 100644 index 0000000..b31e187 Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_019.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_020.webp b/assets/animations/idle_activity_sleep_start/frame_020.webp new file mode 100644 index 0000000..7d951e7 Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_020.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_021.webp b/assets/animations/idle_activity_sleep_start/frame_021.webp new file mode 100644 index 0000000..01ef25e Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_021.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_022.webp b/assets/animations/idle_activity_sleep_start/frame_022.webp new file mode 100644 index 0000000..b9de2e7 Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_022.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_023.webp b/assets/animations/idle_activity_sleep_start/frame_023.webp new file mode 100644 index 0000000..5619af3 Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_023.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_024.webp b/assets/animations/idle_activity_sleep_start/frame_024.webp new file mode 100644 index 0000000..082b95c Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_024.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_025.webp b/assets/animations/idle_activity_sleep_start/frame_025.webp new file mode 100644 index 0000000..b6c5f65 Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_025.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_026.webp b/assets/animations/idle_activity_sleep_start/frame_026.webp new file mode 100644 index 0000000..9314850 Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_026.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_027.webp b/assets/animations/idle_activity_sleep_start/frame_027.webp new file mode 100644 index 0000000..382d6c9 Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_027.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_028.webp b/assets/animations/idle_activity_sleep_start/frame_028.webp new file mode 100644 index 0000000..72314d3 Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_028.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_029.webp b/assets/animations/idle_activity_sleep_start/frame_029.webp new file mode 100644 index 0000000..c1b1443 Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_029.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_030.webp b/assets/animations/idle_activity_sleep_start/frame_030.webp new file mode 100644 index 0000000..692efcd Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_030.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_031.webp b/assets/animations/idle_activity_sleep_start/frame_031.webp new file mode 100644 index 0000000..924396a Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_031.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_032.webp b/assets/animations/idle_activity_sleep_start/frame_032.webp new file mode 100644 index 0000000..3c9a738 Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_032.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_033.webp b/assets/animations/idle_activity_sleep_start/frame_033.webp new file mode 100644 index 0000000..836e601 Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_033.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_034.webp b/assets/animations/idle_activity_sleep_start/frame_034.webp new file mode 100644 index 0000000..be62c7f Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_034.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_035.webp b/assets/animations/idle_activity_sleep_start/frame_035.webp new file mode 100644 index 0000000..9d46d11 Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_035.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_036.webp b/assets/animations/idle_activity_sleep_start/frame_036.webp new file mode 100644 index 0000000..6ec65a6 Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_036.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_037.webp b/assets/animations/idle_activity_sleep_start/frame_037.webp new file mode 100644 index 0000000..12aba02 Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_037.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_038.webp b/assets/animations/idle_activity_sleep_start/frame_038.webp new file mode 100644 index 0000000..d6ad3c8 Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_038.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_039.webp b/assets/animations/idle_activity_sleep_start/frame_039.webp new file mode 100644 index 0000000..58cd5d1 Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_039.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_040.webp b/assets/animations/idle_activity_sleep_start/frame_040.webp new file mode 100644 index 0000000..c22258c Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_040.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_041.webp b/assets/animations/idle_activity_sleep_start/frame_041.webp new file mode 100644 index 0000000..1175638 Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_041.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_042.webp b/assets/animations/idle_activity_sleep_start/frame_042.webp new file mode 100644 index 0000000..d9d6f0e Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_042.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_043.webp b/assets/animations/idle_activity_sleep_start/frame_043.webp new file mode 100644 index 0000000..87f97eb Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_043.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_044.webp b/assets/animations/idle_activity_sleep_start/frame_044.webp new file mode 100644 index 0000000..f8c077c Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_044.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_045.webp b/assets/animations/idle_activity_sleep_start/frame_045.webp new file mode 100644 index 0000000..29d3388 Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_045.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_046.webp b/assets/animations/idle_activity_sleep_start/frame_046.webp new file mode 100644 index 0000000..3471c4c Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_046.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_047.webp b/assets/animations/idle_activity_sleep_start/frame_047.webp new file mode 100644 index 0000000..1110a0a Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_047.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_048.webp b/assets/animations/idle_activity_sleep_start/frame_048.webp new file mode 100644 index 0000000..299ecac Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_048.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_049.webp b/assets/animations/idle_activity_sleep_start/frame_049.webp new file mode 100644 index 0000000..dbf9a34 Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_049.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_050.webp b/assets/animations/idle_activity_sleep_start/frame_050.webp new file mode 100644 index 0000000..76b9fba Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_050.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_051.webp b/assets/animations/idle_activity_sleep_start/frame_051.webp new file mode 100644 index 0000000..5ab9bc7 Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_051.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_052.webp b/assets/animations/idle_activity_sleep_start/frame_052.webp new file mode 100644 index 0000000..d343d56 Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_052.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_053.webp b/assets/animations/idle_activity_sleep_start/frame_053.webp new file mode 100644 index 0000000..45a4340 Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_053.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_054.webp b/assets/animations/idle_activity_sleep_start/frame_054.webp new file mode 100644 index 0000000..806099c Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_054.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_055.webp b/assets/animations/idle_activity_sleep_start/frame_055.webp new file mode 100644 index 0000000..d2fae41 Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_055.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_056.webp b/assets/animations/idle_activity_sleep_start/frame_056.webp new file mode 100644 index 0000000..cd3545f Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_056.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_057.webp b/assets/animations/idle_activity_sleep_start/frame_057.webp new file mode 100644 index 0000000..00e86b6 Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_057.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_058.webp b/assets/animations/idle_activity_sleep_start/frame_058.webp new file mode 100644 index 0000000..3227d11 Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_058.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_059.webp b/assets/animations/idle_activity_sleep_start/frame_059.webp new file mode 100644 index 0000000..b76ff02 Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_059.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_060.webp b/assets/animations/idle_activity_sleep_start/frame_060.webp new file mode 100644 index 0000000..9a2ee33 Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_060.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_061.webp b/assets/animations/idle_activity_sleep_start/frame_061.webp new file mode 100644 index 0000000..165e570 Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_061.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_062.webp b/assets/animations/idle_activity_sleep_start/frame_062.webp new file mode 100644 index 0000000..16c9987 Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_062.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_063.webp b/assets/animations/idle_activity_sleep_start/frame_063.webp new file mode 100644 index 0000000..34ae279 Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_063.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_064.webp b/assets/animations/idle_activity_sleep_start/frame_064.webp new file mode 100644 index 0000000..15c111a Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_064.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_065.webp b/assets/animations/idle_activity_sleep_start/frame_065.webp new file mode 100644 index 0000000..a23a4f5 Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_065.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_066.webp b/assets/animations/idle_activity_sleep_start/frame_066.webp new file mode 100644 index 0000000..7346ddd Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_066.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_067.webp b/assets/animations/idle_activity_sleep_start/frame_067.webp new file mode 100644 index 0000000..0c7b8a0 Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_067.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_068.webp b/assets/animations/idle_activity_sleep_start/frame_068.webp new file mode 100644 index 0000000..620e8e1 Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_068.webp differ diff --git a/assets/animations/idle_activity_sleep_start/frame_069.webp b/assets/animations/idle_activity_sleep_start/frame_069.webp new file mode 100644 index 0000000..30586a2 Binary files /dev/null and b/assets/animations/idle_activity_sleep_start/frame_069.webp differ diff --git a/assets/animations/idle_blink/frame_000.webp b/assets/animations/idle_blink/frame_000.webp new file mode 100644 index 0000000..30c8ee7 Binary files /dev/null and b/assets/animations/idle_blink/frame_000.webp differ diff --git a/assets/animations/idle_blink/frame_001.webp b/assets/animations/idle_blink/frame_001.webp new file mode 100644 index 0000000..0159424 Binary files /dev/null and b/assets/animations/idle_blink/frame_001.webp differ diff --git a/assets/animations/idle_blink/frame_002.webp b/assets/animations/idle_blink/frame_002.webp new file mode 100644 index 0000000..58a072b Binary files /dev/null and b/assets/animations/idle_blink/frame_002.webp differ diff --git a/assets/animations/idle_blink/frame_003.webp b/assets/animations/idle_blink/frame_003.webp new file mode 100644 index 0000000..ae9bdf6 Binary files /dev/null and b/assets/animations/idle_blink/frame_003.webp differ diff --git a/assets/animations/idle_blink/frame_004.webp b/assets/animations/idle_blink/frame_004.webp new file mode 100644 index 0000000..8d8c7f2 Binary files /dev/null and b/assets/animations/idle_blink/frame_004.webp differ diff --git a/assets/animations/idle_blink/frame_005.webp b/assets/animations/idle_blink/frame_005.webp new file mode 100644 index 0000000..7872235 Binary files /dev/null and b/assets/animations/idle_blink/frame_005.webp differ diff --git a/assets/animations/idle_blink/frame_006.webp b/assets/animations/idle_blink/frame_006.webp new file mode 100644 index 0000000..4bb9265 Binary files /dev/null and b/assets/animations/idle_blink/frame_006.webp differ diff --git a/assets/animations/idle_blink/frame_007.webp b/assets/animations/idle_blink/frame_007.webp new file mode 100644 index 0000000..1256a21 Binary files /dev/null and b/assets/animations/idle_blink/frame_007.webp differ diff --git a/assets/animations/idle_blink/frame_008.webp b/assets/animations/idle_blink/frame_008.webp new file mode 100644 index 0000000..1ce31b3 Binary files /dev/null and b/assets/animations/idle_blink/frame_008.webp differ diff --git a/assets/animations/idle_blink/frame_009.webp b/assets/animations/idle_blink/frame_009.webp new file mode 100644 index 0000000..db03007 Binary files /dev/null and b/assets/animations/idle_blink/frame_009.webp differ diff --git a/assets/animations/idle_blink/frame_010.webp b/assets/animations/idle_blink/frame_010.webp new file mode 100644 index 0000000..2a60c72 Binary files /dev/null and b/assets/animations/idle_blink/frame_010.webp differ diff --git a/assets/animations/idle_blink/frame_011.webp b/assets/animations/idle_blink/frame_011.webp new file mode 100644 index 0000000..398fecb Binary files /dev/null and b/assets/animations/idle_blink/frame_011.webp differ diff --git a/assets/animations/idle_blink/frame_012.webp b/assets/animations/idle_blink/frame_012.webp new file mode 100644 index 0000000..86cef46 Binary files /dev/null and b/assets/animations/idle_blink/frame_012.webp differ diff --git a/assets/animations/idle_blink/frame_013.webp b/assets/animations/idle_blink/frame_013.webp new file mode 100644 index 0000000..6393cf0 Binary files /dev/null and b/assets/animations/idle_blink/frame_013.webp differ diff --git a/assets/animations/idle_blink/frame_014.webp b/assets/animations/idle_blink/frame_014.webp new file mode 100644 index 0000000..50eeeab Binary files /dev/null and b/assets/animations/idle_blink/frame_014.webp differ diff --git a/assets/animations/idle_blink/frame_015.webp b/assets/animations/idle_blink/frame_015.webp new file mode 100644 index 0000000..6d7c8d1 Binary files /dev/null and b/assets/animations/idle_blink/frame_015.webp differ diff --git a/assets/animations/idle_blink/frame_016.webp b/assets/animations/idle_blink/frame_016.webp new file mode 100644 index 0000000..c8b02e7 Binary files /dev/null and b/assets/animations/idle_blink/frame_016.webp differ diff --git a/assets/animations/idle_blink/frame_017.webp b/assets/animations/idle_blink/frame_017.webp new file mode 100644 index 0000000..156bd0c Binary files /dev/null and b/assets/animations/idle_blink/frame_017.webp differ diff --git a/assets/animations/idle_blink/frame_018.webp b/assets/animations/idle_blink/frame_018.webp new file mode 100644 index 0000000..c07df27 Binary files /dev/null and b/assets/animations/idle_blink/frame_018.webp differ diff --git a/assets/animations/idle_blink/frame_019.webp b/assets/animations/idle_blink/frame_019.webp new file mode 100644 index 0000000..c995850 Binary files /dev/null and b/assets/animations/idle_blink/frame_019.webp differ diff --git a/assets/animations/idle_dig/frame_000.webp b/assets/animations/idle_dig/frame_000.webp new file mode 100644 index 0000000..952ac96 Binary files /dev/null and b/assets/animations/idle_dig/frame_000.webp differ diff --git a/assets/animations/idle_dig/frame_001.webp b/assets/animations/idle_dig/frame_001.webp new file mode 100644 index 0000000..74df83b Binary files /dev/null and b/assets/animations/idle_dig/frame_001.webp differ diff --git a/assets/animations/idle_dig/frame_002.webp b/assets/animations/idle_dig/frame_002.webp new file mode 100644 index 0000000..7e3673f Binary files /dev/null and b/assets/animations/idle_dig/frame_002.webp differ diff --git a/assets/animations/idle_dig/frame_003.webp b/assets/animations/idle_dig/frame_003.webp new file mode 100644 index 0000000..cafc29c Binary files /dev/null and b/assets/animations/idle_dig/frame_003.webp differ diff --git a/assets/animations/idle_dig/frame_004.webp b/assets/animations/idle_dig/frame_004.webp new file mode 100644 index 0000000..07a1ad6 Binary files /dev/null and b/assets/animations/idle_dig/frame_004.webp differ diff --git a/assets/animations/idle_dig/frame_005.webp b/assets/animations/idle_dig/frame_005.webp new file mode 100644 index 0000000..4ba9a53 Binary files /dev/null and b/assets/animations/idle_dig/frame_005.webp differ diff --git a/assets/animations/idle_dig/frame_006.webp b/assets/animations/idle_dig/frame_006.webp new file mode 100644 index 0000000..c1a0428 Binary files /dev/null and b/assets/animations/idle_dig/frame_006.webp differ diff --git a/assets/animations/idle_dig/frame_007.webp b/assets/animations/idle_dig/frame_007.webp new file mode 100644 index 0000000..0dc2b38 Binary files /dev/null and b/assets/animations/idle_dig/frame_007.webp differ diff --git a/assets/animations/idle_dig/frame_008.webp b/assets/animations/idle_dig/frame_008.webp new file mode 100644 index 0000000..80704e1 Binary files /dev/null and b/assets/animations/idle_dig/frame_008.webp differ diff --git a/assets/animations/idle_dig/frame_009.webp b/assets/animations/idle_dig/frame_009.webp new file mode 100644 index 0000000..6cf3e01 Binary files /dev/null and b/assets/animations/idle_dig/frame_009.webp differ diff --git a/assets/animations/idle_dig/frame_010.webp b/assets/animations/idle_dig/frame_010.webp new file mode 100644 index 0000000..0b7f93f Binary files /dev/null and b/assets/animations/idle_dig/frame_010.webp differ diff --git a/assets/animations/idle_dig/frame_011.webp b/assets/animations/idle_dig/frame_011.webp new file mode 100644 index 0000000..a5f188e Binary files /dev/null and b/assets/animations/idle_dig/frame_011.webp differ diff --git a/assets/animations/idle_dig/frame_012.webp b/assets/animations/idle_dig/frame_012.webp new file mode 100644 index 0000000..8dfa777 Binary files /dev/null and b/assets/animations/idle_dig/frame_012.webp differ diff --git a/assets/animations/idle_dig/frame_013.webp b/assets/animations/idle_dig/frame_013.webp new file mode 100644 index 0000000..e6a9e96 Binary files /dev/null and b/assets/animations/idle_dig/frame_013.webp differ diff --git a/assets/animations/idle_dig/frame_014.webp b/assets/animations/idle_dig/frame_014.webp new file mode 100644 index 0000000..a736bf5 Binary files /dev/null and b/assets/animations/idle_dig/frame_014.webp differ diff --git a/assets/animations/idle_dig/frame_015.webp b/assets/animations/idle_dig/frame_015.webp new file mode 100644 index 0000000..66271c5 Binary files /dev/null and b/assets/animations/idle_dig/frame_015.webp differ diff --git a/assets/animations/idle_dig/frame_016.webp b/assets/animations/idle_dig/frame_016.webp new file mode 100644 index 0000000..d3b09c4 Binary files /dev/null and b/assets/animations/idle_dig/frame_016.webp differ diff --git a/assets/animations/idle_dig/frame_017.webp b/assets/animations/idle_dig/frame_017.webp new file mode 100644 index 0000000..0c4ac5e Binary files /dev/null and b/assets/animations/idle_dig/frame_017.webp differ diff --git a/assets/animations/idle_dig/frame_018.webp b/assets/animations/idle_dig/frame_018.webp new file mode 100644 index 0000000..acc9daa Binary files /dev/null and b/assets/animations/idle_dig/frame_018.webp differ diff --git a/assets/animations/idle_dig/frame_019.webp b/assets/animations/idle_dig/frame_019.webp new file mode 100644 index 0000000..b85a781 Binary files /dev/null and b/assets/animations/idle_dig/frame_019.webp differ diff --git a/assets/animations/idle_dig/frame_020.webp b/assets/animations/idle_dig/frame_020.webp new file mode 100644 index 0000000..78410e7 Binary files /dev/null and b/assets/animations/idle_dig/frame_020.webp differ diff --git a/assets/animations/idle_dig/frame_021.webp b/assets/animations/idle_dig/frame_021.webp new file mode 100644 index 0000000..037cdd0 Binary files /dev/null and b/assets/animations/idle_dig/frame_021.webp differ diff --git a/assets/animations/idle_dig/frame_022.webp b/assets/animations/idle_dig/frame_022.webp new file mode 100644 index 0000000..cbe0b78 Binary files /dev/null and b/assets/animations/idle_dig/frame_022.webp differ diff --git a/assets/animations/idle_dig/frame_023.webp b/assets/animations/idle_dig/frame_023.webp new file mode 100644 index 0000000..6f340a6 Binary files /dev/null and b/assets/animations/idle_dig/frame_023.webp differ diff --git a/assets/animations/idle_dig/frame_024.webp b/assets/animations/idle_dig/frame_024.webp new file mode 100644 index 0000000..399c985 Binary files /dev/null and b/assets/animations/idle_dig/frame_024.webp differ diff --git a/assets/animations/idle_dig/frame_025.webp b/assets/animations/idle_dig/frame_025.webp new file mode 100644 index 0000000..84d5116 Binary files /dev/null and b/assets/animations/idle_dig/frame_025.webp differ diff --git a/assets/animations/idle_dig/frame_026.webp b/assets/animations/idle_dig/frame_026.webp new file mode 100644 index 0000000..a470e02 Binary files /dev/null and b/assets/animations/idle_dig/frame_026.webp differ diff --git a/assets/animations/idle_dig/frame_027.webp b/assets/animations/idle_dig/frame_027.webp new file mode 100644 index 0000000..b65e860 Binary files /dev/null and b/assets/animations/idle_dig/frame_027.webp differ diff --git a/assets/animations/idle_dig/frame_028.webp b/assets/animations/idle_dig/frame_028.webp new file mode 100644 index 0000000..5f69cd6 Binary files /dev/null and b/assets/animations/idle_dig/frame_028.webp differ diff --git a/assets/animations/idle_dig/frame_029.webp b/assets/animations/idle_dig/frame_029.webp new file mode 100644 index 0000000..24e5f43 Binary files /dev/null and b/assets/animations/idle_dig/frame_029.webp differ diff --git a/assets/animations/idle_dig/frame_030.webp b/assets/animations/idle_dig/frame_030.webp new file mode 100644 index 0000000..931345b Binary files /dev/null and b/assets/animations/idle_dig/frame_030.webp differ diff --git a/assets/animations/idle_dig/frame_031.webp b/assets/animations/idle_dig/frame_031.webp new file mode 100644 index 0000000..910c44d Binary files /dev/null and b/assets/animations/idle_dig/frame_031.webp differ diff --git a/assets/animations/idle_dig/frame_032.webp b/assets/animations/idle_dig/frame_032.webp new file mode 100644 index 0000000..9f51da6 Binary files /dev/null and b/assets/animations/idle_dig/frame_032.webp differ diff --git a/assets/animations/idle_dig/frame_033.webp b/assets/animations/idle_dig/frame_033.webp new file mode 100644 index 0000000..96186ec Binary files /dev/null and b/assets/animations/idle_dig/frame_033.webp differ diff --git a/assets/animations/idle_dig/frame_034.webp b/assets/animations/idle_dig/frame_034.webp new file mode 100644 index 0000000..4a88d79 Binary files /dev/null and b/assets/animations/idle_dig/frame_034.webp differ diff --git a/assets/animations/idle_dig/frame_035.webp b/assets/animations/idle_dig/frame_035.webp new file mode 100644 index 0000000..0309235 Binary files /dev/null and b/assets/animations/idle_dig/frame_035.webp differ diff --git a/assets/animations/idle_dig/frame_036.webp b/assets/animations/idle_dig/frame_036.webp new file mode 100644 index 0000000..332a975 Binary files /dev/null and b/assets/animations/idle_dig/frame_036.webp differ diff --git a/assets/animations/idle_dig/frame_037.webp b/assets/animations/idle_dig/frame_037.webp new file mode 100644 index 0000000..7cd0eab Binary files /dev/null and b/assets/animations/idle_dig/frame_037.webp differ diff --git a/assets/animations/idle_dig/frame_038.webp b/assets/animations/idle_dig/frame_038.webp new file mode 100644 index 0000000..2126642 Binary files /dev/null and b/assets/animations/idle_dig/frame_038.webp differ diff --git a/assets/animations/idle_dig/frame_039.webp b/assets/animations/idle_dig/frame_039.webp new file mode 100644 index 0000000..a6c55f6 Binary files /dev/null and b/assets/animations/idle_dig/frame_039.webp differ diff --git a/assets/animations/idle_dig/frame_040.webp b/assets/animations/idle_dig/frame_040.webp new file mode 100644 index 0000000..0a08d45 Binary files /dev/null and b/assets/animations/idle_dig/frame_040.webp differ diff --git a/assets/animations/idle_dig/frame_041.webp b/assets/animations/idle_dig/frame_041.webp new file mode 100644 index 0000000..96ac5fb Binary files /dev/null and b/assets/animations/idle_dig/frame_041.webp differ diff --git a/assets/animations/idle_dig/frame_042.webp b/assets/animations/idle_dig/frame_042.webp new file mode 100644 index 0000000..9c29665 Binary files /dev/null and b/assets/animations/idle_dig/frame_042.webp differ diff --git a/assets/animations/idle_dig/frame_043.webp b/assets/animations/idle_dig/frame_043.webp new file mode 100644 index 0000000..f6f7754 Binary files /dev/null and b/assets/animations/idle_dig/frame_043.webp differ diff --git a/assets/animations/idle_dig/frame_044.webp b/assets/animations/idle_dig/frame_044.webp new file mode 100644 index 0000000..5beb6db Binary files /dev/null and b/assets/animations/idle_dig/frame_044.webp differ diff --git a/assets/animations/idle_dig/frame_045.webp b/assets/animations/idle_dig/frame_045.webp new file mode 100644 index 0000000..8ee30fa Binary files /dev/null and b/assets/animations/idle_dig/frame_045.webp differ diff --git a/assets/animations/idle_dig/frame_046.webp b/assets/animations/idle_dig/frame_046.webp new file mode 100644 index 0000000..ded6744 Binary files /dev/null and b/assets/animations/idle_dig/frame_046.webp differ diff --git a/assets/animations/idle_dig/frame_047.webp b/assets/animations/idle_dig/frame_047.webp new file mode 100644 index 0000000..c384190 Binary files /dev/null and b/assets/animations/idle_dig/frame_047.webp differ diff --git a/assets/animations/idle_dig/frame_048.webp b/assets/animations/idle_dig/frame_048.webp new file mode 100644 index 0000000..963bbe0 Binary files /dev/null and b/assets/animations/idle_dig/frame_048.webp differ diff --git a/assets/animations/idle_dig/frame_049.webp b/assets/animations/idle_dig/frame_049.webp new file mode 100644 index 0000000..4d903e9 Binary files /dev/null and b/assets/animations/idle_dig/frame_049.webp differ diff --git a/assets/animations/idle_dig/frame_050.webp b/assets/animations/idle_dig/frame_050.webp new file mode 100644 index 0000000..e7af42a Binary files /dev/null and b/assets/animations/idle_dig/frame_050.webp differ diff --git a/assets/animations/idle_dig/frame_051.webp b/assets/animations/idle_dig/frame_051.webp new file mode 100644 index 0000000..5baacd8 Binary files /dev/null and b/assets/animations/idle_dig/frame_051.webp differ diff --git a/assets/animations/idle_dig/frame_052.webp b/assets/animations/idle_dig/frame_052.webp new file mode 100644 index 0000000..294d49f Binary files /dev/null and b/assets/animations/idle_dig/frame_052.webp differ diff --git a/assets/animations/idle_dig/frame_053.webp b/assets/animations/idle_dig/frame_053.webp new file mode 100644 index 0000000..268e7cd Binary files /dev/null and b/assets/animations/idle_dig/frame_053.webp differ diff --git a/assets/animations/idle_dig/frame_054.webp b/assets/animations/idle_dig/frame_054.webp new file mode 100644 index 0000000..aed1565 Binary files /dev/null and b/assets/animations/idle_dig/frame_054.webp differ diff --git a/assets/animations/idle_dig/frame_055.webp b/assets/animations/idle_dig/frame_055.webp new file mode 100644 index 0000000..57db3bd Binary files /dev/null and b/assets/animations/idle_dig/frame_055.webp differ diff --git a/assets/animations/idle_dig/frame_056.webp b/assets/animations/idle_dig/frame_056.webp new file mode 100644 index 0000000..e1feb43 Binary files /dev/null and b/assets/animations/idle_dig/frame_056.webp differ diff --git a/assets/animations/idle_dig/frame_057.webp b/assets/animations/idle_dig/frame_057.webp new file mode 100644 index 0000000..0575f15 Binary files /dev/null and b/assets/animations/idle_dig/frame_057.webp differ diff --git a/assets/animations/idle_dig/frame_058.webp b/assets/animations/idle_dig/frame_058.webp new file mode 100644 index 0000000..ffec3d3 Binary files /dev/null and b/assets/animations/idle_dig/frame_058.webp differ diff --git a/assets/animations/idle_dig/frame_059.webp b/assets/animations/idle_dig/frame_059.webp new file mode 100644 index 0000000..bac7989 Binary files /dev/null and b/assets/animations/idle_dig/frame_059.webp differ diff --git a/assets/animations/idle_dig/frame_060.webp b/assets/animations/idle_dig/frame_060.webp new file mode 100644 index 0000000..4c0a241 Binary files /dev/null and b/assets/animations/idle_dig/frame_060.webp differ diff --git a/assets/animations/idle_dig/frame_061.webp b/assets/animations/idle_dig/frame_061.webp new file mode 100644 index 0000000..f318139 Binary files /dev/null and b/assets/animations/idle_dig/frame_061.webp differ diff --git a/assets/animations/idle_dig/frame_062.webp b/assets/animations/idle_dig/frame_062.webp new file mode 100644 index 0000000..0bf3cd6 Binary files /dev/null and b/assets/animations/idle_dig/frame_062.webp differ diff --git a/assets/animations/idle_dig/frame_063.webp b/assets/animations/idle_dig/frame_063.webp new file mode 100644 index 0000000..bc0b0c1 Binary files /dev/null and b/assets/animations/idle_dig/frame_063.webp differ diff --git a/assets/animations/idle_dig/frame_064.webp b/assets/animations/idle_dig/frame_064.webp new file mode 100644 index 0000000..ebbc4be Binary files /dev/null and b/assets/animations/idle_dig/frame_064.webp differ diff --git a/assets/animations/idle_dig/frame_065.webp b/assets/animations/idle_dig/frame_065.webp new file mode 100644 index 0000000..159c5dc Binary files /dev/null and b/assets/animations/idle_dig/frame_065.webp differ diff --git a/assets/animations/idle_dig/frame_066.webp b/assets/animations/idle_dig/frame_066.webp new file mode 100644 index 0000000..75c41b4 Binary files /dev/null and b/assets/animations/idle_dig/frame_066.webp differ diff --git a/assets/animations/idle_dig/frame_067.webp b/assets/animations/idle_dig/frame_067.webp new file mode 100644 index 0000000..d6c18d3 Binary files /dev/null and b/assets/animations/idle_dig/frame_067.webp differ diff --git a/assets/animations/idle_dig/frame_068.webp b/assets/animations/idle_dig/frame_068.webp new file mode 100644 index 0000000..3888168 Binary files /dev/null and b/assets/animations/idle_dig/frame_068.webp differ diff --git a/assets/animations/idle_dig/frame_069.webp b/assets/animations/idle_dig/frame_069.webp new file mode 100644 index 0000000..3156d3f Binary files /dev/null and b/assets/animations/idle_dig/frame_069.webp differ diff --git a/assets/animations/idle_dig/frame_070.webp b/assets/animations/idle_dig/frame_070.webp new file mode 100644 index 0000000..1d8c02c Binary files /dev/null and b/assets/animations/idle_dig/frame_070.webp differ diff --git a/assets/animations/idle_dig/frame_071.webp b/assets/animations/idle_dig/frame_071.webp new file mode 100644 index 0000000..71470bc Binary files /dev/null and b/assets/animations/idle_dig/frame_071.webp differ diff --git a/assets/animations/idle_dig/frame_072.webp b/assets/animations/idle_dig/frame_072.webp new file mode 100644 index 0000000..d00cfed Binary files /dev/null and b/assets/animations/idle_dig/frame_072.webp differ diff --git a/assets/animations/idle_dig/frame_073.webp b/assets/animations/idle_dig/frame_073.webp new file mode 100644 index 0000000..427d1ce Binary files /dev/null and b/assets/animations/idle_dig/frame_073.webp differ diff --git a/assets/animations/idle_dig/frame_074.webp b/assets/animations/idle_dig/frame_074.webp new file mode 100644 index 0000000..c5d1d69 Binary files /dev/null and b/assets/animations/idle_dig/frame_074.webp differ diff --git a/assets/animations/idle_dig/frame_075.webp b/assets/animations/idle_dig/frame_075.webp new file mode 100644 index 0000000..623b095 Binary files /dev/null and b/assets/animations/idle_dig/frame_075.webp differ diff --git a/assets/animations/idle_dig/frame_076.webp b/assets/animations/idle_dig/frame_076.webp new file mode 100644 index 0000000..50dca4d Binary files /dev/null and b/assets/animations/idle_dig/frame_076.webp differ diff --git a/assets/animations/idle_dig/frame_077.webp b/assets/animations/idle_dig/frame_077.webp new file mode 100644 index 0000000..a2237aa Binary files /dev/null and b/assets/animations/idle_dig/frame_077.webp differ diff --git a/assets/animations/idle_dig/frame_078.webp b/assets/animations/idle_dig/frame_078.webp new file mode 100644 index 0000000..2c940e9 Binary files /dev/null and b/assets/animations/idle_dig/frame_078.webp differ diff --git a/assets/animations/idle_dig/frame_079.webp b/assets/animations/idle_dig/frame_079.webp new file mode 100644 index 0000000..98742ca Binary files /dev/null and b/assets/animations/idle_dig/frame_079.webp differ diff --git a/assets/animations/idle_dig/frame_080.webp b/assets/animations/idle_dig/frame_080.webp new file mode 100644 index 0000000..9a440da Binary files /dev/null and b/assets/animations/idle_dig/frame_080.webp differ diff --git a/assets/animations/idle_dig/frame_081.webp b/assets/animations/idle_dig/frame_081.webp new file mode 100644 index 0000000..13d153a Binary files /dev/null and b/assets/animations/idle_dig/frame_081.webp differ diff --git a/assets/animations/idle_dig/frame_082.webp b/assets/animations/idle_dig/frame_082.webp new file mode 100644 index 0000000..766bad9 Binary files /dev/null and b/assets/animations/idle_dig/frame_082.webp differ diff --git a/assets/animations/idle_dig/frame_083.webp b/assets/animations/idle_dig/frame_083.webp new file mode 100644 index 0000000..07296f4 Binary files /dev/null and b/assets/animations/idle_dig/frame_083.webp differ diff --git a/assets/animations/idle_dig/frame_084.webp b/assets/animations/idle_dig/frame_084.webp new file mode 100644 index 0000000..713aa07 Binary files /dev/null and b/assets/animations/idle_dig/frame_084.webp differ diff --git a/assets/animations/idle_dig/frame_085.webp b/assets/animations/idle_dig/frame_085.webp new file mode 100644 index 0000000..8763716 Binary files /dev/null and b/assets/animations/idle_dig/frame_085.webp differ diff --git a/assets/animations/idle_dig/frame_086.webp b/assets/animations/idle_dig/frame_086.webp new file mode 100644 index 0000000..680ff62 Binary files /dev/null and b/assets/animations/idle_dig/frame_086.webp differ diff --git a/assets/animations/idle_dig/frame_087.webp b/assets/animations/idle_dig/frame_087.webp new file mode 100644 index 0000000..eb232b1 Binary files /dev/null and b/assets/animations/idle_dig/frame_087.webp differ diff --git a/assets/animations/idle_dig/frame_088.webp b/assets/animations/idle_dig/frame_088.webp new file mode 100644 index 0000000..6f684f0 Binary files /dev/null and b/assets/animations/idle_dig/frame_088.webp differ diff --git a/assets/animations/idle_dig/frame_089.webp b/assets/animations/idle_dig/frame_089.webp new file mode 100644 index 0000000..bb19eab Binary files /dev/null and b/assets/animations/idle_dig/frame_089.webp differ diff --git a/assets/animations/idle_dig/frame_090.webp b/assets/animations/idle_dig/frame_090.webp new file mode 100644 index 0000000..9926eb8 Binary files /dev/null and b/assets/animations/idle_dig/frame_090.webp differ diff --git a/assets/animations/idle_dig/frame_091.webp b/assets/animations/idle_dig/frame_091.webp new file mode 100644 index 0000000..fef296b Binary files /dev/null and b/assets/animations/idle_dig/frame_091.webp differ diff --git a/assets/animations/idle_dig/frame_092.webp b/assets/animations/idle_dig/frame_092.webp new file mode 100644 index 0000000..5b3f614 Binary files /dev/null and b/assets/animations/idle_dig/frame_092.webp differ diff --git a/assets/animations/idle_dig/frame_093.webp b/assets/animations/idle_dig/frame_093.webp new file mode 100644 index 0000000..51f2756 Binary files /dev/null and b/assets/animations/idle_dig/frame_093.webp differ diff --git a/assets/animations/idle_dig/frame_094.webp b/assets/animations/idle_dig/frame_094.webp new file mode 100644 index 0000000..10aef1e Binary files /dev/null and b/assets/animations/idle_dig/frame_094.webp differ diff --git a/assets/animations/idle_dig/frame_095.webp b/assets/animations/idle_dig/frame_095.webp new file mode 100644 index 0000000..d0269fe Binary files /dev/null and b/assets/animations/idle_dig/frame_095.webp differ diff --git a/assets/animations/idle_dig/frame_096.webp b/assets/animations/idle_dig/frame_096.webp new file mode 100644 index 0000000..a404f67 Binary files /dev/null and b/assets/animations/idle_dig/frame_096.webp differ diff --git a/assets/animations/idle_dig/frame_097.webp b/assets/animations/idle_dig/frame_097.webp new file mode 100644 index 0000000..b8c0843 Binary files /dev/null and b/assets/animations/idle_dig/frame_097.webp differ diff --git a/assets/animations/idle_dig/frame_098.webp b/assets/animations/idle_dig/frame_098.webp new file mode 100644 index 0000000..4696504 Binary files /dev/null and b/assets/animations/idle_dig/frame_098.webp differ diff --git a/assets/animations/idle_dig/frame_099.webp b/assets/animations/idle_dig/frame_099.webp new file mode 100644 index 0000000..daa6b2e Binary files /dev/null and b/assets/animations/idle_dig/frame_099.webp differ diff --git a/assets/animations/idle_dig/frame_100.webp b/assets/animations/idle_dig/frame_100.webp new file mode 100644 index 0000000..6410c31 Binary files /dev/null and b/assets/animations/idle_dig/frame_100.webp differ diff --git a/assets/animations/idle_dig/frame_101.webp b/assets/animations/idle_dig/frame_101.webp new file mode 100644 index 0000000..6a89e93 Binary files /dev/null and b/assets/animations/idle_dig/frame_101.webp differ diff --git a/assets/animations/idle_dig/frame_102.webp b/assets/animations/idle_dig/frame_102.webp new file mode 100644 index 0000000..133526c Binary files /dev/null and b/assets/animations/idle_dig/frame_102.webp differ diff --git a/assets/animations/idle_dig/frame_103.webp b/assets/animations/idle_dig/frame_103.webp new file mode 100644 index 0000000..017a04c Binary files /dev/null and b/assets/animations/idle_dig/frame_103.webp differ diff --git a/assets/animations/idle_dig/frame_104.webp b/assets/animations/idle_dig/frame_104.webp new file mode 100644 index 0000000..15b5075 Binary files /dev/null and b/assets/animations/idle_dig/frame_104.webp differ diff --git a/assets/animations/idle_dig/frame_105.webp b/assets/animations/idle_dig/frame_105.webp new file mode 100644 index 0000000..2b1863b Binary files /dev/null and b/assets/animations/idle_dig/frame_105.webp differ diff --git a/assets/animations/idle_dig/frame_106.webp b/assets/animations/idle_dig/frame_106.webp new file mode 100644 index 0000000..9dc8403 Binary files /dev/null and b/assets/animations/idle_dig/frame_106.webp differ diff --git a/assets/animations/idle_dig/frame_107.webp b/assets/animations/idle_dig/frame_107.webp new file mode 100644 index 0000000..86ca088 Binary files /dev/null and b/assets/animations/idle_dig/frame_107.webp differ diff --git a/assets/animations/idle_dig/frame_108.webp b/assets/animations/idle_dig/frame_108.webp new file mode 100644 index 0000000..2413f3b Binary files /dev/null and b/assets/animations/idle_dig/frame_108.webp differ diff --git a/assets/animations/idle_dig/frame_109.webp b/assets/animations/idle_dig/frame_109.webp new file mode 100644 index 0000000..e72b0c5 Binary files /dev/null and b/assets/animations/idle_dig/frame_109.webp differ diff --git a/assets/animations/idle_dig/frame_110.webp b/assets/animations/idle_dig/frame_110.webp new file mode 100644 index 0000000..d0545d8 Binary files /dev/null and b/assets/animations/idle_dig/frame_110.webp differ diff --git a/assets/animations/idle_dig/frame_111.webp b/assets/animations/idle_dig/frame_111.webp new file mode 100644 index 0000000..9235a75 Binary files /dev/null and b/assets/animations/idle_dig/frame_111.webp differ diff --git a/assets/animations/idle_dig/frame_112.webp b/assets/animations/idle_dig/frame_112.webp new file mode 100644 index 0000000..7fe8a54 Binary files /dev/null and b/assets/animations/idle_dig/frame_112.webp differ diff --git a/assets/animations/idle_dig/frame_113.webp b/assets/animations/idle_dig/frame_113.webp new file mode 100644 index 0000000..26af47e Binary files /dev/null and b/assets/animations/idle_dig/frame_113.webp differ diff --git a/assets/animations/idle_dig/frame_114.webp b/assets/animations/idle_dig/frame_114.webp new file mode 100644 index 0000000..34eee4a Binary files /dev/null and b/assets/animations/idle_dig/frame_114.webp differ diff --git a/assets/animations/idle_dig/frame_115.webp b/assets/animations/idle_dig/frame_115.webp new file mode 100644 index 0000000..32ad97d Binary files /dev/null and b/assets/animations/idle_dig/frame_115.webp differ diff --git a/assets/animations/idle_dig/frame_116.webp b/assets/animations/idle_dig/frame_116.webp new file mode 100644 index 0000000..6724b8c Binary files /dev/null and b/assets/animations/idle_dig/frame_116.webp differ diff --git a/assets/animations/idle_dig/frame_117.webp b/assets/animations/idle_dig/frame_117.webp new file mode 100644 index 0000000..0ed1d11 Binary files /dev/null and b/assets/animations/idle_dig/frame_117.webp differ diff --git a/assets/animations/idle_dig/frame_118.webp b/assets/animations/idle_dig/frame_118.webp new file mode 100644 index 0000000..540e86b Binary files /dev/null and b/assets/animations/idle_dig/frame_118.webp differ diff --git a/assets/animations/idle_dig/frame_119.webp b/assets/animations/idle_dig/frame_119.webp new file mode 100644 index 0000000..6d21fce Binary files /dev/null and b/assets/animations/idle_dig/frame_119.webp differ diff --git a/assets/animations/idle_dig/frame_120.webp b/assets/animations/idle_dig/frame_120.webp new file mode 100644 index 0000000..bcae9a5 Binary files /dev/null and b/assets/animations/idle_dig/frame_120.webp differ diff --git a/assets/animations/idle_dig/frame_121.webp b/assets/animations/idle_dig/frame_121.webp new file mode 100644 index 0000000..0914bd4 Binary files /dev/null and b/assets/animations/idle_dig/frame_121.webp differ diff --git a/assets/animations/idle_dig/frame_122.webp b/assets/animations/idle_dig/frame_122.webp new file mode 100644 index 0000000..8b311bf Binary files /dev/null and b/assets/animations/idle_dig/frame_122.webp differ diff --git a/assets/animations/idle_dig/frame_123.webp b/assets/animations/idle_dig/frame_123.webp new file mode 100644 index 0000000..2f422ce Binary files /dev/null and b/assets/animations/idle_dig/frame_123.webp differ diff --git a/assets/animations/idle_dig/frame_124.webp b/assets/animations/idle_dig/frame_124.webp new file mode 100644 index 0000000..1b8768e Binary files /dev/null and b/assets/animations/idle_dig/frame_124.webp differ diff --git a/assets/animations/idle_dig/frame_125.webp b/assets/animations/idle_dig/frame_125.webp new file mode 100644 index 0000000..1d2636f Binary files /dev/null and b/assets/animations/idle_dig/frame_125.webp differ diff --git a/assets/animations/idle_dig/frame_126.webp b/assets/animations/idle_dig/frame_126.webp new file mode 100644 index 0000000..05f22bc Binary files /dev/null and b/assets/animations/idle_dig/frame_126.webp differ diff --git a/assets/animations/idle_dig/frame_127.webp b/assets/animations/idle_dig/frame_127.webp new file mode 100644 index 0000000..f25b9d4 Binary files /dev/null and b/assets/animations/idle_dig/frame_127.webp differ diff --git a/assets/animations/idle_dig/frame_128.webp b/assets/animations/idle_dig/frame_128.webp new file mode 100644 index 0000000..f1f9a62 Binary files /dev/null and b/assets/animations/idle_dig/frame_128.webp differ diff --git a/assets/animations/idle_dig/frame_129.webp b/assets/animations/idle_dig/frame_129.webp new file mode 100644 index 0000000..a0ebd0c Binary files /dev/null and b/assets/animations/idle_dig/frame_129.webp differ diff --git a/assets/animations/idle_dig/frame_130.webp b/assets/animations/idle_dig/frame_130.webp new file mode 100644 index 0000000..e6efd81 Binary files /dev/null and b/assets/animations/idle_dig/frame_130.webp differ diff --git a/assets/animations/idle_dig/frame_131.webp b/assets/animations/idle_dig/frame_131.webp new file mode 100644 index 0000000..92090b7 Binary files /dev/null and b/assets/animations/idle_dig/frame_131.webp differ diff --git a/assets/animations/idle_dig/frame_132.webp b/assets/animations/idle_dig/frame_132.webp new file mode 100644 index 0000000..9e6e8f5 Binary files /dev/null and b/assets/animations/idle_dig/frame_132.webp differ diff --git a/assets/animations/idle_dig/frame_133.webp b/assets/animations/idle_dig/frame_133.webp new file mode 100644 index 0000000..4c8a5ae Binary files /dev/null and b/assets/animations/idle_dig/frame_133.webp differ diff --git a/assets/animations/idle_dig/frame_134.webp b/assets/animations/idle_dig/frame_134.webp new file mode 100644 index 0000000..487c7bb Binary files /dev/null and b/assets/animations/idle_dig/frame_134.webp differ diff --git a/assets/animations/idle_dig/frame_135.webp b/assets/animations/idle_dig/frame_135.webp new file mode 100644 index 0000000..1be9d96 Binary files /dev/null and b/assets/animations/idle_dig/frame_135.webp differ diff --git a/assets/animations/idle_dig/frame_136.webp b/assets/animations/idle_dig/frame_136.webp new file mode 100644 index 0000000..735ed49 Binary files /dev/null and b/assets/animations/idle_dig/frame_136.webp differ diff --git a/assets/animations/idle_dig/frame_137.webp b/assets/animations/idle_dig/frame_137.webp new file mode 100644 index 0000000..360bac8 Binary files /dev/null and b/assets/animations/idle_dig/frame_137.webp differ diff --git a/assets/animations/idle_dig/frame_138.webp b/assets/animations/idle_dig/frame_138.webp new file mode 100644 index 0000000..8f5efb5 Binary files /dev/null and b/assets/animations/idle_dig/frame_138.webp differ diff --git a/assets/animations/idle_dig/frame_139.webp b/assets/animations/idle_dig/frame_139.webp new file mode 100644 index 0000000..fb0ecac Binary files /dev/null and b/assets/animations/idle_dig/frame_139.webp differ diff --git a/assets/animations/idle_look_around/frame_000.webp b/assets/animations/idle_look_around/frame_000.webp new file mode 100644 index 0000000..8702738 Binary files /dev/null and b/assets/animations/idle_look_around/frame_000.webp differ diff --git a/assets/animations/idle_look_around/frame_001.webp b/assets/animations/idle_look_around/frame_001.webp new file mode 100644 index 0000000..8dc5bcc Binary files /dev/null and b/assets/animations/idle_look_around/frame_001.webp differ diff --git a/assets/animations/idle_look_around/frame_002.webp b/assets/animations/idle_look_around/frame_002.webp new file mode 100644 index 0000000..0db7e40 Binary files /dev/null and b/assets/animations/idle_look_around/frame_002.webp differ diff --git a/assets/animations/idle_look_around/frame_003.webp b/assets/animations/idle_look_around/frame_003.webp new file mode 100644 index 0000000..2591c89 Binary files /dev/null and b/assets/animations/idle_look_around/frame_003.webp differ diff --git a/assets/animations/idle_look_around/frame_004.webp b/assets/animations/idle_look_around/frame_004.webp new file mode 100644 index 0000000..78844fa Binary files /dev/null and b/assets/animations/idle_look_around/frame_004.webp differ diff --git a/assets/animations/idle_look_around/frame_005.webp b/assets/animations/idle_look_around/frame_005.webp new file mode 100644 index 0000000..8001578 Binary files /dev/null and b/assets/animations/idle_look_around/frame_005.webp differ diff --git a/assets/animations/idle_look_around/frame_006.webp b/assets/animations/idle_look_around/frame_006.webp new file mode 100644 index 0000000..5398d2b Binary files /dev/null and b/assets/animations/idle_look_around/frame_006.webp differ diff --git a/assets/animations/idle_look_around/frame_007.webp b/assets/animations/idle_look_around/frame_007.webp new file mode 100644 index 0000000..a708207 Binary files /dev/null and b/assets/animations/idle_look_around/frame_007.webp differ diff --git a/assets/animations/idle_look_around/frame_008.webp b/assets/animations/idle_look_around/frame_008.webp new file mode 100644 index 0000000..6875844 Binary files /dev/null and b/assets/animations/idle_look_around/frame_008.webp differ diff --git a/assets/animations/idle_look_around/frame_009.webp b/assets/animations/idle_look_around/frame_009.webp new file mode 100644 index 0000000..523a19c Binary files /dev/null and b/assets/animations/idle_look_around/frame_009.webp differ diff --git a/assets/animations/idle_look_around/frame_010.webp b/assets/animations/idle_look_around/frame_010.webp new file mode 100644 index 0000000..211731e Binary files /dev/null and b/assets/animations/idle_look_around/frame_010.webp differ diff --git a/assets/animations/idle_look_around/frame_011.webp b/assets/animations/idle_look_around/frame_011.webp new file mode 100644 index 0000000..7a65192 Binary files /dev/null and b/assets/animations/idle_look_around/frame_011.webp differ diff --git a/assets/animations/idle_look_around/frame_012.webp b/assets/animations/idle_look_around/frame_012.webp new file mode 100644 index 0000000..59ee6ba Binary files /dev/null and b/assets/animations/idle_look_around/frame_012.webp differ diff --git a/assets/animations/idle_look_around/frame_013.webp b/assets/animations/idle_look_around/frame_013.webp new file mode 100644 index 0000000..615a769 Binary files /dev/null and b/assets/animations/idle_look_around/frame_013.webp differ diff --git a/assets/animations/idle_look_around/frame_014.webp b/assets/animations/idle_look_around/frame_014.webp new file mode 100644 index 0000000..76f8302 Binary files /dev/null and b/assets/animations/idle_look_around/frame_014.webp differ diff --git a/assets/animations/idle_look_around/frame_015.webp b/assets/animations/idle_look_around/frame_015.webp new file mode 100644 index 0000000..2dfe2db Binary files /dev/null and b/assets/animations/idle_look_around/frame_015.webp differ diff --git a/assets/animations/idle_look_around/frame_016.webp b/assets/animations/idle_look_around/frame_016.webp new file mode 100644 index 0000000..5456ef1 Binary files /dev/null and b/assets/animations/idle_look_around/frame_016.webp differ diff --git a/assets/animations/idle_look_around/frame_017.webp b/assets/animations/idle_look_around/frame_017.webp new file mode 100644 index 0000000..b6f23b5 Binary files /dev/null and b/assets/animations/idle_look_around/frame_017.webp differ diff --git a/assets/animations/idle_look_around/frame_018.webp b/assets/animations/idle_look_around/frame_018.webp new file mode 100644 index 0000000..4c88096 Binary files /dev/null and b/assets/animations/idle_look_around/frame_018.webp differ diff --git a/assets/animations/idle_look_around/frame_019.webp b/assets/animations/idle_look_around/frame_019.webp new file mode 100644 index 0000000..f6cf846 Binary files /dev/null and b/assets/animations/idle_look_around/frame_019.webp differ diff --git a/assets/animations/idle_look_around/frame_020.webp b/assets/animations/idle_look_around/frame_020.webp new file mode 100644 index 0000000..fe0b897 Binary files /dev/null and b/assets/animations/idle_look_around/frame_020.webp differ diff --git a/assets/animations/idle_look_around/frame_021.webp b/assets/animations/idle_look_around/frame_021.webp new file mode 100644 index 0000000..5bf9551 Binary files /dev/null and b/assets/animations/idle_look_around/frame_021.webp differ diff --git a/assets/animations/idle_look_around/frame_022.webp b/assets/animations/idle_look_around/frame_022.webp new file mode 100644 index 0000000..3642c91 Binary files /dev/null and b/assets/animations/idle_look_around/frame_022.webp differ diff --git a/assets/animations/idle_look_around/frame_023.webp b/assets/animations/idle_look_around/frame_023.webp new file mode 100644 index 0000000..a9feaea Binary files /dev/null and b/assets/animations/idle_look_around/frame_023.webp differ diff --git a/assets/animations/idle_look_around/frame_024.webp b/assets/animations/idle_look_around/frame_024.webp new file mode 100644 index 0000000..f66679c Binary files /dev/null and b/assets/animations/idle_look_around/frame_024.webp differ diff --git a/assets/animations/idle_look_around/frame_025.webp b/assets/animations/idle_look_around/frame_025.webp new file mode 100644 index 0000000..2becbaf Binary files /dev/null and b/assets/animations/idle_look_around/frame_025.webp differ diff --git a/assets/animations/idle_look_around/frame_026.webp b/assets/animations/idle_look_around/frame_026.webp new file mode 100644 index 0000000..a740533 Binary files /dev/null and b/assets/animations/idle_look_around/frame_026.webp differ diff --git a/assets/animations/idle_look_around/frame_027.webp b/assets/animations/idle_look_around/frame_027.webp new file mode 100644 index 0000000..37d0d7f Binary files /dev/null and b/assets/animations/idle_look_around/frame_027.webp differ diff --git a/assets/animations/idle_look_around/frame_028.webp b/assets/animations/idle_look_around/frame_028.webp new file mode 100644 index 0000000..4a5871e Binary files /dev/null and b/assets/animations/idle_look_around/frame_028.webp differ diff --git a/assets/animations/idle_look_around/frame_029.webp b/assets/animations/idle_look_around/frame_029.webp new file mode 100644 index 0000000..a0a9e76 Binary files /dev/null and b/assets/animations/idle_look_around/frame_029.webp differ diff --git a/assets/animations/idle_look_around/frame_030.webp b/assets/animations/idle_look_around/frame_030.webp new file mode 100644 index 0000000..c783255 Binary files /dev/null and b/assets/animations/idle_look_around/frame_030.webp differ diff --git a/assets/animations/idle_look_around/frame_031.webp b/assets/animations/idle_look_around/frame_031.webp new file mode 100644 index 0000000..d03ce2f Binary files /dev/null and b/assets/animations/idle_look_around/frame_031.webp differ diff --git a/assets/animations/idle_look_around/frame_032.webp b/assets/animations/idle_look_around/frame_032.webp new file mode 100644 index 0000000..a554bf9 Binary files /dev/null and b/assets/animations/idle_look_around/frame_032.webp differ diff --git a/assets/animations/idle_look_around/frame_033.webp b/assets/animations/idle_look_around/frame_033.webp new file mode 100644 index 0000000..f3034e0 Binary files /dev/null and b/assets/animations/idle_look_around/frame_033.webp differ diff --git a/assets/animations/idle_look_around/frame_034.webp b/assets/animations/idle_look_around/frame_034.webp new file mode 100644 index 0000000..a383b4a Binary files /dev/null and b/assets/animations/idle_look_around/frame_034.webp differ diff --git a/assets/animations/idle_look_around/frame_035.webp b/assets/animations/idle_look_around/frame_035.webp new file mode 100644 index 0000000..9a9ce4d Binary files /dev/null and b/assets/animations/idle_look_around/frame_035.webp differ diff --git a/assets/animations/idle_look_around/frame_036.webp b/assets/animations/idle_look_around/frame_036.webp new file mode 100644 index 0000000..3e1ebf1 Binary files /dev/null and b/assets/animations/idle_look_around/frame_036.webp differ diff --git a/assets/animations/idle_look_around/frame_037.webp b/assets/animations/idle_look_around/frame_037.webp new file mode 100644 index 0000000..4e125ae Binary files /dev/null and b/assets/animations/idle_look_around/frame_037.webp differ diff --git a/assets/animations/idle_look_around/frame_038.webp b/assets/animations/idle_look_around/frame_038.webp new file mode 100644 index 0000000..7fd0b45 Binary files /dev/null and b/assets/animations/idle_look_around/frame_038.webp differ diff --git a/assets/animations/idle_look_around/frame_039.webp b/assets/animations/idle_look_around/frame_039.webp new file mode 100644 index 0000000..bbb590b Binary files /dev/null and b/assets/animations/idle_look_around/frame_039.webp differ diff --git a/assets/animations/idle_look_around/frame_040.webp b/assets/animations/idle_look_around/frame_040.webp new file mode 100644 index 0000000..1ff8e31 Binary files /dev/null and b/assets/animations/idle_look_around/frame_040.webp differ diff --git a/assets/animations/idle_look_around/frame_041.webp b/assets/animations/idle_look_around/frame_041.webp new file mode 100644 index 0000000..1b8fd23 Binary files /dev/null and b/assets/animations/idle_look_around/frame_041.webp differ diff --git a/assets/animations/idle_look_around/frame_042.webp b/assets/animations/idle_look_around/frame_042.webp new file mode 100644 index 0000000..1d02eef Binary files /dev/null and b/assets/animations/idle_look_around/frame_042.webp differ diff --git a/assets/animations/idle_look_around/frame_043.webp b/assets/animations/idle_look_around/frame_043.webp new file mode 100644 index 0000000..38dcd50 Binary files /dev/null and b/assets/animations/idle_look_around/frame_043.webp differ diff --git a/assets/animations/idle_look_around/frame_044.webp b/assets/animations/idle_look_around/frame_044.webp new file mode 100644 index 0000000..b58b61d Binary files /dev/null and b/assets/animations/idle_look_around/frame_044.webp differ diff --git a/assets/animations/idle_look_around/frame_045.webp b/assets/animations/idle_look_around/frame_045.webp new file mode 100644 index 0000000..fa2e0f6 Binary files /dev/null and b/assets/animations/idle_look_around/frame_045.webp differ diff --git a/assets/animations/idle_look_around/frame_046.webp b/assets/animations/idle_look_around/frame_046.webp new file mode 100644 index 0000000..8ede0ad Binary files /dev/null and b/assets/animations/idle_look_around/frame_046.webp differ diff --git a/assets/animations/idle_look_around/frame_047.webp b/assets/animations/idle_look_around/frame_047.webp new file mode 100644 index 0000000..ecbc85d Binary files /dev/null and b/assets/animations/idle_look_around/frame_047.webp differ diff --git a/assets/animations/idle_look_around/frame_048.webp b/assets/animations/idle_look_around/frame_048.webp new file mode 100644 index 0000000..b48d78a Binary files /dev/null and b/assets/animations/idle_look_around/frame_048.webp differ diff --git a/assets/animations/idle_look_around/frame_049.webp b/assets/animations/idle_look_around/frame_049.webp new file mode 100644 index 0000000..4cdea6d Binary files /dev/null and b/assets/animations/idle_look_around/frame_049.webp differ diff --git a/assets/animations/idle_look_around/frame_050.webp b/assets/animations/idle_look_around/frame_050.webp new file mode 100644 index 0000000..2ba530c Binary files /dev/null and b/assets/animations/idle_look_around/frame_050.webp differ diff --git a/assets/animations/idle_look_around/frame_051.webp b/assets/animations/idle_look_around/frame_051.webp new file mode 100644 index 0000000..78b8170 Binary files /dev/null and b/assets/animations/idle_look_around/frame_051.webp differ diff --git a/assets/animations/idle_look_around/frame_052.webp b/assets/animations/idle_look_around/frame_052.webp new file mode 100644 index 0000000..f2fbc42 Binary files /dev/null and b/assets/animations/idle_look_around/frame_052.webp differ diff --git a/assets/animations/idle_look_around/frame_053.webp b/assets/animations/idle_look_around/frame_053.webp new file mode 100644 index 0000000..3dcf402 Binary files /dev/null and b/assets/animations/idle_look_around/frame_053.webp differ diff --git a/assets/animations/idle_look_around/frame_054.webp b/assets/animations/idle_look_around/frame_054.webp new file mode 100644 index 0000000..edbcaab Binary files /dev/null and b/assets/animations/idle_look_around/frame_054.webp differ diff --git a/assets/animations/idle_look_around/frame_055.webp b/assets/animations/idle_look_around/frame_055.webp new file mode 100644 index 0000000..9a29d12 Binary files /dev/null and b/assets/animations/idle_look_around/frame_055.webp differ diff --git a/assets/animations/idle_look_around/frame_056.webp b/assets/animations/idle_look_around/frame_056.webp new file mode 100644 index 0000000..d60bd21 Binary files /dev/null and b/assets/animations/idle_look_around/frame_056.webp differ diff --git a/assets/animations/idle_look_around/frame_057.webp b/assets/animations/idle_look_around/frame_057.webp new file mode 100644 index 0000000..64c227f Binary files /dev/null and b/assets/animations/idle_look_around/frame_057.webp differ diff --git a/assets/animations/idle_look_around/frame_058.webp b/assets/animations/idle_look_around/frame_058.webp new file mode 100644 index 0000000..8be2633 Binary files /dev/null and b/assets/animations/idle_look_around/frame_058.webp differ diff --git a/assets/animations/idle_look_around/frame_059.webp b/assets/animations/idle_look_around/frame_059.webp new file mode 100644 index 0000000..ba2f40a Binary files /dev/null and b/assets/animations/idle_look_around/frame_059.webp differ diff --git a/assets/animations/idle_look_around/frame_060.webp b/assets/animations/idle_look_around/frame_060.webp new file mode 100644 index 0000000..50d79d3 Binary files /dev/null and b/assets/animations/idle_look_around/frame_060.webp differ diff --git a/assets/animations/idle_look_around/frame_061.webp b/assets/animations/idle_look_around/frame_061.webp new file mode 100644 index 0000000..8eb13a9 Binary files /dev/null and b/assets/animations/idle_look_around/frame_061.webp differ diff --git a/assets/animations/idle_look_around/frame_062.webp b/assets/animations/idle_look_around/frame_062.webp new file mode 100644 index 0000000..46b720a Binary files /dev/null and b/assets/animations/idle_look_around/frame_062.webp differ diff --git a/assets/animations/idle_look_around/frame_063.webp b/assets/animations/idle_look_around/frame_063.webp new file mode 100644 index 0000000..50a2b6c Binary files /dev/null and b/assets/animations/idle_look_around/frame_063.webp differ diff --git a/assets/animations/idle_look_around/frame_064.webp b/assets/animations/idle_look_around/frame_064.webp new file mode 100644 index 0000000..0a3347f Binary files /dev/null and b/assets/animations/idle_look_around/frame_064.webp differ diff --git a/assets/animations/idle_look_around/frame_065.webp b/assets/animations/idle_look_around/frame_065.webp new file mode 100644 index 0000000..c1d9096 Binary files /dev/null and b/assets/animations/idle_look_around/frame_065.webp differ diff --git a/assets/animations/idle_look_around/frame_066.webp b/assets/animations/idle_look_around/frame_066.webp new file mode 100644 index 0000000..e728952 Binary files /dev/null and b/assets/animations/idle_look_around/frame_066.webp differ diff --git a/assets/animations/idle_look_around/frame_067.webp b/assets/animations/idle_look_around/frame_067.webp new file mode 100644 index 0000000..f1da0cc Binary files /dev/null and b/assets/animations/idle_look_around/frame_067.webp differ diff --git a/assets/animations/idle_look_around/frame_068.webp b/assets/animations/idle_look_around/frame_068.webp new file mode 100644 index 0000000..2a85987 Binary files /dev/null and b/assets/animations/idle_look_around/frame_068.webp differ diff --git a/assets/animations/idle_look_around/frame_069.webp b/assets/animations/idle_look_around/frame_069.webp new file mode 100644 index 0000000..9c37de3 Binary files /dev/null and b/assets/animations/idle_look_around/frame_069.webp differ diff --git a/assets/animations/idle_look_around/frame_070.webp b/assets/animations/idle_look_around/frame_070.webp new file mode 100644 index 0000000..8b27a8d Binary files /dev/null and b/assets/animations/idle_look_around/frame_070.webp differ diff --git a/assets/animations/idle_look_around/frame_071.webp b/assets/animations/idle_look_around/frame_071.webp new file mode 100644 index 0000000..5685fb3 Binary files /dev/null and b/assets/animations/idle_look_around/frame_071.webp differ diff --git a/assets/animations/idle_look_around/frame_072.webp b/assets/animations/idle_look_around/frame_072.webp new file mode 100644 index 0000000..483dc96 Binary files /dev/null and b/assets/animations/idle_look_around/frame_072.webp differ diff --git a/assets/animations/idle_look_around/frame_073.webp b/assets/animations/idle_look_around/frame_073.webp new file mode 100644 index 0000000..186e89a Binary files /dev/null and b/assets/animations/idle_look_around/frame_073.webp differ diff --git a/assets/animations/idle_look_around/frame_074.webp b/assets/animations/idle_look_around/frame_074.webp new file mode 100644 index 0000000..daa431c Binary files /dev/null and b/assets/animations/idle_look_around/frame_074.webp differ diff --git a/assets/animations/idle_look_around/frame_075.webp b/assets/animations/idle_look_around/frame_075.webp new file mode 100644 index 0000000..016691e Binary files /dev/null and b/assets/animations/idle_look_around/frame_075.webp differ diff --git a/assets/animations/idle_look_around/frame_076.webp b/assets/animations/idle_look_around/frame_076.webp new file mode 100644 index 0000000..dbd9055 Binary files /dev/null and b/assets/animations/idle_look_around/frame_076.webp differ diff --git a/assets/animations/idle_look_around/frame_077.webp b/assets/animations/idle_look_around/frame_077.webp new file mode 100644 index 0000000..86c24ce Binary files /dev/null and b/assets/animations/idle_look_around/frame_077.webp differ diff --git a/assets/animations/idle_look_around/frame_078.webp b/assets/animations/idle_look_around/frame_078.webp new file mode 100644 index 0000000..26df364 Binary files /dev/null and b/assets/animations/idle_look_around/frame_078.webp differ diff --git a/assets/animations/idle_look_around/frame_079.webp b/assets/animations/idle_look_around/frame_079.webp new file mode 100644 index 0000000..2b264e3 Binary files /dev/null and b/assets/animations/idle_look_around/frame_079.webp differ diff --git a/assets/animations/idle_main/frame_000.webp b/assets/animations/idle_main/frame_000.webp new file mode 100644 index 0000000..2bd4a14 Binary files /dev/null and b/assets/animations/idle_main/frame_000.webp differ diff --git a/assets/animations/idle_nose_rub/frame_000.webp b/assets/animations/idle_nose_rub/frame_000.webp new file mode 100644 index 0000000..7f2a605 Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_000.webp differ diff --git a/assets/animations/idle_nose_rub/frame_001.webp b/assets/animations/idle_nose_rub/frame_001.webp new file mode 100644 index 0000000..51bd2df Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_001.webp differ diff --git a/assets/animations/idle_nose_rub/frame_002.webp b/assets/animations/idle_nose_rub/frame_002.webp new file mode 100644 index 0000000..e5d6a1d Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_002.webp differ diff --git a/assets/animations/idle_nose_rub/frame_003.webp b/assets/animations/idle_nose_rub/frame_003.webp new file mode 100644 index 0000000..85c2979 Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_003.webp differ diff --git a/assets/animations/idle_nose_rub/frame_004.webp b/assets/animations/idle_nose_rub/frame_004.webp new file mode 100644 index 0000000..4cd8f32 Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_004.webp differ diff --git a/assets/animations/idle_nose_rub/frame_005.webp b/assets/animations/idle_nose_rub/frame_005.webp new file mode 100644 index 0000000..1bf0408 Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_005.webp differ diff --git a/assets/animations/idle_nose_rub/frame_006.webp b/assets/animations/idle_nose_rub/frame_006.webp new file mode 100644 index 0000000..29ddd0d Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_006.webp differ diff --git a/assets/animations/idle_nose_rub/frame_007.webp b/assets/animations/idle_nose_rub/frame_007.webp new file mode 100644 index 0000000..d63f438 Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_007.webp differ diff --git a/assets/animations/idle_nose_rub/frame_008.webp b/assets/animations/idle_nose_rub/frame_008.webp new file mode 100644 index 0000000..0f91a8d Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_008.webp differ diff --git a/assets/animations/idle_nose_rub/frame_009.webp b/assets/animations/idle_nose_rub/frame_009.webp new file mode 100644 index 0000000..147e5fc Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_009.webp differ diff --git a/assets/animations/idle_nose_rub/frame_010.webp b/assets/animations/idle_nose_rub/frame_010.webp new file mode 100644 index 0000000..4350094 Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_010.webp differ diff --git a/assets/animations/idle_nose_rub/frame_011.webp b/assets/animations/idle_nose_rub/frame_011.webp new file mode 100644 index 0000000..10a7f49 Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_011.webp differ diff --git a/assets/animations/idle_nose_rub/frame_012.webp b/assets/animations/idle_nose_rub/frame_012.webp new file mode 100644 index 0000000..f4e544c Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_012.webp differ diff --git a/assets/animations/idle_nose_rub/frame_013.webp b/assets/animations/idle_nose_rub/frame_013.webp new file mode 100644 index 0000000..50a6519 Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_013.webp differ diff --git a/assets/animations/idle_nose_rub/frame_014.webp b/assets/animations/idle_nose_rub/frame_014.webp new file mode 100644 index 0000000..b02a245 Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_014.webp differ diff --git a/assets/animations/idle_nose_rub/frame_015.webp b/assets/animations/idle_nose_rub/frame_015.webp new file mode 100644 index 0000000..3c2399b Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_015.webp differ diff --git a/assets/animations/idle_nose_rub/frame_016.webp b/assets/animations/idle_nose_rub/frame_016.webp new file mode 100644 index 0000000..1205be3 Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_016.webp differ diff --git a/assets/animations/idle_nose_rub/frame_017.webp b/assets/animations/idle_nose_rub/frame_017.webp new file mode 100644 index 0000000..053dada Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_017.webp differ diff --git a/assets/animations/idle_nose_rub/frame_018.webp b/assets/animations/idle_nose_rub/frame_018.webp new file mode 100644 index 0000000..ab41715 Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_018.webp differ diff --git a/assets/animations/idle_nose_rub/frame_019.webp b/assets/animations/idle_nose_rub/frame_019.webp new file mode 100644 index 0000000..d78dfc1 Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_019.webp differ diff --git a/assets/animations/idle_nose_rub/frame_020.webp b/assets/animations/idle_nose_rub/frame_020.webp new file mode 100644 index 0000000..3460411 Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_020.webp differ diff --git a/assets/animations/idle_nose_rub/frame_021.webp b/assets/animations/idle_nose_rub/frame_021.webp new file mode 100644 index 0000000..b1a29ac Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_021.webp differ diff --git a/assets/animations/idle_nose_rub/frame_022.webp b/assets/animations/idle_nose_rub/frame_022.webp new file mode 100644 index 0000000..fe708ff Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_022.webp differ diff --git a/assets/animations/idle_nose_rub/frame_023.webp b/assets/animations/idle_nose_rub/frame_023.webp new file mode 100644 index 0000000..390145e Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_023.webp differ diff --git a/assets/animations/idle_nose_rub/frame_024.webp b/assets/animations/idle_nose_rub/frame_024.webp new file mode 100644 index 0000000..19983fd Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_024.webp differ diff --git a/assets/animations/idle_nose_rub/frame_025.webp b/assets/animations/idle_nose_rub/frame_025.webp new file mode 100644 index 0000000..fe9a25f Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_025.webp differ diff --git a/assets/animations/idle_nose_rub/frame_026.webp b/assets/animations/idle_nose_rub/frame_026.webp new file mode 100644 index 0000000..9f435c5 Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_026.webp differ diff --git a/assets/animations/idle_nose_rub/frame_027.webp b/assets/animations/idle_nose_rub/frame_027.webp new file mode 100644 index 0000000..1d07aa4 Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_027.webp differ diff --git a/assets/animations/idle_nose_rub/frame_028.webp b/assets/animations/idle_nose_rub/frame_028.webp new file mode 100644 index 0000000..f44f656 Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_028.webp differ diff --git a/assets/animations/idle_nose_rub/frame_029.webp b/assets/animations/idle_nose_rub/frame_029.webp new file mode 100644 index 0000000..d02c92e Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_029.webp differ diff --git a/assets/animations/idle_nose_rub/frame_030.webp b/assets/animations/idle_nose_rub/frame_030.webp new file mode 100644 index 0000000..12b46f7 Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_030.webp differ diff --git a/assets/animations/idle_nose_rub/frame_031.webp b/assets/animations/idle_nose_rub/frame_031.webp new file mode 100644 index 0000000..8969245 Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_031.webp differ diff --git a/assets/animations/idle_nose_rub/frame_032.webp b/assets/animations/idle_nose_rub/frame_032.webp new file mode 100644 index 0000000..2adf8b0 Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_032.webp differ diff --git a/assets/animations/idle_nose_rub/frame_033.webp b/assets/animations/idle_nose_rub/frame_033.webp new file mode 100644 index 0000000..e49b035 Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_033.webp differ diff --git a/assets/animations/idle_nose_rub/frame_034.webp b/assets/animations/idle_nose_rub/frame_034.webp new file mode 100644 index 0000000..20cd526 Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_034.webp differ diff --git a/assets/animations/idle_nose_rub/frame_035.webp b/assets/animations/idle_nose_rub/frame_035.webp new file mode 100644 index 0000000..54e7edd Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_035.webp differ diff --git a/assets/animations/idle_nose_rub/frame_036.webp b/assets/animations/idle_nose_rub/frame_036.webp new file mode 100644 index 0000000..699c39c Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_036.webp differ diff --git a/assets/animations/idle_nose_rub/frame_037.webp b/assets/animations/idle_nose_rub/frame_037.webp new file mode 100644 index 0000000..aaa9d82 Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_037.webp differ diff --git a/assets/animations/idle_nose_rub/frame_038.webp b/assets/animations/idle_nose_rub/frame_038.webp new file mode 100644 index 0000000..b41e79b Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_038.webp differ diff --git a/assets/animations/idle_nose_rub/frame_039.webp b/assets/animations/idle_nose_rub/frame_039.webp new file mode 100644 index 0000000..d04704a Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_039.webp differ diff --git a/assets/animations/idle_nose_rub/frame_040.webp b/assets/animations/idle_nose_rub/frame_040.webp new file mode 100644 index 0000000..1b72646 Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_040.webp differ diff --git a/assets/animations/idle_nose_rub/frame_041.webp b/assets/animations/idle_nose_rub/frame_041.webp new file mode 100644 index 0000000..f6a1de3 Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_041.webp differ diff --git a/assets/animations/idle_nose_rub/frame_042.webp b/assets/animations/idle_nose_rub/frame_042.webp new file mode 100644 index 0000000..4d5381e Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_042.webp differ diff --git a/assets/animations/idle_nose_rub/frame_043.webp b/assets/animations/idle_nose_rub/frame_043.webp new file mode 100644 index 0000000..e461ab5 Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_043.webp differ diff --git a/assets/animations/idle_nose_rub/frame_044.webp b/assets/animations/idle_nose_rub/frame_044.webp new file mode 100644 index 0000000..9011ed1 Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_044.webp differ diff --git a/assets/animations/idle_nose_rub/frame_045.webp b/assets/animations/idle_nose_rub/frame_045.webp new file mode 100644 index 0000000..349a651 Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_045.webp differ diff --git a/assets/animations/idle_nose_rub/frame_046.webp b/assets/animations/idle_nose_rub/frame_046.webp new file mode 100644 index 0000000..69f921a Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_046.webp differ diff --git a/assets/animations/idle_nose_rub/frame_047.webp b/assets/animations/idle_nose_rub/frame_047.webp new file mode 100644 index 0000000..f05d9dc Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_047.webp differ diff --git a/assets/animations/idle_nose_rub/frame_048.webp b/assets/animations/idle_nose_rub/frame_048.webp new file mode 100644 index 0000000..32eedce Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_048.webp differ diff --git a/assets/animations/idle_nose_rub/frame_049.webp b/assets/animations/idle_nose_rub/frame_049.webp new file mode 100644 index 0000000..1397efa Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_049.webp differ diff --git a/assets/animations/idle_nose_rub/frame_050.webp b/assets/animations/idle_nose_rub/frame_050.webp new file mode 100644 index 0000000..26eb57e Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_050.webp differ diff --git a/assets/animations/idle_nose_rub/frame_051.webp b/assets/animations/idle_nose_rub/frame_051.webp new file mode 100644 index 0000000..59c33f6 Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_051.webp differ diff --git a/assets/animations/idle_nose_rub/frame_052.webp b/assets/animations/idle_nose_rub/frame_052.webp new file mode 100644 index 0000000..cbf0972 Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_052.webp differ diff --git a/assets/animations/idle_nose_rub/frame_053.webp b/assets/animations/idle_nose_rub/frame_053.webp new file mode 100644 index 0000000..9dee78b Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_053.webp differ diff --git a/assets/animations/idle_nose_rub/frame_054.webp b/assets/animations/idle_nose_rub/frame_054.webp new file mode 100644 index 0000000..2fb1f80 Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_054.webp differ diff --git a/assets/animations/idle_nose_rub/frame_055.webp b/assets/animations/idle_nose_rub/frame_055.webp new file mode 100644 index 0000000..9d1bc53 Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_055.webp differ diff --git a/assets/animations/idle_nose_rub/frame_056.webp b/assets/animations/idle_nose_rub/frame_056.webp new file mode 100644 index 0000000..57a0553 Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_056.webp differ diff --git a/assets/animations/idle_nose_rub/frame_057.webp b/assets/animations/idle_nose_rub/frame_057.webp new file mode 100644 index 0000000..8e0600e Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_057.webp differ diff --git a/assets/animations/idle_nose_rub/frame_058.webp b/assets/animations/idle_nose_rub/frame_058.webp new file mode 100644 index 0000000..6eb7cba Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_058.webp differ diff --git a/assets/animations/idle_nose_rub/frame_059.webp b/assets/animations/idle_nose_rub/frame_059.webp new file mode 100644 index 0000000..b746928 Binary files /dev/null and b/assets/animations/idle_nose_rub/frame_059.webp differ diff --git a/assets/animations/idle_paper_plane/frame_000.webp b/assets/animations/idle_paper_plane/frame_000.webp new file mode 100644 index 0000000..d850649 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_000.webp differ diff --git a/assets/animations/idle_paper_plane/frame_001.webp b/assets/animations/idle_paper_plane/frame_001.webp new file mode 100644 index 0000000..18e1984 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_001.webp differ diff --git a/assets/animations/idle_paper_plane/frame_002.webp b/assets/animations/idle_paper_plane/frame_002.webp new file mode 100644 index 0000000..c93f897 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_002.webp differ diff --git a/assets/animations/idle_paper_plane/frame_003.webp b/assets/animations/idle_paper_plane/frame_003.webp new file mode 100644 index 0000000..abbb904 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_003.webp differ diff --git a/assets/animations/idle_paper_plane/frame_004.webp b/assets/animations/idle_paper_plane/frame_004.webp new file mode 100644 index 0000000..8e2525c Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_004.webp differ diff --git a/assets/animations/idle_paper_plane/frame_005.webp b/assets/animations/idle_paper_plane/frame_005.webp new file mode 100644 index 0000000..2e0a01d Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_005.webp differ diff --git a/assets/animations/idle_paper_plane/frame_006.webp b/assets/animations/idle_paper_plane/frame_006.webp new file mode 100644 index 0000000..c7b75f3 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_006.webp differ diff --git a/assets/animations/idle_paper_plane/frame_007.webp b/assets/animations/idle_paper_plane/frame_007.webp new file mode 100644 index 0000000..aeb91c2 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_007.webp differ diff --git a/assets/animations/idle_paper_plane/frame_008.webp b/assets/animations/idle_paper_plane/frame_008.webp new file mode 100644 index 0000000..0d6fcc4 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_008.webp differ diff --git a/assets/animations/idle_paper_plane/frame_009.webp b/assets/animations/idle_paper_plane/frame_009.webp new file mode 100644 index 0000000..9f1b257 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_009.webp differ diff --git a/assets/animations/idle_paper_plane/frame_010.webp b/assets/animations/idle_paper_plane/frame_010.webp new file mode 100644 index 0000000..9294c1e Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_010.webp differ diff --git a/assets/animations/idle_paper_plane/frame_011.webp b/assets/animations/idle_paper_plane/frame_011.webp new file mode 100644 index 0000000..d21098b Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_011.webp differ diff --git a/assets/animations/idle_paper_plane/frame_012.webp b/assets/animations/idle_paper_plane/frame_012.webp new file mode 100644 index 0000000..dfaf6a6 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_012.webp differ diff --git a/assets/animations/idle_paper_plane/frame_013.webp b/assets/animations/idle_paper_plane/frame_013.webp new file mode 100644 index 0000000..3ff9403 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_013.webp differ diff --git a/assets/animations/idle_paper_plane/frame_014.webp b/assets/animations/idle_paper_plane/frame_014.webp new file mode 100644 index 0000000..86a8657 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_014.webp differ diff --git a/assets/animations/idle_paper_plane/frame_015.webp b/assets/animations/idle_paper_plane/frame_015.webp new file mode 100644 index 0000000..deaa1e0 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_015.webp differ diff --git a/assets/animations/idle_paper_plane/frame_016.webp b/assets/animations/idle_paper_plane/frame_016.webp new file mode 100644 index 0000000..e68752e Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_016.webp differ diff --git a/assets/animations/idle_paper_plane/frame_017.webp b/assets/animations/idle_paper_plane/frame_017.webp new file mode 100644 index 0000000..09d5b3a Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_017.webp differ diff --git a/assets/animations/idle_paper_plane/frame_018.webp b/assets/animations/idle_paper_plane/frame_018.webp new file mode 100644 index 0000000..97e0ced Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_018.webp differ diff --git a/assets/animations/idle_paper_plane/frame_019.webp b/assets/animations/idle_paper_plane/frame_019.webp new file mode 100644 index 0000000..6e58bd6 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_019.webp differ diff --git a/assets/animations/idle_paper_plane/frame_020.webp b/assets/animations/idle_paper_plane/frame_020.webp new file mode 100644 index 0000000..63953b7 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_020.webp differ diff --git a/assets/animations/idle_paper_plane/frame_021.webp b/assets/animations/idle_paper_plane/frame_021.webp new file mode 100644 index 0000000..8edd702 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_021.webp differ diff --git a/assets/animations/idle_paper_plane/frame_022.webp b/assets/animations/idle_paper_plane/frame_022.webp new file mode 100644 index 0000000..df42d29 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_022.webp differ diff --git a/assets/animations/idle_paper_plane/frame_023.webp b/assets/animations/idle_paper_plane/frame_023.webp new file mode 100644 index 0000000..9569720 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_023.webp differ diff --git a/assets/animations/idle_paper_plane/frame_024.webp b/assets/animations/idle_paper_plane/frame_024.webp new file mode 100644 index 0000000..37c9b54 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_024.webp differ diff --git a/assets/animations/idle_paper_plane/frame_025.webp b/assets/animations/idle_paper_plane/frame_025.webp new file mode 100644 index 0000000..709fe38 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_025.webp differ diff --git a/assets/animations/idle_paper_plane/frame_026.webp b/assets/animations/idle_paper_plane/frame_026.webp new file mode 100644 index 0000000..d461689 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_026.webp differ diff --git a/assets/animations/idle_paper_plane/frame_027.webp b/assets/animations/idle_paper_plane/frame_027.webp new file mode 100644 index 0000000..b0a7482 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_027.webp differ diff --git a/assets/animations/idle_paper_plane/frame_028.webp b/assets/animations/idle_paper_plane/frame_028.webp new file mode 100644 index 0000000..65dc195 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_028.webp differ diff --git a/assets/animations/idle_paper_plane/frame_029.webp b/assets/animations/idle_paper_plane/frame_029.webp new file mode 100644 index 0000000..13ecb58 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_029.webp differ diff --git a/assets/animations/idle_paper_plane/frame_030.webp b/assets/animations/idle_paper_plane/frame_030.webp new file mode 100644 index 0000000..587523d Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_030.webp differ diff --git a/assets/animations/idle_paper_plane/frame_031.webp b/assets/animations/idle_paper_plane/frame_031.webp new file mode 100644 index 0000000..b8a4f95 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_031.webp differ diff --git a/assets/animations/idle_paper_plane/frame_032.webp b/assets/animations/idle_paper_plane/frame_032.webp new file mode 100644 index 0000000..cc05ca5 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_032.webp differ diff --git a/assets/animations/idle_paper_plane/frame_033.webp b/assets/animations/idle_paper_plane/frame_033.webp new file mode 100644 index 0000000..0e0a390 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_033.webp differ diff --git a/assets/animations/idle_paper_plane/frame_034.webp b/assets/animations/idle_paper_plane/frame_034.webp new file mode 100644 index 0000000..520b3c2 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_034.webp differ diff --git a/assets/animations/idle_paper_plane/frame_035.webp b/assets/animations/idle_paper_plane/frame_035.webp new file mode 100644 index 0000000..2f07d03 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_035.webp differ diff --git a/assets/animations/idle_paper_plane/frame_036.webp b/assets/animations/idle_paper_plane/frame_036.webp new file mode 100644 index 0000000..27aecbc Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_036.webp differ diff --git a/assets/animations/idle_paper_plane/frame_037.webp b/assets/animations/idle_paper_plane/frame_037.webp new file mode 100644 index 0000000..a47c28f Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_037.webp differ diff --git a/assets/animations/idle_paper_plane/frame_038.webp b/assets/animations/idle_paper_plane/frame_038.webp new file mode 100644 index 0000000..dbae42d Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_038.webp differ diff --git a/assets/animations/idle_paper_plane/frame_039.webp b/assets/animations/idle_paper_plane/frame_039.webp new file mode 100644 index 0000000..bbbaaf7 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_039.webp differ diff --git a/assets/animations/idle_paper_plane/frame_040.webp b/assets/animations/idle_paper_plane/frame_040.webp new file mode 100644 index 0000000..165da01 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_040.webp differ diff --git a/assets/animations/idle_paper_plane/frame_041.webp b/assets/animations/idle_paper_plane/frame_041.webp new file mode 100644 index 0000000..6f7543b Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_041.webp differ diff --git a/assets/animations/idle_paper_plane/frame_042.webp b/assets/animations/idle_paper_plane/frame_042.webp new file mode 100644 index 0000000..6aef567 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_042.webp differ diff --git a/assets/animations/idle_paper_plane/frame_043.webp b/assets/animations/idle_paper_plane/frame_043.webp new file mode 100644 index 0000000..6ac3b33 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_043.webp differ diff --git a/assets/animations/idle_paper_plane/frame_044.webp b/assets/animations/idle_paper_plane/frame_044.webp new file mode 100644 index 0000000..8573f1b Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_044.webp differ diff --git a/assets/animations/idle_paper_plane/frame_045.webp b/assets/animations/idle_paper_plane/frame_045.webp new file mode 100644 index 0000000..8e466e9 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_045.webp differ diff --git a/assets/animations/idle_paper_plane/frame_046.webp b/assets/animations/idle_paper_plane/frame_046.webp new file mode 100644 index 0000000..f2ae672 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_046.webp differ diff --git a/assets/animations/idle_paper_plane/frame_047.webp b/assets/animations/idle_paper_plane/frame_047.webp new file mode 100644 index 0000000..0484829 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_047.webp differ diff --git a/assets/animations/idle_paper_plane/frame_048.webp b/assets/animations/idle_paper_plane/frame_048.webp new file mode 100644 index 0000000..fe15d11 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_048.webp differ diff --git a/assets/animations/idle_paper_plane/frame_049.webp b/assets/animations/idle_paper_plane/frame_049.webp new file mode 100644 index 0000000..a78cad5 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_049.webp differ diff --git a/assets/animations/idle_paper_plane/frame_050.webp b/assets/animations/idle_paper_plane/frame_050.webp new file mode 100644 index 0000000..311ef99 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_050.webp differ diff --git a/assets/animations/idle_paper_plane/frame_051.webp b/assets/animations/idle_paper_plane/frame_051.webp new file mode 100644 index 0000000..afdc7dd Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_051.webp differ diff --git a/assets/animations/idle_paper_plane/frame_052.webp b/assets/animations/idle_paper_plane/frame_052.webp new file mode 100644 index 0000000..19361c7 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_052.webp differ diff --git a/assets/animations/idle_paper_plane/frame_053.webp b/assets/animations/idle_paper_plane/frame_053.webp new file mode 100644 index 0000000..862f21c Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_053.webp differ diff --git a/assets/animations/idle_paper_plane/frame_054.webp b/assets/animations/idle_paper_plane/frame_054.webp new file mode 100644 index 0000000..77ac5b7 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_054.webp differ diff --git a/assets/animations/idle_paper_plane/frame_055.webp b/assets/animations/idle_paper_plane/frame_055.webp new file mode 100644 index 0000000..f95d2eb Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_055.webp differ diff --git a/assets/animations/idle_paper_plane/frame_056.webp b/assets/animations/idle_paper_plane/frame_056.webp new file mode 100644 index 0000000..04cf214 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_056.webp differ diff --git a/assets/animations/idle_paper_plane/frame_057.webp b/assets/animations/idle_paper_plane/frame_057.webp new file mode 100644 index 0000000..478db72 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_057.webp differ diff --git a/assets/animations/idle_paper_plane/frame_058.webp b/assets/animations/idle_paper_plane/frame_058.webp new file mode 100644 index 0000000..f26d689 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_058.webp differ diff --git a/assets/animations/idle_paper_plane/frame_059.webp b/assets/animations/idle_paper_plane/frame_059.webp new file mode 100644 index 0000000..8b1c35d Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_059.webp differ diff --git a/assets/animations/idle_paper_plane/frame_060.webp b/assets/animations/idle_paper_plane/frame_060.webp new file mode 100644 index 0000000..3ee195e Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_060.webp differ diff --git a/assets/animations/idle_paper_plane/frame_061.webp b/assets/animations/idle_paper_plane/frame_061.webp new file mode 100644 index 0000000..09afcf7 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_061.webp differ diff --git a/assets/animations/idle_paper_plane/frame_062.webp b/assets/animations/idle_paper_plane/frame_062.webp new file mode 100644 index 0000000..30c24da Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_062.webp differ diff --git a/assets/animations/idle_paper_plane/frame_063.webp b/assets/animations/idle_paper_plane/frame_063.webp new file mode 100644 index 0000000..e414f28 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_063.webp differ diff --git a/assets/animations/idle_paper_plane/frame_064.webp b/assets/animations/idle_paper_plane/frame_064.webp new file mode 100644 index 0000000..f8565f3 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_064.webp differ diff --git a/assets/animations/idle_paper_plane/frame_065.webp b/assets/animations/idle_paper_plane/frame_065.webp new file mode 100644 index 0000000..1d784fb Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_065.webp differ diff --git a/assets/animations/idle_paper_plane/frame_066.webp b/assets/animations/idle_paper_plane/frame_066.webp new file mode 100644 index 0000000..cf6c8dc Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_066.webp differ diff --git a/assets/animations/idle_paper_plane/frame_067.webp b/assets/animations/idle_paper_plane/frame_067.webp new file mode 100644 index 0000000..d1e9af0 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_067.webp differ diff --git a/assets/animations/idle_paper_plane/frame_068.webp b/assets/animations/idle_paper_plane/frame_068.webp new file mode 100644 index 0000000..70e3b0e Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_068.webp differ diff --git a/assets/animations/idle_paper_plane/frame_069.webp b/assets/animations/idle_paper_plane/frame_069.webp new file mode 100644 index 0000000..49edc7f Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_069.webp differ diff --git a/assets/animations/idle_paper_plane/frame_070.webp b/assets/animations/idle_paper_plane/frame_070.webp new file mode 100644 index 0000000..eb01dc1 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_070.webp differ diff --git a/assets/animations/idle_paper_plane/frame_071.webp b/assets/animations/idle_paper_plane/frame_071.webp new file mode 100644 index 0000000..cfd2b35 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_071.webp differ diff --git a/assets/animations/idle_paper_plane/frame_072.webp b/assets/animations/idle_paper_plane/frame_072.webp new file mode 100644 index 0000000..610d8bb Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_072.webp differ diff --git a/assets/animations/idle_paper_plane/frame_073.webp b/assets/animations/idle_paper_plane/frame_073.webp new file mode 100644 index 0000000..4a055c9 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_073.webp differ diff --git a/assets/animations/idle_paper_plane/frame_074.webp b/assets/animations/idle_paper_plane/frame_074.webp new file mode 100644 index 0000000..7152614 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_074.webp differ diff --git a/assets/animations/idle_paper_plane/frame_075.webp b/assets/animations/idle_paper_plane/frame_075.webp new file mode 100644 index 0000000..3f0b8cf Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_075.webp differ diff --git a/assets/animations/idle_paper_plane/frame_076.webp b/assets/animations/idle_paper_plane/frame_076.webp new file mode 100644 index 0000000..88d0de7 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_076.webp differ diff --git a/assets/animations/idle_paper_plane/frame_077.webp b/assets/animations/idle_paper_plane/frame_077.webp new file mode 100644 index 0000000..88a85c0 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_077.webp differ diff --git a/assets/animations/idle_paper_plane/frame_078.webp b/assets/animations/idle_paper_plane/frame_078.webp new file mode 100644 index 0000000..1a05999 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_078.webp differ diff --git a/assets/animations/idle_paper_plane/frame_079.webp b/assets/animations/idle_paper_plane/frame_079.webp new file mode 100644 index 0000000..419ff4c Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_079.webp differ diff --git a/assets/animations/idle_paper_plane/frame_080.webp b/assets/animations/idle_paper_plane/frame_080.webp new file mode 100644 index 0000000..45c3e08 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_080.webp differ diff --git a/assets/animations/idle_paper_plane/frame_081.webp b/assets/animations/idle_paper_plane/frame_081.webp new file mode 100644 index 0000000..b6933f5 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_081.webp differ diff --git a/assets/animations/idle_paper_plane/frame_082.webp b/assets/animations/idle_paper_plane/frame_082.webp new file mode 100644 index 0000000..792cd81 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_082.webp differ diff --git a/assets/animations/idle_paper_plane/frame_083.webp b/assets/animations/idle_paper_plane/frame_083.webp new file mode 100644 index 0000000..fa925a3 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_083.webp differ diff --git a/assets/animations/idle_paper_plane/frame_084.webp b/assets/animations/idle_paper_plane/frame_084.webp new file mode 100644 index 0000000..3a85f40 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_084.webp differ diff --git a/assets/animations/idle_paper_plane/frame_085.webp b/assets/animations/idle_paper_plane/frame_085.webp new file mode 100644 index 0000000..036f531 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_085.webp differ diff --git a/assets/animations/idle_paper_plane/frame_086.webp b/assets/animations/idle_paper_plane/frame_086.webp new file mode 100644 index 0000000..d37c3f4 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_086.webp differ diff --git a/assets/animations/idle_paper_plane/frame_087.webp b/assets/animations/idle_paper_plane/frame_087.webp new file mode 100644 index 0000000..b9d7209 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_087.webp differ diff --git a/assets/animations/idle_paper_plane/frame_088.webp b/assets/animations/idle_paper_plane/frame_088.webp new file mode 100644 index 0000000..f130d68 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_088.webp differ diff --git a/assets/animations/idle_paper_plane/frame_089.webp b/assets/animations/idle_paper_plane/frame_089.webp new file mode 100644 index 0000000..0c5e609 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_089.webp differ diff --git a/assets/animations/idle_paper_plane/frame_090.webp b/assets/animations/idle_paper_plane/frame_090.webp new file mode 100644 index 0000000..4dafea3 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_090.webp differ diff --git a/assets/animations/idle_paper_plane/frame_091.webp b/assets/animations/idle_paper_plane/frame_091.webp new file mode 100644 index 0000000..d504cd9 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_091.webp differ diff --git a/assets/animations/idle_paper_plane/frame_092.webp b/assets/animations/idle_paper_plane/frame_092.webp new file mode 100644 index 0000000..dc06c50 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_092.webp differ diff --git a/assets/animations/idle_paper_plane/frame_093.webp b/assets/animations/idle_paper_plane/frame_093.webp new file mode 100644 index 0000000..e3262d7 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_093.webp differ diff --git a/assets/animations/idle_paper_plane/frame_094.webp b/assets/animations/idle_paper_plane/frame_094.webp new file mode 100644 index 0000000..45d2a83 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_094.webp differ diff --git a/assets/animations/idle_paper_plane/frame_095.webp b/assets/animations/idle_paper_plane/frame_095.webp new file mode 100644 index 0000000..14955fb Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_095.webp differ diff --git a/assets/animations/idle_paper_plane/frame_096.webp b/assets/animations/idle_paper_plane/frame_096.webp new file mode 100644 index 0000000..a02a966 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_096.webp differ diff --git a/assets/animations/idle_paper_plane/frame_097.webp b/assets/animations/idle_paper_plane/frame_097.webp new file mode 100644 index 0000000..26dbd05 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_097.webp differ diff --git a/assets/animations/idle_paper_plane/frame_098.webp b/assets/animations/idle_paper_plane/frame_098.webp new file mode 100644 index 0000000..9f0e4b7 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_098.webp differ diff --git a/assets/animations/idle_paper_plane/frame_099.webp b/assets/animations/idle_paper_plane/frame_099.webp new file mode 100644 index 0000000..bc314ee Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_099.webp differ diff --git a/assets/animations/idle_paper_plane/frame_100.webp b/assets/animations/idle_paper_plane/frame_100.webp new file mode 100644 index 0000000..05a6264 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_100.webp differ diff --git a/assets/animations/idle_paper_plane/frame_101.webp b/assets/animations/idle_paper_plane/frame_101.webp new file mode 100644 index 0000000..669fa35 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_101.webp differ diff --git a/assets/animations/idle_paper_plane/frame_102.webp b/assets/animations/idle_paper_plane/frame_102.webp new file mode 100644 index 0000000..d7c0951 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_102.webp differ diff --git a/assets/animations/idle_paper_plane/frame_103.webp b/assets/animations/idle_paper_plane/frame_103.webp new file mode 100644 index 0000000..e4ad562 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_103.webp differ diff --git a/assets/animations/idle_paper_plane/frame_104.webp b/assets/animations/idle_paper_plane/frame_104.webp new file mode 100644 index 0000000..793e715 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_104.webp differ diff --git a/assets/animations/idle_paper_plane/frame_105.webp b/assets/animations/idle_paper_plane/frame_105.webp new file mode 100644 index 0000000..940a8fd Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_105.webp differ diff --git a/assets/animations/idle_paper_plane/frame_106.webp b/assets/animations/idle_paper_plane/frame_106.webp new file mode 100644 index 0000000..86a4e40 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_106.webp differ diff --git a/assets/animations/idle_paper_plane/frame_107.webp b/assets/animations/idle_paper_plane/frame_107.webp new file mode 100644 index 0000000..cbc748f Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_107.webp differ diff --git a/assets/animations/idle_paper_plane/frame_108.webp b/assets/animations/idle_paper_plane/frame_108.webp new file mode 100644 index 0000000..f029702 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_108.webp differ diff --git a/assets/animations/idle_paper_plane/frame_109.webp b/assets/animations/idle_paper_plane/frame_109.webp new file mode 100644 index 0000000..320a35c Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_109.webp differ diff --git a/assets/animations/idle_paper_plane/frame_110.webp b/assets/animations/idle_paper_plane/frame_110.webp new file mode 100644 index 0000000..f16aa0b Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_110.webp differ diff --git a/assets/animations/idle_paper_plane/frame_111.webp b/assets/animations/idle_paper_plane/frame_111.webp new file mode 100644 index 0000000..78de69d Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_111.webp differ diff --git a/assets/animations/idle_paper_plane/frame_112.webp b/assets/animations/idle_paper_plane/frame_112.webp new file mode 100644 index 0000000..44d1910 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_112.webp differ diff --git a/assets/animations/idle_paper_plane/frame_113.webp b/assets/animations/idle_paper_plane/frame_113.webp new file mode 100644 index 0000000..b7ec33c Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_113.webp differ diff --git a/assets/animations/idle_paper_plane/frame_114.webp b/assets/animations/idle_paper_plane/frame_114.webp new file mode 100644 index 0000000..e673514 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_114.webp differ diff --git a/assets/animations/idle_paper_plane/frame_115.webp b/assets/animations/idle_paper_plane/frame_115.webp new file mode 100644 index 0000000..dbbf178 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_115.webp differ diff --git a/assets/animations/idle_paper_plane/frame_116.webp b/assets/animations/idle_paper_plane/frame_116.webp new file mode 100644 index 0000000..b6ef126 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_116.webp differ diff --git a/assets/animations/idle_paper_plane/frame_117.webp b/assets/animations/idle_paper_plane/frame_117.webp new file mode 100644 index 0000000..943d661 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_117.webp differ diff --git a/assets/animations/idle_paper_plane/frame_118.webp b/assets/animations/idle_paper_plane/frame_118.webp new file mode 100644 index 0000000..67a3fbe Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_118.webp differ diff --git a/assets/animations/idle_paper_plane/frame_119.webp b/assets/animations/idle_paper_plane/frame_119.webp new file mode 100644 index 0000000..40c97d1 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_119.webp differ diff --git a/assets/animations/idle_paper_plane/frame_120.webp b/assets/animations/idle_paper_plane/frame_120.webp new file mode 100644 index 0000000..32f5251 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_120.webp differ diff --git a/assets/animations/idle_paper_plane/frame_121.webp b/assets/animations/idle_paper_plane/frame_121.webp new file mode 100644 index 0000000..dc98eb9 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_121.webp differ diff --git a/assets/animations/idle_paper_plane/frame_122.webp b/assets/animations/idle_paper_plane/frame_122.webp new file mode 100644 index 0000000..3632682 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_122.webp differ diff --git a/assets/animations/idle_paper_plane/frame_123.webp b/assets/animations/idle_paper_plane/frame_123.webp new file mode 100644 index 0000000..ed1178a Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_123.webp differ diff --git a/assets/animations/idle_paper_plane/frame_124.webp b/assets/animations/idle_paper_plane/frame_124.webp new file mode 100644 index 0000000..92b6763 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_124.webp differ diff --git a/assets/animations/idle_paper_plane/frame_125.webp b/assets/animations/idle_paper_plane/frame_125.webp new file mode 100644 index 0000000..7fbcf0c Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_125.webp differ diff --git a/assets/animations/idle_paper_plane/frame_126.webp b/assets/animations/idle_paper_plane/frame_126.webp new file mode 100644 index 0000000..c9601d5 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_126.webp differ diff --git a/assets/animations/idle_paper_plane/frame_127.webp b/assets/animations/idle_paper_plane/frame_127.webp new file mode 100644 index 0000000..b864461 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_127.webp differ diff --git a/assets/animations/idle_paper_plane/frame_128.webp b/assets/animations/idle_paper_plane/frame_128.webp new file mode 100644 index 0000000..4f515dc Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_128.webp differ diff --git a/assets/animations/idle_paper_plane/frame_129.webp b/assets/animations/idle_paper_plane/frame_129.webp new file mode 100644 index 0000000..edc631d Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_129.webp differ diff --git a/assets/animations/idle_paper_plane/frame_130.webp b/assets/animations/idle_paper_plane/frame_130.webp new file mode 100644 index 0000000..93105b8 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_130.webp differ diff --git a/assets/animations/idle_paper_plane/frame_131.webp b/assets/animations/idle_paper_plane/frame_131.webp new file mode 100644 index 0000000..1ff58a0 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_131.webp differ diff --git a/assets/animations/idle_paper_plane/frame_132.webp b/assets/animations/idle_paper_plane/frame_132.webp new file mode 100644 index 0000000..ff7644a Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_132.webp differ diff --git a/assets/animations/idle_paper_plane/frame_133.webp b/assets/animations/idle_paper_plane/frame_133.webp new file mode 100644 index 0000000..d9a8f7d Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_133.webp differ diff --git a/assets/animations/idle_paper_plane/frame_134.webp b/assets/animations/idle_paper_plane/frame_134.webp new file mode 100644 index 0000000..28ebac1 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_134.webp differ diff --git a/assets/animations/idle_paper_plane/frame_135.webp b/assets/animations/idle_paper_plane/frame_135.webp new file mode 100644 index 0000000..d207485 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_135.webp differ diff --git a/assets/animations/idle_paper_plane/frame_136.webp b/assets/animations/idle_paper_plane/frame_136.webp new file mode 100644 index 0000000..c3b2666 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_136.webp differ diff --git a/assets/animations/idle_paper_plane/frame_137.webp b/assets/animations/idle_paper_plane/frame_137.webp new file mode 100644 index 0000000..2193bfa Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_137.webp differ diff --git a/assets/animations/idle_paper_plane/frame_138.webp b/assets/animations/idle_paper_plane/frame_138.webp new file mode 100644 index 0000000..aedb584 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_138.webp differ diff --git a/assets/animations/idle_paper_plane/frame_139.webp b/assets/animations/idle_paper_plane/frame_139.webp new file mode 100644 index 0000000..73b920e Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_139.webp differ diff --git a/assets/animations/idle_paper_plane/frame_140.webp b/assets/animations/idle_paper_plane/frame_140.webp new file mode 100644 index 0000000..37a47a4 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_140.webp differ diff --git a/assets/animations/idle_paper_plane/frame_141.webp b/assets/animations/idle_paper_plane/frame_141.webp new file mode 100644 index 0000000..fc452f9 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_141.webp differ diff --git a/assets/animations/idle_paper_plane/frame_142.webp b/assets/animations/idle_paper_plane/frame_142.webp new file mode 100644 index 0000000..5461ae6 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_142.webp differ diff --git a/assets/animations/idle_paper_plane/frame_143.webp b/assets/animations/idle_paper_plane/frame_143.webp new file mode 100644 index 0000000..bf7231f Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_143.webp differ diff --git a/assets/animations/idle_paper_plane/frame_144.webp b/assets/animations/idle_paper_plane/frame_144.webp new file mode 100644 index 0000000..618b783 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_144.webp differ diff --git a/assets/animations/idle_paper_plane/frame_145.webp b/assets/animations/idle_paper_plane/frame_145.webp new file mode 100644 index 0000000..e02053b Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_145.webp differ diff --git a/assets/animations/idle_paper_plane/frame_146.webp b/assets/animations/idle_paper_plane/frame_146.webp new file mode 100644 index 0000000..b3dcc7a Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_146.webp differ diff --git a/assets/animations/idle_paper_plane/frame_147.webp b/assets/animations/idle_paper_plane/frame_147.webp new file mode 100644 index 0000000..31100ad Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_147.webp differ diff --git a/assets/animations/idle_paper_plane/frame_148.webp b/assets/animations/idle_paper_plane/frame_148.webp new file mode 100644 index 0000000..f816cd7 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_148.webp differ diff --git a/assets/animations/idle_paper_plane/frame_149.webp b/assets/animations/idle_paper_plane/frame_149.webp new file mode 100644 index 0000000..422bbd1 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_149.webp differ diff --git a/assets/animations/idle_paper_plane/frame_150.webp b/assets/animations/idle_paper_plane/frame_150.webp new file mode 100644 index 0000000..eb957ce Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_150.webp differ diff --git a/assets/animations/idle_paper_plane/frame_151.webp b/assets/animations/idle_paper_plane/frame_151.webp new file mode 100644 index 0000000..bb684b2 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_151.webp differ diff --git a/assets/animations/idle_paper_plane/frame_152.webp b/assets/animations/idle_paper_plane/frame_152.webp new file mode 100644 index 0000000..2711467 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_152.webp differ diff --git a/assets/animations/idle_paper_plane/frame_153.webp b/assets/animations/idle_paper_plane/frame_153.webp new file mode 100644 index 0000000..ca6e9f3 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_153.webp differ diff --git a/assets/animations/idle_paper_plane/frame_154.webp b/assets/animations/idle_paper_plane/frame_154.webp new file mode 100644 index 0000000..fe1aa06 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_154.webp differ diff --git a/assets/animations/idle_paper_plane/frame_155.webp b/assets/animations/idle_paper_plane/frame_155.webp new file mode 100644 index 0000000..5137459 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_155.webp differ diff --git a/assets/animations/idle_paper_plane/frame_156.webp b/assets/animations/idle_paper_plane/frame_156.webp new file mode 100644 index 0000000..8d9a2b8 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_156.webp differ diff --git a/assets/animations/idle_paper_plane/frame_157.webp b/assets/animations/idle_paper_plane/frame_157.webp new file mode 100644 index 0000000..24bb4bb Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_157.webp differ diff --git a/assets/animations/idle_paper_plane/frame_158.webp b/assets/animations/idle_paper_plane/frame_158.webp new file mode 100644 index 0000000..12229b4 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_158.webp differ diff --git a/assets/animations/idle_paper_plane/frame_159.webp b/assets/animations/idle_paper_plane/frame_159.webp new file mode 100644 index 0000000..547d7ff Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_159.webp differ diff --git a/assets/animations/idle_paper_plane/frame_160.webp b/assets/animations/idle_paper_plane/frame_160.webp new file mode 100644 index 0000000..680e676 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_160.webp differ diff --git a/assets/animations/idle_paper_plane/frame_161.webp b/assets/animations/idle_paper_plane/frame_161.webp new file mode 100644 index 0000000..817a22a Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_161.webp differ diff --git a/assets/animations/idle_paper_plane/frame_162.webp b/assets/animations/idle_paper_plane/frame_162.webp new file mode 100644 index 0000000..db94a66 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_162.webp differ diff --git a/assets/animations/idle_paper_plane/frame_163.webp b/assets/animations/idle_paper_plane/frame_163.webp new file mode 100644 index 0000000..b2d6a0f Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_163.webp differ diff --git a/assets/animations/idle_paper_plane/frame_164.webp b/assets/animations/idle_paper_plane/frame_164.webp new file mode 100644 index 0000000..f6b24b3 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_164.webp differ diff --git a/assets/animations/idle_paper_plane/frame_165.webp b/assets/animations/idle_paper_plane/frame_165.webp new file mode 100644 index 0000000..36d336b Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_165.webp differ diff --git a/assets/animations/idle_paper_plane/frame_166.webp b/assets/animations/idle_paper_plane/frame_166.webp new file mode 100644 index 0000000..a5b57a3 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_166.webp differ diff --git a/assets/animations/idle_paper_plane/frame_167.webp b/assets/animations/idle_paper_plane/frame_167.webp new file mode 100644 index 0000000..d6099f5 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_167.webp differ diff --git a/assets/animations/idle_paper_plane/frame_168.webp b/assets/animations/idle_paper_plane/frame_168.webp new file mode 100644 index 0000000..3d30ff0 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_168.webp differ diff --git a/assets/animations/idle_paper_plane/frame_169.webp b/assets/animations/idle_paper_plane/frame_169.webp new file mode 100644 index 0000000..420d48c Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_169.webp differ diff --git a/assets/animations/idle_paper_plane/frame_170.webp b/assets/animations/idle_paper_plane/frame_170.webp new file mode 100644 index 0000000..bca2d9b Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_170.webp differ diff --git a/assets/animations/idle_paper_plane/frame_171.webp b/assets/animations/idle_paper_plane/frame_171.webp new file mode 100644 index 0000000..e9c3c3c Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_171.webp differ diff --git a/assets/animations/idle_paper_plane/frame_172.webp b/assets/animations/idle_paper_plane/frame_172.webp new file mode 100644 index 0000000..e2571a4 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_172.webp differ diff --git a/assets/animations/idle_paper_plane/frame_173.webp b/assets/animations/idle_paper_plane/frame_173.webp new file mode 100644 index 0000000..2527ce0 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_173.webp differ diff --git a/assets/animations/idle_paper_plane/frame_174.webp b/assets/animations/idle_paper_plane/frame_174.webp new file mode 100644 index 0000000..941612a Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_174.webp differ diff --git a/assets/animations/idle_paper_plane/frame_175.webp b/assets/animations/idle_paper_plane/frame_175.webp new file mode 100644 index 0000000..63ceb45 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_175.webp differ diff --git a/assets/animations/idle_paper_plane/frame_176.webp b/assets/animations/idle_paper_plane/frame_176.webp new file mode 100644 index 0000000..fb25c4e Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_176.webp differ diff --git a/assets/animations/idle_paper_plane/frame_177.webp b/assets/animations/idle_paper_plane/frame_177.webp new file mode 100644 index 0000000..26bdb6a Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_177.webp differ diff --git a/assets/animations/idle_paper_plane/frame_178.webp b/assets/animations/idle_paper_plane/frame_178.webp new file mode 100644 index 0000000..2b484d1 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_178.webp differ diff --git a/assets/animations/idle_paper_plane/frame_179.webp b/assets/animations/idle_paper_plane/frame_179.webp new file mode 100644 index 0000000..93f15bb Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_179.webp differ diff --git a/assets/animations/idle_paper_plane/frame_180.webp b/assets/animations/idle_paper_plane/frame_180.webp new file mode 100644 index 0000000..a97b90c Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_180.webp differ diff --git a/assets/animations/idle_paper_plane/frame_181.webp b/assets/animations/idle_paper_plane/frame_181.webp new file mode 100644 index 0000000..363af6e Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_181.webp differ diff --git a/assets/animations/idle_paper_plane/frame_182.webp b/assets/animations/idle_paper_plane/frame_182.webp new file mode 100644 index 0000000..d80b920 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_182.webp differ diff --git a/assets/animations/idle_paper_plane/frame_183.webp b/assets/animations/idle_paper_plane/frame_183.webp new file mode 100644 index 0000000..efe3861 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_183.webp differ diff --git a/assets/animations/idle_paper_plane/frame_184.webp b/assets/animations/idle_paper_plane/frame_184.webp new file mode 100644 index 0000000..5b4b81b Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_184.webp differ diff --git a/assets/animations/idle_paper_plane/frame_185.webp b/assets/animations/idle_paper_plane/frame_185.webp new file mode 100644 index 0000000..1657147 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_185.webp differ diff --git a/assets/animations/idle_paper_plane/frame_186.webp b/assets/animations/idle_paper_plane/frame_186.webp new file mode 100644 index 0000000..db3c179 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_186.webp differ diff --git a/assets/animations/idle_paper_plane/frame_187.webp b/assets/animations/idle_paper_plane/frame_187.webp new file mode 100644 index 0000000..7f8e979 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_187.webp differ diff --git a/assets/animations/idle_paper_plane/frame_188.webp b/assets/animations/idle_paper_plane/frame_188.webp new file mode 100644 index 0000000..1b0b6e1 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_188.webp differ diff --git a/assets/animations/idle_paper_plane/frame_189.webp b/assets/animations/idle_paper_plane/frame_189.webp new file mode 100644 index 0000000..1dec596 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_189.webp differ diff --git a/assets/animations/idle_paper_plane/frame_190.webp b/assets/animations/idle_paper_plane/frame_190.webp new file mode 100644 index 0000000..900eee4 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_190.webp differ diff --git a/assets/animations/idle_paper_plane/frame_191.webp b/assets/animations/idle_paper_plane/frame_191.webp new file mode 100644 index 0000000..acdc571 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_191.webp differ diff --git a/assets/animations/idle_paper_plane/frame_192.webp b/assets/animations/idle_paper_plane/frame_192.webp new file mode 100644 index 0000000..ed7ac58 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_192.webp differ diff --git a/assets/animations/idle_paper_plane/frame_193.webp b/assets/animations/idle_paper_plane/frame_193.webp new file mode 100644 index 0000000..30b6067 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_193.webp differ diff --git a/assets/animations/idle_paper_plane/frame_194.webp b/assets/animations/idle_paper_plane/frame_194.webp new file mode 100644 index 0000000..678c94a Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_194.webp differ diff --git a/assets/animations/idle_paper_plane/frame_195.webp b/assets/animations/idle_paper_plane/frame_195.webp new file mode 100644 index 0000000..b8be2c0 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_195.webp differ diff --git a/assets/animations/idle_paper_plane/frame_196.webp b/assets/animations/idle_paper_plane/frame_196.webp new file mode 100644 index 0000000..5c05df2 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_196.webp differ diff --git a/assets/animations/idle_paper_plane/frame_197.webp b/assets/animations/idle_paper_plane/frame_197.webp new file mode 100644 index 0000000..1a4a0ee Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_197.webp differ diff --git a/assets/animations/idle_paper_plane/frame_198.webp b/assets/animations/idle_paper_plane/frame_198.webp new file mode 100644 index 0000000..27288cf Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_198.webp differ diff --git a/assets/animations/idle_paper_plane/frame_199.webp b/assets/animations/idle_paper_plane/frame_199.webp new file mode 100644 index 0000000..3f85421 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_199.webp differ diff --git a/assets/animations/idle_paper_plane/frame_200.webp b/assets/animations/idle_paper_plane/frame_200.webp new file mode 100644 index 0000000..2523326 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_200.webp differ diff --git a/assets/animations/idle_paper_plane/frame_201.webp b/assets/animations/idle_paper_plane/frame_201.webp new file mode 100644 index 0000000..524148c Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_201.webp differ diff --git a/assets/animations/idle_paper_plane/frame_202.webp b/assets/animations/idle_paper_plane/frame_202.webp new file mode 100644 index 0000000..5da8586 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_202.webp differ diff --git a/assets/animations/idle_paper_plane/frame_203.webp b/assets/animations/idle_paper_plane/frame_203.webp new file mode 100644 index 0000000..d9d991d Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_203.webp differ diff --git a/assets/animations/idle_paper_plane/frame_204.webp b/assets/animations/idle_paper_plane/frame_204.webp new file mode 100644 index 0000000..70ae00b Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_204.webp differ diff --git a/assets/animations/idle_paper_plane/frame_205.webp b/assets/animations/idle_paper_plane/frame_205.webp new file mode 100644 index 0000000..f5af416 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_205.webp differ diff --git a/assets/animations/idle_paper_plane/frame_206.webp b/assets/animations/idle_paper_plane/frame_206.webp new file mode 100644 index 0000000..d2d6310 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_206.webp differ diff --git a/assets/animations/idle_paper_plane/frame_207.webp b/assets/animations/idle_paper_plane/frame_207.webp new file mode 100644 index 0000000..b6bcc84 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_207.webp differ diff --git a/assets/animations/idle_paper_plane/frame_208.webp b/assets/animations/idle_paper_plane/frame_208.webp new file mode 100644 index 0000000..b5858da Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_208.webp differ diff --git a/assets/animations/idle_paper_plane/frame_209.webp b/assets/animations/idle_paper_plane/frame_209.webp new file mode 100644 index 0000000..869b6ce Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_209.webp differ diff --git a/assets/animations/idle_paper_plane/frame_210.webp b/assets/animations/idle_paper_plane/frame_210.webp new file mode 100644 index 0000000..4df94dc Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_210.webp differ diff --git a/assets/animations/idle_paper_plane/frame_211.webp b/assets/animations/idle_paper_plane/frame_211.webp new file mode 100644 index 0000000..ba250ce Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_211.webp differ diff --git a/assets/animations/idle_paper_plane/frame_212.webp b/assets/animations/idle_paper_plane/frame_212.webp new file mode 100644 index 0000000..b494113 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_212.webp differ diff --git a/assets/animations/idle_paper_plane/frame_213.webp b/assets/animations/idle_paper_plane/frame_213.webp new file mode 100644 index 0000000..5643c29 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_213.webp differ diff --git a/assets/animations/idle_paper_plane/frame_214.webp b/assets/animations/idle_paper_plane/frame_214.webp new file mode 100644 index 0000000..242c0bb Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_214.webp differ diff --git a/assets/animations/idle_paper_plane/frame_215.webp b/assets/animations/idle_paper_plane/frame_215.webp new file mode 100644 index 0000000..bd356d3 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_215.webp differ diff --git a/assets/animations/idle_paper_plane/frame_216.webp b/assets/animations/idle_paper_plane/frame_216.webp new file mode 100644 index 0000000..520c1b5 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_216.webp differ diff --git a/assets/animations/idle_paper_plane/frame_217.webp b/assets/animations/idle_paper_plane/frame_217.webp new file mode 100644 index 0000000..c796d84 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_217.webp differ diff --git a/assets/animations/idle_paper_plane/frame_218.webp b/assets/animations/idle_paper_plane/frame_218.webp new file mode 100644 index 0000000..78d88e6 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_218.webp differ diff --git a/assets/animations/idle_paper_plane/frame_219.webp b/assets/animations/idle_paper_plane/frame_219.webp new file mode 100644 index 0000000..fddef65 Binary files /dev/null and b/assets/animations/idle_paper_plane/frame_219.webp differ diff --git a/assets/animations/idle_peek/frame_000.webp b/assets/animations/idle_peek/frame_000.webp new file mode 100644 index 0000000..f410e37 Binary files /dev/null and b/assets/animations/idle_peek/frame_000.webp differ diff --git a/assets/animations/idle_peek/frame_001.webp b/assets/animations/idle_peek/frame_001.webp new file mode 100644 index 0000000..259e0b2 Binary files /dev/null and b/assets/animations/idle_peek/frame_001.webp differ diff --git a/assets/animations/idle_peek/frame_002.webp b/assets/animations/idle_peek/frame_002.webp new file mode 100644 index 0000000..25363a3 Binary files /dev/null and b/assets/animations/idle_peek/frame_002.webp differ diff --git a/assets/animations/idle_peek/frame_003.webp b/assets/animations/idle_peek/frame_003.webp new file mode 100644 index 0000000..348d354 Binary files /dev/null and b/assets/animations/idle_peek/frame_003.webp differ diff --git a/assets/animations/idle_peek/frame_004.webp b/assets/animations/idle_peek/frame_004.webp new file mode 100644 index 0000000..922b8aa Binary files /dev/null and b/assets/animations/idle_peek/frame_004.webp differ diff --git a/assets/animations/idle_peek/frame_005.webp b/assets/animations/idle_peek/frame_005.webp new file mode 100644 index 0000000..dad4b43 Binary files /dev/null and b/assets/animations/idle_peek/frame_005.webp differ diff --git a/assets/animations/idle_peek/frame_006.webp b/assets/animations/idle_peek/frame_006.webp new file mode 100644 index 0000000..b0c36e5 Binary files /dev/null and b/assets/animations/idle_peek/frame_006.webp differ diff --git a/assets/animations/idle_peek/frame_007.webp b/assets/animations/idle_peek/frame_007.webp new file mode 100644 index 0000000..b9b8d2c Binary files /dev/null and b/assets/animations/idle_peek/frame_007.webp differ diff --git a/assets/animations/idle_peek/frame_008.webp b/assets/animations/idle_peek/frame_008.webp new file mode 100644 index 0000000..b7abd9f Binary files /dev/null and b/assets/animations/idle_peek/frame_008.webp differ diff --git a/assets/animations/idle_peek/frame_009.webp b/assets/animations/idle_peek/frame_009.webp new file mode 100644 index 0000000..3eef3eb Binary files /dev/null and b/assets/animations/idle_peek/frame_009.webp differ diff --git a/assets/animations/idle_peek/frame_010.webp b/assets/animations/idle_peek/frame_010.webp new file mode 100644 index 0000000..fc701bc Binary files /dev/null and b/assets/animations/idle_peek/frame_010.webp differ diff --git a/assets/animations/idle_peek/frame_011.webp b/assets/animations/idle_peek/frame_011.webp new file mode 100644 index 0000000..79424b9 Binary files /dev/null and b/assets/animations/idle_peek/frame_011.webp differ diff --git a/assets/animations/idle_peek/frame_012.webp b/assets/animations/idle_peek/frame_012.webp new file mode 100644 index 0000000..d9d709d Binary files /dev/null and b/assets/animations/idle_peek/frame_012.webp differ diff --git a/assets/animations/idle_peek/frame_013.webp b/assets/animations/idle_peek/frame_013.webp new file mode 100644 index 0000000..b70979e Binary files /dev/null and b/assets/animations/idle_peek/frame_013.webp differ diff --git a/assets/animations/idle_peek/frame_014.webp b/assets/animations/idle_peek/frame_014.webp new file mode 100644 index 0000000..1cc4024 Binary files /dev/null and b/assets/animations/idle_peek/frame_014.webp differ diff --git a/assets/animations/idle_peek/frame_015.webp b/assets/animations/idle_peek/frame_015.webp new file mode 100644 index 0000000..7d3096c Binary files /dev/null and b/assets/animations/idle_peek/frame_015.webp differ diff --git a/assets/animations/idle_peek/frame_016.webp b/assets/animations/idle_peek/frame_016.webp new file mode 100644 index 0000000..f5a738a Binary files /dev/null and b/assets/animations/idle_peek/frame_016.webp differ diff --git a/assets/animations/idle_peek/frame_017.webp b/assets/animations/idle_peek/frame_017.webp new file mode 100644 index 0000000..dfc5705 Binary files /dev/null and b/assets/animations/idle_peek/frame_017.webp differ diff --git a/assets/animations/idle_peek/frame_018.webp b/assets/animations/idle_peek/frame_018.webp new file mode 100644 index 0000000..b7f8185 Binary files /dev/null and b/assets/animations/idle_peek/frame_018.webp differ diff --git a/assets/animations/idle_peek/frame_019.webp b/assets/animations/idle_peek/frame_019.webp new file mode 100644 index 0000000..c3563c5 Binary files /dev/null and b/assets/animations/idle_peek/frame_019.webp differ diff --git a/assets/animations/idle_peek/frame_020.webp b/assets/animations/idle_peek/frame_020.webp new file mode 100644 index 0000000..08483ca Binary files /dev/null and b/assets/animations/idle_peek/frame_020.webp differ diff --git a/assets/animations/idle_peek/frame_021.webp b/assets/animations/idle_peek/frame_021.webp new file mode 100644 index 0000000..7b34188 Binary files /dev/null and b/assets/animations/idle_peek/frame_021.webp differ diff --git a/assets/animations/idle_peek/frame_022.webp b/assets/animations/idle_peek/frame_022.webp new file mode 100644 index 0000000..e017f4a Binary files /dev/null and b/assets/animations/idle_peek/frame_022.webp differ diff --git a/assets/animations/idle_peek/frame_023.webp b/assets/animations/idle_peek/frame_023.webp new file mode 100644 index 0000000..34a70b1 Binary files /dev/null and b/assets/animations/idle_peek/frame_023.webp differ diff --git a/assets/animations/idle_peek/frame_024.webp b/assets/animations/idle_peek/frame_024.webp new file mode 100644 index 0000000..80293c7 Binary files /dev/null and b/assets/animations/idle_peek/frame_024.webp differ diff --git a/assets/animations/idle_peek/frame_025.webp b/assets/animations/idle_peek/frame_025.webp new file mode 100644 index 0000000..f7163dc Binary files /dev/null and b/assets/animations/idle_peek/frame_025.webp differ diff --git a/assets/animations/idle_peek/frame_026.webp b/assets/animations/idle_peek/frame_026.webp new file mode 100644 index 0000000..c4956e0 Binary files /dev/null and b/assets/animations/idle_peek/frame_026.webp differ diff --git a/assets/animations/idle_peek/frame_027.webp b/assets/animations/idle_peek/frame_027.webp new file mode 100644 index 0000000..30f4494 Binary files /dev/null and b/assets/animations/idle_peek/frame_027.webp differ diff --git a/assets/animations/idle_peek/frame_028.webp b/assets/animations/idle_peek/frame_028.webp new file mode 100644 index 0000000..db8ef1c Binary files /dev/null and b/assets/animations/idle_peek/frame_028.webp differ diff --git a/assets/animations/idle_peek/frame_029.webp b/assets/animations/idle_peek/frame_029.webp new file mode 100644 index 0000000..6b1c73e Binary files /dev/null and b/assets/animations/idle_peek/frame_029.webp differ diff --git a/assets/animations/idle_peek/frame_030.webp b/assets/animations/idle_peek/frame_030.webp new file mode 100644 index 0000000..6f289f5 Binary files /dev/null and b/assets/animations/idle_peek/frame_030.webp differ diff --git a/assets/animations/idle_peek/frame_031.webp b/assets/animations/idle_peek/frame_031.webp new file mode 100644 index 0000000..a38e0e6 Binary files /dev/null and b/assets/animations/idle_peek/frame_031.webp differ diff --git a/assets/animations/idle_peek/frame_032.webp b/assets/animations/idle_peek/frame_032.webp new file mode 100644 index 0000000..9e6ff76 Binary files /dev/null and b/assets/animations/idle_peek/frame_032.webp differ diff --git a/assets/animations/idle_peek/frame_033.webp b/assets/animations/idle_peek/frame_033.webp new file mode 100644 index 0000000..3bbdb93 Binary files /dev/null and b/assets/animations/idle_peek/frame_033.webp differ diff --git a/assets/animations/idle_peek/frame_034.webp b/assets/animations/idle_peek/frame_034.webp new file mode 100644 index 0000000..ee2a443 Binary files /dev/null and b/assets/animations/idle_peek/frame_034.webp differ diff --git a/assets/animations/idle_peek/frame_035.webp b/assets/animations/idle_peek/frame_035.webp new file mode 100644 index 0000000..ce2b303 Binary files /dev/null and b/assets/animations/idle_peek/frame_035.webp differ diff --git a/assets/animations/idle_peek/frame_036.webp b/assets/animations/idle_peek/frame_036.webp new file mode 100644 index 0000000..22f4bcc Binary files /dev/null and b/assets/animations/idle_peek/frame_036.webp differ diff --git a/assets/animations/idle_peek/frame_037.webp b/assets/animations/idle_peek/frame_037.webp new file mode 100644 index 0000000..79d1e32 Binary files /dev/null and b/assets/animations/idle_peek/frame_037.webp differ diff --git a/assets/animations/idle_peek/frame_038.webp b/assets/animations/idle_peek/frame_038.webp new file mode 100644 index 0000000..84a9339 Binary files /dev/null and b/assets/animations/idle_peek/frame_038.webp differ diff --git a/assets/animations/idle_peek/frame_039.webp b/assets/animations/idle_peek/frame_039.webp new file mode 100644 index 0000000..5cfe5ac Binary files /dev/null and b/assets/animations/idle_peek/frame_039.webp differ diff --git a/assets/animations/idle_rock/frame_000.webp b/assets/animations/idle_rock/frame_000.webp new file mode 100644 index 0000000..3f703f7 Binary files /dev/null and b/assets/animations/idle_rock/frame_000.webp differ diff --git a/assets/animations/idle_rock/frame_001.webp b/assets/animations/idle_rock/frame_001.webp new file mode 100644 index 0000000..c293089 Binary files /dev/null and b/assets/animations/idle_rock/frame_001.webp differ diff --git a/assets/animations/idle_rock/frame_002.webp b/assets/animations/idle_rock/frame_002.webp new file mode 100644 index 0000000..31c7dcc Binary files /dev/null and b/assets/animations/idle_rock/frame_002.webp differ diff --git a/assets/animations/idle_rock/frame_003.webp b/assets/animations/idle_rock/frame_003.webp new file mode 100644 index 0000000..3c91675 Binary files /dev/null and b/assets/animations/idle_rock/frame_003.webp differ diff --git a/assets/animations/idle_rock/frame_004.webp b/assets/animations/idle_rock/frame_004.webp new file mode 100644 index 0000000..b3b5a50 Binary files /dev/null and b/assets/animations/idle_rock/frame_004.webp differ diff --git a/assets/animations/idle_rock/frame_005.webp b/assets/animations/idle_rock/frame_005.webp new file mode 100644 index 0000000..12a667a Binary files /dev/null and b/assets/animations/idle_rock/frame_005.webp differ diff --git a/assets/animations/idle_rock/frame_006.webp b/assets/animations/idle_rock/frame_006.webp new file mode 100644 index 0000000..835b44d Binary files /dev/null and b/assets/animations/idle_rock/frame_006.webp differ diff --git a/assets/animations/idle_rock/frame_007.webp b/assets/animations/idle_rock/frame_007.webp new file mode 100644 index 0000000..0a393d5 Binary files /dev/null and b/assets/animations/idle_rock/frame_007.webp differ diff --git a/assets/animations/idle_rock/frame_008.webp b/assets/animations/idle_rock/frame_008.webp new file mode 100644 index 0000000..148e81a Binary files /dev/null and b/assets/animations/idle_rock/frame_008.webp differ diff --git a/assets/animations/idle_rock/frame_009.webp b/assets/animations/idle_rock/frame_009.webp new file mode 100644 index 0000000..1aa98fd Binary files /dev/null and b/assets/animations/idle_rock/frame_009.webp differ diff --git a/assets/animations/idle_rock/frame_010.webp b/assets/animations/idle_rock/frame_010.webp new file mode 100644 index 0000000..5df894d Binary files /dev/null and b/assets/animations/idle_rock/frame_010.webp differ diff --git a/assets/animations/idle_rock/frame_011.webp b/assets/animations/idle_rock/frame_011.webp new file mode 100644 index 0000000..1ac532c Binary files /dev/null and b/assets/animations/idle_rock/frame_011.webp differ diff --git a/assets/animations/idle_rock/frame_012.webp b/assets/animations/idle_rock/frame_012.webp new file mode 100644 index 0000000..ef06a6e Binary files /dev/null and b/assets/animations/idle_rock/frame_012.webp differ diff --git a/assets/animations/idle_rock/frame_013.webp b/assets/animations/idle_rock/frame_013.webp new file mode 100644 index 0000000..bffdd16 Binary files /dev/null and b/assets/animations/idle_rock/frame_013.webp differ diff --git a/assets/animations/idle_rock/frame_014.webp b/assets/animations/idle_rock/frame_014.webp new file mode 100644 index 0000000..5c5e46d Binary files /dev/null and b/assets/animations/idle_rock/frame_014.webp differ diff --git a/assets/animations/idle_rock/frame_015.webp b/assets/animations/idle_rock/frame_015.webp new file mode 100644 index 0000000..6e6b959 Binary files /dev/null and b/assets/animations/idle_rock/frame_015.webp differ diff --git a/assets/animations/idle_rock/frame_016.webp b/assets/animations/idle_rock/frame_016.webp new file mode 100644 index 0000000..b03cb0a Binary files /dev/null and b/assets/animations/idle_rock/frame_016.webp differ diff --git a/assets/animations/idle_rock/frame_017.webp b/assets/animations/idle_rock/frame_017.webp new file mode 100644 index 0000000..3ce1ac6 Binary files /dev/null and b/assets/animations/idle_rock/frame_017.webp differ diff --git a/assets/animations/idle_rock/frame_018.webp b/assets/animations/idle_rock/frame_018.webp new file mode 100644 index 0000000..906ae60 Binary files /dev/null and b/assets/animations/idle_rock/frame_018.webp differ diff --git a/assets/animations/idle_rock/frame_019.webp b/assets/animations/idle_rock/frame_019.webp new file mode 100644 index 0000000..bff05c4 Binary files /dev/null and b/assets/animations/idle_rock/frame_019.webp differ diff --git a/assets/animations/idle_rock/frame_020.webp b/assets/animations/idle_rock/frame_020.webp new file mode 100644 index 0000000..c379b1b Binary files /dev/null and b/assets/animations/idle_rock/frame_020.webp differ diff --git a/assets/animations/idle_rock/frame_021.webp b/assets/animations/idle_rock/frame_021.webp new file mode 100644 index 0000000..1085e8c Binary files /dev/null and b/assets/animations/idle_rock/frame_021.webp differ diff --git a/assets/animations/idle_rock/frame_022.webp b/assets/animations/idle_rock/frame_022.webp new file mode 100644 index 0000000..c4d05df Binary files /dev/null and b/assets/animations/idle_rock/frame_022.webp differ diff --git a/assets/animations/idle_rock/frame_023.webp b/assets/animations/idle_rock/frame_023.webp new file mode 100644 index 0000000..01d2346 Binary files /dev/null and b/assets/animations/idle_rock/frame_023.webp differ diff --git a/assets/animations/idle_rock/frame_024.webp b/assets/animations/idle_rock/frame_024.webp new file mode 100644 index 0000000..4c086ac Binary files /dev/null and b/assets/animations/idle_rock/frame_024.webp differ diff --git a/assets/animations/idle_rock/frame_025.webp b/assets/animations/idle_rock/frame_025.webp new file mode 100644 index 0000000..9c6cea1 Binary files /dev/null and b/assets/animations/idle_rock/frame_025.webp differ diff --git a/assets/animations/idle_rock/frame_026.webp b/assets/animations/idle_rock/frame_026.webp new file mode 100644 index 0000000..34df55c Binary files /dev/null and b/assets/animations/idle_rock/frame_026.webp differ diff --git a/assets/animations/idle_rock/frame_027.webp b/assets/animations/idle_rock/frame_027.webp new file mode 100644 index 0000000..2895319 Binary files /dev/null and b/assets/animations/idle_rock/frame_027.webp differ diff --git a/assets/animations/idle_rock/frame_028.webp b/assets/animations/idle_rock/frame_028.webp new file mode 100644 index 0000000..eac7d32 Binary files /dev/null and b/assets/animations/idle_rock/frame_028.webp differ diff --git a/assets/animations/idle_rock/frame_029.webp b/assets/animations/idle_rock/frame_029.webp new file mode 100644 index 0000000..a76c9fe Binary files /dev/null and b/assets/animations/idle_rock/frame_029.webp differ diff --git a/assets/animations/idle_squint/frame_000.webp b/assets/animations/idle_squint/frame_000.webp new file mode 100644 index 0000000..f103baf Binary files /dev/null and b/assets/animations/idle_squint/frame_000.webp differ diff --git a/assets/animations/idle_squint/frame_001.webp b/assets/animations/idle_squint/frame_001.webp new file mode 100644 index 0000000..9fcdfec Binary files /dev/null and b/assets/animations/idle_squint/frame_001.webp differ diff --git a/assets/animations/idle_squint/frame_002.webp b/assets/animations/idle_squint/frame_002.webp new file mode 100644 index 0000000..78e1a60 Binary files /dev/null and b/assets/animations/idle_squint/frame_002.webp differ diff --git a/assets/animations/idle_squint/frame_003.webp b/assets/animations/idle_squint/frame_003.webp new file mode 100644 index 0000000..f1cdfa9 Binary files /dev/null and b/assets/animations/idle_squint/frame_003.webp differ diff --git a/assets/animations/idle_squint/frame_004.webp b/assets/animations/idle_squint/frame_004.webp new file mode 100644 index 0000000..9421c87 Binary files /dev/null and b/assets/animations/idle_squint/frame_004.webp differ diff --git a/assets/animations/idle_squint/frame_005.webp b/assets/animations/idle_squint/frame_005.webp new file mode 100644 index 0000000..109f1be Binary files /dev/null and b/assets/animations/idle_squint/frame_005.webp differ diff --git a/assets/animations/idle_squint/frame_006.webp b/assets/animations/idle_squint/frame_006.webp new file mode 100644 index 0000000..21e10ae Binary files /dev/null and b/assets/animations/idle_squint/frame_006.webp differ diff --git a/assets/animations/idle_squint/frame_007.webp b/assets/animations/idle_squint/frame_007.webp new file mode 100644 index 0000000..6e098bb Binary files /dev/null and b/assets/animations/idle_squint/frame_007.webp differ diff --git a/assets/animations/idle_squint/frame_008.webp b/assets/animations/idle_squint/frame_008.webp new file mode 100644 index 0000000..92341ba Binary files /dev/null and b/assets/animations/idle_squint/frame_008.webp differ diff --git a/assets/animations/idle_squint/frame_009.webp b/assets/animations/idle_squint/frame_009.webp new file mode 100644 index 0000000..e5ba590 Binary files /dev/null and b/assets/animations/idle_squint/frame_009.webp differ diff --git a/assets/animations/idle_squint/frame_010.webp b/assets/animations/idle_squint/frame_010.webp new file mode 100644 index 0000000..c2856a3 Binary files /dev/null and b/assets/animations/idle_squint/frame_010.webp differ diff --git a/assets/animations/idle_squint/frame_011.webp b/assets/animations/idle_squint/frame_011.webp new file mode 100644 index 0000000..b516eaa Binary files /dev/null and b/assets/animations/idle_squint/frame_011.webp differ diff --git a/assets/animations/idle_squint/frame_012.webp b/assets/animations/idle_squint/frame_012.webp new file mode 100644 index 0000000..b6d33c6 Binary files /dev/null and b/assets/animations/idle_squint/frame_012.webp differ diff --git a/assets/animations/idle_squint/frame_013.webp b/assets/animations/idle_squint/frame_013.webp new file mode 100644 index 0000000..204af37 Binary files /dev/null and b/assets/animations/idle_squint/frame_013.webp differ diff --git a/assets/animations/idle_squint/frame_014.webp b/assets/animations/idle_squint/frame_014.webp new file mode 100644 index 0000000..6f04839 Binary files /dev/null and b/assets/animations/idle_squint/frame_014.webp differ diff --git a/assets/animations/idle_squint/frame_015.webp b/assets/animations/idle_squint/frame_015.webp new file mode 100644 index 0000000..c199d43 Binary files /dev/null and b/assets/animations/idle_squint/frame_015.webp differ diff --git a/assets/animations/idle_squint/frame_016.webp b/assets/animations/idle_squint/frame_016.webp new file mode 100644 index 0000000..1975306 Binary files /dev/null and b/assets/animations/idle_squint/frame_016.webp differ diff --git a/assets/animations/idle_squint/frame_017.webp b/assets/animations/idle_squint/frame_017.webp new file mode 100644 index 0000000..4821f89 Binary files /dev/null and b/assets/animations/idle_squint/frame_017.webp differ diff --git a/assets/animations/idle_squint/frame_018.webp b/assets/animations/idle_squint/frame_018.webp new file mode 100644 index 0000000..350f210 Binary files /dev/null and b/assets/animations/idle_squint/frame_018.webp differ diff --git a/assets/animations/idle_squint/frame_019.webp b/assets/animations/idle_squint/frame_019.webp new file mode 100644 index 0000000..492a7c3 Binary files /dev/null and b/assets/animations/idle_squint/frame_019.webp differ diff --git a/assets/animations/idle_squint/frame_020.webp b/assets/animations/idle_squint/frame_020.webp new file mode 100644 index 0000000..f25fa28 Binary files /dev/null and b/assets/animations/idle_squint/frame_020.webp differ diff --git a/assets/animations/idle_squint/frame_021.webp b/assets/animations/idle_squint/frame_021.webp new file mode 100644 index 0000000..d5ba8d5 Binary files /dev/null and b/assets/animations/idle_squint/frame_021.webp differ diff --git a/assets/animations/idle_squint/frame_022.webp b/assets/animations/idle_squint/frame_022.webp new file mode 100644 index 0000000..e18b485 Binary files /dev/null and b/assets/animations/idle_squint/frame_022.webp differ diff --git a/assets/animations/idle_squint/frame_023.webp b/assets/animations/idle_squint/frame_023.webp new file mode 100644 index 0000000..a0cf6bf Binary files /dev/null and b/assets/animations/idle_squint/frame_023.webp differ diff --git a/assets/animations/idle_squint/frame_024.webp b/assets/animations/idle_squint/frame_024.webp new file mode 100644 index 0000000..eacff53 Binary files /dev/null and b/assets/animations/idle_squint/frame_024.webp differ diff --git a/assets/animations/idle_squint/frame_025.webp b/assets/animations/idle_squint/frame_025.webp new file mode 100644 index 0000000..91fc8e4 Binary files /dev/null and b/assets/animations/idle_squint/frame_025.webp differ diff --git a/assets/animations/idle_squint/frame_026.webp b/assets/animations/idle_squint/frame_026.webp new file mode 100644 index 0000000..ffb9052 Binary files /dev/null and b/assets/animations/idle_squint/frame_026.webp differ diff --git a/assets/animations/idle_squint/frame_027.webp b/assets/animations/idle_squint/frame_027.webp new file mode 100644 index 0000000..3f8957a Binary files /dev/null and b/assets/animations/idle_squint/frame_027.webp differ diff --git a/assets/animations/idle_squint/frame_028.webp b/assets/animations/idle_squint/frame_028.webp new file mode 100644 index 0000000..109ba64 Binary files /dev/null and b/assets/animations/idle_squint/frame_028.webp differ diff --git a/assets/animations/idle_squint/frame_029.webp b/assets/animations/idle_squint/frame_029.webp new file mode 100644 index 0000000..aeaa104 Binary files /dev/null and b/assets/animations/idle_squint/frame_029.webp differ diff --git a/assets/animations/idle_squint/frame_030.webp b/assets/animations/idle_squint/frame_030.webp new file mode 100644 index 0000000..fe09f30 Binary files /dev/null and b/assets/animations/idle_squint/frame_030.webp differ diff --git a/assets/animations/idle_squint/frame_031.webp b/assets/animations/idle_squint/frame_031.webp new file mode 100644 index 0000000..835e3ad Binary files /dev/null and b/assets/animations/idle_squint/frame_031.webp differ diff --git a/assets/animations/idle_squint/frame_032.webp b/assets/animations/idle_squint/frame_032.webp new file mode 100644 index 0000000..079162c Binary files /dev/null and b/assets/animations/idle_squint/frame_032.webp differ diff --git a/assets/animations/idle_squint/frame_033.webp b/assets/animations/idle_squint/frame_033.webp new file mode 100644 index 0000000..b5fe8fe Binary files /dev/null and b/assets/animations/idle_squint/frame_033.webp differ diff --git a/assets/animations/idle_squint/frame_034.webp b/assets/animations/idle_squint/frame_034.webp new file mode 100644 index 0000000..2cc1a04 Binary files /dev/null and b/assets/animations/idle_squint/frame_034.webp differ diff --git a/assets/animations/idle_squint/frame_035.webp b/assets/animations/idle_squint/frame_035.webp new file mode 100644 index 0000000..53e7c07 Binary files /dev/null and b/assets/animations/idle_squint/frame_035.webp differ diff --git a/assets/animations/idle_squint/frame_036.webp b/assets/animations/idle_squint/frame_036.webp new file mode 100644 index 0000000..e334f66 Binary files /dev/null and b/assets/animations/idle_squint/frame_036.webp differ diff --git a/assets/animations/idle_squint/frame_037.webp b/assets/animations/idle_squint/frame_037.webp new file mode 100644 index 0000000..fa46b9d Binary files /dev/null and b/assets/animations/idle_squint/frame_037.webp differ diff --git a/assets/animations/idle_squint/frame_038.webp b/assets/animations/idle_squint/frame_038.webp new file mode 100644 index 0000000..bc405b9 Binary files /dev/null and b/assets/animations/idle_squint/frame_038.webp differ diff --git a/assets/animations/idle_squint/frame_039.webp b/assets/animations/idle_squint/frame_039.webp new file mode 100644 index 0000000..bc9f571 Binary files /dev/null and b/assets/animations/idle_squint/frame_039.webp differ diff --git a/assets/animations/idle_squint/frame_040.webp b/assets/animations/idle_squint/frame_040.webp new file mode 100644 index 0000000..7cf90e0 Binary files /dev/null and b/assets/animations/idle_squint/frame_040.webp differ diff --git a/assets/animations/idle_squint/frame_041.webp b/assets/animations/idle_squint/frame_041.webp new file mode 100644 index 0000000..b33f7fb Binary files /dev/null and b/assets/animations/idle_squint/frame_041.webp differ diff --git a/assets/animations/idle_squint/frame_042.webp b/assets/animations/idle_squint/frame_042.webp new file mode 100644 index 0000000..b118039 Binary files /dev/null and b/assets/animations/idle_squint/frame_042.webp differ diff --git a/assets/animations/idle_squint/frame_043.webp b/assets/animations/idle_squint/frame_043.webp new file mode 100644 index 0000000..9fe4a72 Binary files /dev/null and b/assets/animations/idle_squint/frame_043.webp differ diff --git a/assets/animations/idle_squint/frame_044.webp b/assets/animations/idle_squint/frame_044.webp new file mode 100644 index 0000000..f0e9c03 Binary files /dev/null and b/assets/animations/idle_squint/frame_044.webp differ diff --git a/assets/animations/idle_squint/frame_045.webp b/assets/animations/idle_squint/frame_045.webp new file mode 100644 index 0000000..a20d7a3 Binary files /dev/null and b/assets/animations/idle_squint/frame_045.webp differ diff --git a/assets/animations/idle_squint/frame_046.webp b/assets/animations/idle_squint/frame_046.webp new file mode 100644 index 0000000..105beba Binary files /dev/null and b/assets/animations/idle_squint/frame_046.webp differ diff --git a/assets/animations/idle_squint/frame_047.webp b/assets/animations/idle_squint/frame_047.webp new file mode 100644 index 0000000..18a906c Binary files /dev/null and b/assets/animations/idle_squint/frame_047.webp differ diff --git a/assets/animations/idle_squint/frame_048.webp b/assets/animations/idle_squint/frame_048.webp new file mode 100644 index 0000000..df0d451 Binary files /dev/null and b/assets/animations/idle_squint/frame_048.webp differ diff --git a/assets/animations/idle_squint/frame_049.webp b/assets/animations/idle_squint/frame_049.webp new file mode 100644 index 0000000..1268e3c Binary files /dev/null and b/assets/animations/idle_squint/frame_049.webp differ diff --git a/assets/animations/idle_squint/frame_050.webp b/assets/animations/idle_squint/frame_050.webp new file mode 100644 index 0000000..a57e9af Binary files /dev/null and b/assets/animations/idle_squint/frame_050.webp differ diff --git a/assets/animations/idle_squint/frame_051.webp b/assets/animations/idle_squint/frame_051.webp new file mode 100644 index 0000000..b1c62a6 Binary files /dev/null and b/assets/animations/idle_squint/frame_051.webp differ diff --git a/assets/animations/idle_squint/frame_052.webp b/assets/animations/idle_squint/frame_052.webp new file mode 100644 index 0000000..1fba8d7 Binary files /dev/null and b/assets/animations/idle_squint/frame_052.webp differ diff --git a/assets/animations/idle_squint/frame_053.webp b/assets/animations/idle_squint/frame_053.webp new file mode 100644 index 0000000..fd976c5 Binary files /dev/null and b/assets/animations/idle_squint/frame_053.webp differ diff --git a/assets/animations/idle_squint/frame_054.webp b/assets/animations/idle_squint/frame_054.webp new file mode 100644 index 0000000..7be10ed Binary files /dev/null and b/assets/animations/idle_squint/frame_054.webp differ diff --git a/assets/animations/idle_squint/frame_055.webp b/assets/animations/idle_squint/frame_055.webp new file mode 100644 index 0000000..223f2b3 Binary files /dev/null and b/assets/animations/idle_squint/frame_055.webp differ diff --git a/assets/animations/idle_squint/frame_056.webp b/assets/animations/idle_squint/frame_056.webp new file mode 100644 index 0000000..09fac33 Binary files /dev/null and b/assets/animations/idle_squint/frame_056.webp differ diff --git a/assets/animations/idle_squint/frame_057.webp b/assets/animations/idle_squint/frame_057.webp new file mode 100644 index 0000000..c320343 Binary files /dev/null and b/assets/animations/idle_squint/frame_057.webp differ diff --git a/assets/animations/idle_squint/frame_058.webp b/assets/animations/idle_squint/frame_058.webp new file mode 100644 index 0000000..c4b8432 Binary files /dev/null and b/assets/animations/idle_squint/frame_058.webp differ diff --git a/assets/animations/idle_squint/frame_059.webp b/assets/animations/idle_squint/frame_059.webp new file mode 100644 index 0000000..fcb0d5c Binary files /dev/null and b/assets/animations/idle_squint/frame_059.webp differ diff --git a/assets/animations/idle_squint/frame_060.webp b/assets/animations/idle_squint/frame_060.webp new file mode 100644 index 0000000..ffbc9b2 Binary files /dev/null and b/assets/animations/idle_squint/frame_060.webp differ diff --git a/assets/animations/idle_squint/frame_061.webp b/assets/animations/idle_squint/frame_061.webp new file mode 100644 index 0000000..6872ceb Binary files /dev/null and b/assets/animations/idle_squint/frame_061.webp differ diff --git a/assets/animations/idle_squint/frame_062.webp b/assets/animations/idle_squint/frame_062.webp new file mode 100644 index 0000000..e9cd818 Binary files /dev/null and b/assets/animations/idle_squint/frame_062.webp differ diff --git a/assets/animations/idle_squint/frame_063.webp b/assets/animations/idle_squint/frame_063.webp new file mode 100644 index 0000000..521bfa9 Binary files /dev/null and b/assets/animations/idle_squint/frame_063.webp differ diff --git a/assets/animations/idle_squint/frame_064.webp b/assets/animations/idle_squint/frame_064.webp new file mode 100644 index 0000000..c38e688 Binary files /dev/null and b/assets/animations/idle_squint/frame_064.webp differ diff --git a/assets/animations/idle_squint/frame_065.webp b/assets/animations/idle_squint/frame_065.webp new file mode 100644 index 0000000..8ff473f Binary files /dev/null and b/assets/animations/idle_squint/frame_065.webp differ diff --git a/assets/animations/idle_squint/frame_066.webp b/assets/animations/idle_squint/frame_066.webp new file mode 100644 index 0000000..a561530 Binary files /dev/null and b/assets/animations/idle_squint/frame_066.webp differ diff --git a/assets/animations/idle_squint/frame_067.webp b/assets/animations/idle_squint/frame_067.webp new file mode 100644 index 0000000..ebbd8f8 Binary files /dev/null and b/assets/animations/idle_squint/frame_067.webp differ diff --git a/assets/animations/idle_squint/frame_068.webp b/assets/animations/idle_squint/frame_068.webp new file mode 100644 index 0000000..404e16b Binary files /dev/null and b/assets/animations/idle_squint/frame_068.webp differ diff --git a/assets/animations/idle_squint/frame_069.webp b/assets/animations/idle_squint/frame_069.webp new file mode 100644 index 0000000..eb32799 Binary files /dev/null and b/assets/animations/idle_squint/frame_069.webp differ diff --git a/assets/animations/idle_yawn/frame_000.webp b/assets/animations/idle_yawn/frame_000.webp new file mode 100644 index 0000000..d3fef92 Binary files /dev/null and b/assets/animations/idle_yawn/frame_000.webp differ diff --git a/assets/animations/idle_yawn/frame_001.webp b/assets/animations/idle_yawn/frame_001.webp new file mode 100644 index 0000000..263bcec Binary files /dev/null and b/assets/animations/idle_yawn/frame_001.webp differ diff --git a/assets/animations/idle_yawn/frame_002.webp b/assets/animations/idle_yawn/frame_002.webp new file mode 100644 index 0000000..0aaba8b Binary files /dev/null and b/assets/animations/idle_yawn/frame_002.webp differ diff --git a/assets/animations/idle_yawn/frame_003.webp b/assets/animations/idle_yawn/frame_003.webp new file mode 100644 index 0000000..2eee42d Binary files /dev/null and b/assets/animations/idle_yawn/frame_003.webp differ diff --git a/assets/animations/idle_yawn/frame_004.webp b/assets/animations/idle_yawn/frame_004.webp new file mode 100644 index 0000000..c250e41 Binary files /dev/null and b/assets/animations/idle_yawn/frame_004.webp differ diff --git a/assets/animations/idle_yawn/frame_005.webp b/assets/animations/idle_yawn/frame_005.webp new file mode 100644 index 0000000..74a2c60 Binary files /dev/null and b/assets/animations/idle_yawn/frame_005.webp differ diff --git a/assets/animations/idle_yawn/frame_006.webp b/assets/animations/idle_yawn/frame_006.webp new file mode 100644 index 0000000..f97371e Binary files /dev/null and b/assets/animations/idle_yawn/frame_006.webp differ diff --git a/assets/animations/idle_yawn/frame_007.webp b/assets/animations/idle_yawn/frame_007.webp new file mode 100644 index 0000000..2c9cf80 Binary files /dev/null and b/assets/animations/idle_yawn/frame_007.webp differ diff --git a/assets/animations/idle_yawn/frame_008.webp b/assets/animations/idle_yawn/frame_008.webp new file mode 100644 index 0000000..7c47cd4 Binary files /dev/null and b/assets/animations/idle_yawn/frame_008.webp differ diff --git a/assets/animations/idle_yawn/frame_009.webp b/assets/animations/idle_yawn/frame_009.webp new file mode 100644 index 0000000..2346f49 Binary files /dev/null and b/assets/animations/idle_yawn/frame_009.webp differ diff --git a/assets/animations/idle_yawn/frame_010.webp b/assets/animations/idle_yawn/frame_010.webp new file mode 100644 index 0000000..8e3de0f Binary files /dev/null and b/assets/animations/idle_yawn/frame_010.webp differ diff --git a/assets/animations/idle_yawn/frame_011.webp b/assets/animations/idle_yawn/frame_011.webp new file mode 100644 index 0000000..f900965 Binary files /dev/null and b/assets/animations/idle_yawn/frame_011.webp differ diff --git a/assets/animations/idle_yawn/frame_012.webp b/assets/animations/idle_yawn/frame_012.webp new file mode 100644 index 0000000..ddae68f Binary files /dev/null and b/assets/animations/idle_yawn/frame_012.webp differ diff --git a/assets/animations/idle_yawn/frame_013.webp b/assets/animations/idle_yawn/frame_013.webp new file mode 100644 index 0000000..0840977 Binary files /dev/null and b/assets/animations/idle_yawn/frame_013.webp differ diff --git a/assets/animations/idle_yawn/frame_014.webp b/assets/animations/idle_yawn/frame_014.webp new file mode 100644 index 0000000..707130a Binary files /dev/null and b/assets/animations/idle_yawn/frame_014.webp differ diff --git a/assets/animations/idle_yawn/frame_015.webp b/assets/animations/idle_yawn/frame_015.webp new file mode 100644 index 0000000..e9de812 Binary files /dev/null and b/assets/animations/idle_yawn/frame_015.webp differ diff --git a/assets/animations/idle_yawn/frame_016.webp b/assets/animations/idle_yawn/frame_016.webp new file mode 100644 index 0000000..a68802e Binary files /dev/null and b/assets/animations/idle_yawn/frame_016.webp differ diff --git a/assets/animations/idle_yawn/frame_017.webp b/assets/animations/idle_yawn/frame_017.webp new file mode 100644 index 0000000..6c62771 Binary files /dev/null and b/assets/animations/idle_yawn/frame_017.webp differ diff --git a/assets/animations/idle_yawn/frame_018.webp b/assets/animations/idle_yawn/frame_018.webp new file mode 100644 index 0000000..c28237f Binary files /dev/null and b/assets/animations/idle_yawn/frame_018.webp differ diff --git a/assets/animations/idle_yawn/frame_019.webp b/assets/animations/idle_yawn/frame_019.webp new file mode 100644 index 0000000..333d901 Binary files /dev/null and b/assets/animations/idle_yawn/frame_019.webp differ diff --git a/assets/animations/idle_yawn/frame_020.webp b/assets/animations/idle_yawn/frame_020.webp new file mode 100644 index 0000000..0cf8d85 Binary files /dev/null and b/assets/animations/idle_yawn/frame_020.webp differ diff --git a/assets/animations/idle_yawn/frame_021.webp b/assets/animations/idle_yawn/frame_021.webp new file mode 100644 index 0000000..e9c0373 Binary files /dev/null and b/assets/animations/idle_yawn/frame_021.webp differ diff --git a/assets/animations/idle_yawn/frame_022.webp b/assets/animations/idle_yawn/frame_022.webp new file mode 100644 index 0000000..5b44bb5 Binary files /dev/null and b/assets/animations/idle_yawn/frame_022.webp differ diff --git a/assets/animations/idle_yawn/frame_023.webp b/assets/animations/idle_yawn/frame_023.webp new file mode 100644 index 0000000..efaccb1 Binary files /dev/null and b/assets/animations/idle_yawn/frame_023.webp differ diff --git a/assets/animations/idle_yawn/frame_024.webp b/assets/animations/idle_yawn/frame_024.webp new file mode 100644 index 0000000..9d4c547 Binary files /dev/null and b/assets/animations/idle_yawn/frame_024.webp differ diff --git a/assets/animations/idle_yawn/frame_025.webp b/assets/animations/idle_yawn/frame_025.webp new file mode 100644 index 0000000..e3216d1 Binary files /dev/null and b/assets/animations/idle_yawn/frame_025.webp differ diff --git a/assets/animations/idle_yawn/frame_026.webp b/assets/animations/idle_yawn/frame_026.webp new file mode 100644 index 0000000..d6f2c6c Binary files /dev/null and b/assets/animations/idle_yawn/frame_026.webp differ diff --git a/assets/animations/idle_yawn/frame_027.webp b/assets/animations/idle_yawn/frame_027.webp new file mode 100644 index 0000000..506adac Binary files /dev/null and b/assets/animations/idle_yawn/frame_027.webp differ diff --git a/assets/animations/idle_yawn/frame_028.webp b/assets/animations/idle_yawn/frame_028.webp new file mode 100644 index 0000000..fdc72a6 Binary files /dev/null and b/assets/animations/idle_yawn/frame_028.webp differ diff --git a/assets/animations/idle_yawn/frame_029.webp b/assets/animations/idle_yawn/frame_029.webp new file mode 100644 index 0000000..81ea7c5 Binary files /dev/null and b/assets/animations/idle_yawn/frame_029.webp differ diff --git a/assets/animations/idle_yawn/frame_030.webp b/assets/animations/idle_yawn/frame_030.webp new file mode 100644 index 0000000..d1d5f49 Binary files /dev/null and b/assets/animations/idle_yawn/frame_030.webp differ diff --git a/assets/animations/idle_yawn/frame_031.webp b/assets/animations/idle_yawn/frame_031.webp new file mode 100644 index 0000000..4f8747c Binary files /dev/null and b/assets/animations/idle_yawn/frame_031.webp differ diff --git a/assets/animations/idle_yawn/frame_032.webp b/assets/animations/idle_yawn/frame_032.webp new file mode 100644 index 0000000..e08b866 Binary files /dev/null and b/assets/animations/idle_yawn/frame_032.webp differ diff --git a/assets/animations/idle_yawn/frame_033.webp b/assets/animations/idle_yawn/frame_033.webp new file mode 100644 index 0000000..71d9c30 Binary files /dev/null and b/assets/animations/idle_yawn/frame_033.webp differ diff --git a/assets/animations/idle_yawn/frame_034.webp b/assets/animations/idle_yawn/frame_034.webp new file mode 100644 index 0000000..cf183a6 Binary files /dev/null and b/assets/animations/idle_yawn/frame_034.webp differ diff --git a/assets/animations/idle_yawn/frame_035.webp b/assets/animations/idle_yawn/frame_035.webp new file mode 100644 index 0000000..937050a Binary files /dev/null and b/assets/animations/idle_yawn/frame_035.webp differ diff --git a/assets/animations/idle_yawn/frame_036.webp b/assets/animations/idle_yawn/frame_036.webp new file mode 100644 index 0000000..b7a5960 Binary files /dev/null and b/assets/animations/idle_yawn/frame_036.webp differ diff --git a/assets/animations/idle_yawn/frame_037.webp b/assets/animations/idle_yawn/frame_037.webp new file mode 100644 index 0000000..6e0244c Binary files /dev/null and b/assets/animations/idle_yawn/frame_037.webp differ diff --git a/assets/animations/idle_yawn/frame_038.webp b/assets/animations/idle_yawn/frame_038.webp new file mode 100644 index 0000000..fe246aa Binary files /dev/null and b/assets/animations/idle_yawn/frame_038.webp differ diff --git a/assets/animations/idle_yawn/frame_039.webp b/assets/animations/idle_yawn/frame_039.webp new file mode 100644 index 0000000..a2cb952 Binary files /dev/null and b/assets/animations/idle_yawn/frame_039.webp differ diff --git a/assets/animations/idle_yawn/frame_040.webp b/assets/animations/idle_yawn/frame_040.webp new file mode 100644 index 0000000..696d686 Binary files /dev/null and b/assets/animations/idle_yawn/frame_040.webp differ diff --git a/assets/animations/idle_yawn/frame_041.webp b/assets/animations/idle_yawn/frame_041.webp new file mode 100644 index 0000000..5521ef7 Binary files /dev/null and b/assets/animations/idle_yawn/frame_041.webp differ diff --git a/assets/animations/idle_yawn/frame_042.webp b/assets/animations/idle_yawn/frame_042.webp new file mode 100644 index 0000000..f0b370f Binary files /dev/null and b/assets/animations/idle_yawn/frame_042.webp differ diff --git a/assets/animations/idle_yawn/frame_043.webp b/assets/animations/idle_yawn/frame_043.webp new file mode 100644 index 0000000..54e5405 Binary files /dev/null and b/assets/animations/idle_yawn/frame_043.webp differ diff --git a/assets/animations/idle_yawn/frame_044.webp b/assets/animations/idle_yawn/frame_044.webp new file mode 100644 index 0000000..af45e27 Binary files /dev/null and b/assets/animations/idle_yawn/frame_044.webp differ diff --git a/assets/animations/idle_yawn/frame_045.webp b/assets/animations/idle_yawn/frame_045.webp new file mode 100644 index 0000000..bbe36a2 Binary files /dev/null and b/assets/animations/idle_yawn/frame_045.webp differ diff --git a/assets/animations/idle_yawn/frame_046.webp b/assets/animations/idle_yawn/frame_046.webp new file mode 100644 index 0000000..11e36aa Binary files /dev/null and b/assets/animations/idle_yawn/frame_046.webp differ diff --git a/assets/animations/idle_yawn/frame_047.webp b/assets/animations/idle_yawn/frame_047.webp new file mode 100644 index 0000000..2585536 Binary files /dev/null and b/assets/animations/idle_yawn/frame_047.webp differ diff --git a/assets/animations/idle_yawn/frame_048.webp b/assets/animations/idle_yawn/frame_048.webp new file mode 100644 index 0000000..517a75c Binary files /dev/null and b/assets/animations/idle_yawn/frame_048.webp differ diff --git a/assets/animations/idle_yawn/frame_049.webp b/assets/animations/idle_yawn/frame_049.webp new file mode 100644 index 0000000..b74e44a Binary files /dev/null and b/assets/animations/idle_yawn/frame_049.webp differ diff --git a/assets/animations/idle_yawn/frame_050.webp b/assets/animations/idle_yawn/frame_050.webp new file mode 100644 index 0000000..e0dcc63 Binary files /dev/null and b/assets/animations/idle_yawn/frame_050.webp differ diff --git a/assets/animations/idle_yawn/frame_051.webp b/assets/animations/idle_yawn/frame_051.webp new file mode 100644 index 0000000..7859130 Binary files /dev/null and b/assets/animations/idle_yawn/frame_051.webp differ diff --git a/assets/animations/idle_yawn/frame_052.webp b/assets/animations/idle_yawn/frame_052.webp new file mode 100644 index 0000000..366af8b Binary files /dev/null and b/assets/animations/idle_yawn/frame_052.webp differ diff --git a/assets/animations/idle_yawn/frame_053.webp b/assets/animations/idle_yawn/frame_053.webp new file mode 100644 index 0000000..86bb61a Binary files /dev/null and b/assets/animations/idle_yawn/frame_053.webp differ diff --git a/assets/animations/idle_yawn/frame_054.webp b/assets/animations/idle_yawn/frame_054.webp new file mode 100644 index 0000000..714e90c Binary files /dev/null and b/assets/animations/idle_yawn/frame_054.webp differ diff --git a/assets/animations/idle_yawn/frame_055.webp b/assets/animations/idle_yawn/frame_055.webp new file mode 100644 index 0000000..20ffa4f Binary files /dev/null and b/assets/animations/idle_yawn/frame_055.webp differ diff --git a/assets/animations/idle_yawn/frame_056.webp b/assets/animations/idle_yawn/frame_056.webp new file mode 100644 index 0000000..7a615ab Binary files /dev/null and b/assets/animations/idle_yawn/frame_056.webp differ diff --git a/assets/animations/idle_yawn/frame_057.webp b/assets/animations/idle_yawn/frame_057.webp new file mode 100644 index 0000000..c743048 Binary files /dev/null and b/assets/animations/idle_yawn/frame_057.webp differ diff --git a/assets/animations/idle_yawn/frame_058.webp b/assets/animations/idle_yawn/frame_058.webp new file mode 100644 index 0000000..b0c5b96 Binary files /dev/null and b/assets/animations/idle_yawn/frame_058.webp differ diff --git a/assets/animations/idle_yawn/frame_059.webp b/assets/animations/idle_yawn/frame_059.webp new file mode 100644 index 0000000..d5331aa Binary files /dev/null and b/assets/animations/idle_yawn/frame_059.webp differ diff --git a/assets/animations/idle_yawn_second/frame_000.webp b/assets/animations/idle_yawn_second/frame_000.webp new file mode 100644 index 0000000..1a9d4ec Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_000.webp differ diff --git a/assets/animations/idle_yawn_second/frame_001.webp b/assets/animations/idle_yawn_second/frame_001.webp new file mode 100644 index 0000000..5883359 Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_001.webp differ diff --git a/assets/animations/idle_yawn_second/frame_002.webp b/assets/animations/idle_yawn_second/frame_002.webp new file mode 100644 index 0000000..754026b Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_002.webp differ diff --git a/assets/animations/idle_yawn_second/frame_003.webp b/assets/animations/idle_yawn_second/frame_003.webp new file mode 100644 index 0000000..fba6688 Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_003.webp differ diff --git a/assets/animations/idle_yawn_second/frame_004.webp b/assets/animations/idle_yawn_second/frame_004.webp new file mode 100644 index 0000000..0a16375 Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_004.webp differ diff --git a/assets/animations/idle_yawn_second/frame_005.webp b/assets/animations/idle_yawn_second/frame_005.webp new file mode 100644 index 0000000..43123d9 Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_005.webp differ diff --git a/assets/animations/idle_yawn_second/frame_006.webp b/assets/animations/idle_yawn_second/frame_006.webp new file mode 100644 index 0000000..574b176 Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_006.webp differ diff --git a/assets/animations/idle_yawn_second/frame_007.webp b/assets/animations/idle_yawn_second/frame_007.webp new file mode 100644 index 0000000..ecd248a Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_007.webp differ diff --git a/assets/animations/idle_yawn_second/frame_008.webp b/assets/animations/idle_yawn_second/frame_008.webp new file mode 100644 index 0000000..a90295e Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_008.webp differ diff --git a/assets/animations/idle_yawn_second/frame_009.webp b/assets/animations/idle_yawn_second/frame_009.webp new file mode 100644 index 0000000..81fed6e Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_009.webp differ diff --git a/assets/animations/idle_yawn_second/frame_010.webp b/assets/animations/idle_yawn_second/frame_010.webp new file mode 100644 index 0000000..65bc5ec Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_010.webp differ diff --git a/assets/animations/idle_yawn_second/frame_011.webp b/assets/animations/idle_yawn_second/frame_011.webp new file mode 100644 index 0000000..6f1e01e Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_011.webp differ diff --git a/assets/animations/idle_yawn_second/frame_012.webp b/assets/animations/idle_yawn_second/frame_012.webp new file mode 100644 index 0000000..8de10fc Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_012.webp differ diff --git a/assets/animations/idle_yawn_second/frame_013.webp b/assets/animations/idle_yawn_second/frame_013.webp new file mode 100644 index 0000000..ee9f1e0 Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_013.webp differ diff --git a/assets/animations/idle_yawn_second/frame_014.webp b/assets/animations/idle_yawn_second/frame_014.webp new file mode 100644 index 0000000..e76bcf6 Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_014.webp differ diff --git a/assets/animations/idle_yawn_second/frame_015.webp b/assets/animations/idle_yawn_second/frame_015.webp new file mode 100644 index 0000000..407dd15 Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_015.webp differ diff --git a/assets/animations/idle_yawn_second/frame_016.webp b/assets/animations/idle_yawn_second/frame_016.webp new file mode 100644 index 0000000..db43cac Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_016.webp differ diff --git a/assets/animations/idle_yawn_second/frame_017.webp b/assets/animations/idle_yawn_second/frame_017.webp new file mode 100644 index 0000000..a657212 Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_017.webp differ diff --git a/assets/animations/idle_yawn_second/frame_018.webp b/assets/animations/idle_yawn_second/frame_018.webp new file mode 100644 index 0000000..d3bddf2 Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_018.webp differ diff --git a/assets/animations/idle_yawn_second/frame_019.webp b/assets/animations/idle_yawn_second/frame_019.webp new file mode 100644 index 0000000..2013f05 Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_019.webp differ diff --git a/assets/animations/idle_yawn_second/frame_020.webp b/assets/animations/idle_yawn_second/frame_020.webp new file mode 100644 index 0000000..26fcc83 Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_020.webp differ diff --git a/assets/animations/idle_yawn_second/frame_021.webp b/assets/animations/idle_yawn_second/frame_021.webp new file mode 100644 index 0000000..0286d7c Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_021.webp differ diff --git a/assets/animations/idle_yawn_second/frame_022.webp b/assets/animations/idle_yawn_second/frame_022.webp new file mode 100644 index 0000000..d999c0c Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_022.webp differ diff --git a/assets/animations/idle_yawn_second/frame_023.webp b/assets/animations/idle_yawn_second/frame_023.webp new file mode 100644 index 0000000..b3826a1 Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_023.webp differ diff --git a/assets/animations/idle_yawn_second/frame_024.webp b/assets/animations/idle_yawn_second/frame_024.webp new file mode 100644 index 0000000..20e6fed Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_024.webp differ diff --git a/assets/animations/idle_yawn_second/frame_025.webp b/assets/animations/idle_yawn_second/frame_025.webp new file mode 100644 index 0000000..a995692 Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_025.webp differ diff --git a/assets/animations/idle_yawn_second/frame_026.webp b/assets/animations/idle_yawn_second/frame_026.webp new file mode 100644 index 0000000..ad96694 Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_026.webp differ diff --git a/assets/animations/idle_yawn_second/frame_027.webp b/assets/animations/idle_yawn_second/frame_027.webp new file mode 100644 index 0000000..cfefc57 Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_027.webp differ diff --git a/assets/animations/idle_yawn_second/frame_028.webp b/assets/animations/idle_yawn_second/frame_028.webp new file mode 100644 index 0000000..d0bcdcc Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_028.webp differ diff --git a/assets/animations/idle_yawn_second/frame_029.webp b/assets/animations/idle_yawn_second/frame_029.webp new file mode 100644 index 0000000..7a686a0 Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_029.webp differ diff --git a/assets/animations/idle_yawn_second/frame_030.webp b/assets/animations/idle_yawn_second/frame_030.webp new file mode 100644 index 0000000..46f8000 Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_030.webp differ diff --git a/assets/animations/idle_yawn_second/frame_031.webp b/assets/animations/idle_yawn_second/frame_031.webp new file mode 100644 index 0000000..23d2970 Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_031.webp differ diff --git a/assets/animations/idle_yawn_second/frame_032.webp b/assets/animations/idle_yawn_second/frame_032.webp new file mode 100644 index 0000000..3708cb1 Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_032.webp differ diff --git a/assets/animations/idle_yawn_second/frame_033.webp b/assets/animations/idle_yawn_second/frame_033.webp new file mode 100644 index 0000000..a5a6fbf Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_033.webp differ diff --git a/assets/animations/idle_yawn_second/frame_034.webp b/assets/animations/idle_yawn_second/frame_034.webp new file mode 100644 index 0000000..b182c24 Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_034.webp differ diff --git a/assets/animations/idle_yawn_second/frame_035.webp b/assets/animations/idle_yawn_second/frame_035.webp new file mode 100644 index 0000000..1488796 Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_035.webp differ diff --git a/assets/animations/idle_yawn_second/frame_036.webp b/assets/animations/idle_yawn_second/frame_036.webp new file mode 100644 index 0000000..be6f792 Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_036.webp differ diff --git a/assets/animations/idle_yawn_second/frame_037.webp b/assets/animations/idle_yawn_second/frame_037.webp new file mode 100644 index 0000000..36eb74d Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_037.webp differ diff --git a/assets/animations/idle_yawn_second/frame_038.webp b/assets/animations/idle_yawn_second/frame_038.webp new file mode 100644 index 0000000..e23edef Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_038.webp differ diff --git a/assets/animations/idle_yawn_second/frame_039.webp b/assets/animations/idle_yawn_second/frame_039.webp new file mode 100644 index 0000000..c67a60d Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_039.webp differ diff --git a/assets/animations/idle_yawn_second/frame_040.webp b/assets/animations/idle_yawn_second/frame_040.webp new file mode 100644 index 0000000..9fd19ac Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_040.webp differ diff --git a/assets/animations/idle_yawn_second/frame_041.webp b/assets/animations/idle_yawn_second/frame_041.webp new file mode 100644 index 0000000..a78d9be Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_041.webp differ diff --git a/assets/animations/idle_yawn_second/frame_042.webp b/assets/animations/idle_yawn_second/frame_042.webp new file mode 100644 index 0000000..d8982a5 Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_042.webp differ diff --git a/assets/animations/idle_yawn_second/frame_043.webp b/assets/animations/idle_yawn_second/frame_043.webp new file mode 100644 index 0000000..b69c442 Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_043.webp differ diff --git a/assets/animations/idle_yawn_second/frame_044.webp b/assets/animations/idle_yawn_second/frame_044.webp new file mode 100644 index 0000000..b3ca52a Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_044.webp differ diff --git a/assets/animations/idle_yawn_second/frame_045.webp b/assets/animations/idle_yawn_second/frame_045.webp new file mode 100644 index 0000000..ef9885e Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_045.webp differ diff --git a/assets/animations/idle_yawn_second/frame_046.webp b/assets/animations/idle_yawn_second/frame_046.webp new file mode 100644 index 0000000..e2e113d Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_046.webp differ diff --git a/assets/animations/idle_yawn_second/frame_047.webp b/assets/animations/idle_yawn_second/frame_047.webp new file mode 100644 index 0000000..e5f931a Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_047.webp differ diff --git a/assets/animations/idle_yawn_second/frame_048.webp b/assets/animations/idle_yawn_second/frame_048.webp new file mode 100644 index 0000000..b8c7e43 Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_048.webp differ diff --git a/assets/animations/idle_yawn_second/frame_049.webp b/assets/animations/idle_yawn_second/frame_049.webp new file mode 100644 index 0000000..9610053 Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_049.webp differ diff --git a/assets/animations/idle_yawn_second/frame_050.webp b/assets/animations/idle_yawn_second/frame_050.webp new file mode 100644 index 0000000..bae0eb4 Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_050.webp differ diff --git a/assets/animations/idle_yawn_second/frame_051.webp b/assets/animations/idle_yawn_second/frame_051.webp new file mode 100644 index 0000000..69ec82c Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_051.webp differ diff --git a/assets/animations/idle_yawn_second/frame_052.webp b/assets/animations/idle_yawn_second/frame_052.webp new file mode 100644 index 0000000..8b0ead6 Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_052.webp differ diff --git a/assets/animations/idle_yawn_second/frame_053.webp b/assets/animations/idle_yawn_second/frame_053.webp new file mode 100644 index 0000000..30ccc46 Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_053.webp differ diff --git a/assets/animations/idle_yawn_second/frame_054.webp b/assets/animations/idle_yawn_second/frame_054.webp new file mode 100644 index 0000000..17788b2 Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_054.webp differ diff --git a/assets/animations/idle_yawn_second/frame_055.webp b/assets/animations/idle_yawn_second/frame_055.webp new file mode 100644 index 0000000..ee2c623 Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_055.webp differ diff --git a/assets/animations/idle_yawn_second/frame_056.webp b/assets/animations/idle_yawn_second/frame_056.webp new file mode 100644 index 0000000..55e9fee Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_056.webp differ diff --git a/assets/animations/idle_yawn_second/frame_057.webp b/assets/animations/idle_yawn_second/frame_057.webp new file mode 100644 index 0000000..b77ae76 Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_057.webp differ diff --git a/assets/animations/idle_yawn_second/frame_058.webp b/assets/animations/idle_yawn_second/frame_058.webp new file mode 100644 index 0000000..116a1b7 Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_058.webp differ diff --git a/assets/animations/idle_yawn_second/frame_059.webp b/assets/animations/idle_yawn_second/frame_059.webp new file mode 100644 index 0000000..d444f55 Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_059.webp differ diff --git a/assets/animations/idle_yawn_second/frame_060.webp b/assets/animations/idle_yawn_second/frame_060.webp new file mode 100644 index 0000000..fa0ebb7 Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_060.webp differ diff --git a/assets/animations/idle_yawn_second/frame_061.webp b/assets/animations/idle_yawn_second/frame_061.webp new file mode 100644 index 0000000..123f8e2 Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_061.webp differ diff --git a/assets/animations/idle_yawn_second/frame_062.webp b/assets/animations/idle_yawn_second/frame_062.webp new file mode 100644 index 0000000..8808795 Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_062.webp differ diff --git a/assets/animations/idle_yawn_second/frame_063.webp b/assets/animations/idle_yawn_second/frame_063.webp new file mode 100644 index 0000000..2eb08eb Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_063.webp differ diff --git a/assets/animations/idle_yawn_second/frame_064.webp b/assets/animations/idle_yawn_second/frame_064.webp new file mode 100644 index 0000000..d87bf14 Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_064.webp differ diff --git a/assets/animations/idle_yawn_second/frame_065.webp b/assets/animations/idle_yawn_second/frame_065.webp new file mode 100644 index 0000000..c79cf8a Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_065.webp differ diff --git a/assets/animations/idle_yawn_second/frame_066.webp b/assets/animations/idle_yawn_second/frame_066.webp new file mode 100644 index 0000000..465eff2 Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_066.webp differ diff --git a/assets/animations/idle_yawn_second/frame_067.webp b/assets/animations/idle_yawn_second/frame_067.webp new file mode 100644 index 0000000..0da55d3 Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_067.webp differ diff --git a/assets/animations/idle_yawn_second/frame_068.webp b/assets/animations/idle_yawn_second/frame_068.webp new file mode 100644 index 0000000..e568858 Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_068.webp differ diff --git a/assets/animations/idle_yawn_second/frame_069.webp b/assets/animations/idle_yawn_second/frame_069.webp new file mode 100644 index 0000000..44e8847 Binary files /dev/null and b/assets/animations/idle_yawn_second/frame_069.webp differ diff --git a/assets/animations/manifest.json b/assets/animations/manifest.json new file mode 100644 index 0000000..b9049e3 --- /dev/null +++ b/assets/animations/manifest.json @@ -0,0 +1,343 @@ +{ + "version": 1, + "canvas": { + "width": 204, + "height": 175 + }, + "anchor": { + "x": 144, + "y": 158 + }, + "clips": { + "drag_end": { + "frames": 15, + "fps": 30, + "loop": false, + "rect": { + "x": 95, + "y": 33, + "width": 92, + "height": 125 + } + }, + "drag_loop": { + "frames": 30, + "fps": 30, + "loop": true, + "rect": { + "x": 94, + "y": 32, + "width": 94, + "height": 119 + } + }, + "drag_start": { + "frames": 5, + "fps": 30, + "loop": false, + "rect": { + "x": 96, + "y": 37, + "width": 91, + "height": 121 + } + }, + "idle_activity_book_finish": { + "frames": 50, + "fps": 30, + "loop": false, + "rect": { + "x": 82, + "y": 52, + "width": 104, + "height": 106 + } + }, + "idle_activity_book_loop": { + "frames": 100, + "fps": 30, + "loop": true, + "rect": { + "x": 88, + "y": 52, + "width": 98, + "height": 106 + } + }, + "idle_activity_book_start": { + "frames": 40, + "fps": 30, + "loop": false, + "rect": { + "x": 82, + "y": 50, + "width": 104, + "height": 108 + } + }, + "idle_activity_newspaper_finish": { + "frames": 40, + "fps": 30, + "loop": false, + "rect": { + "x": 74, + "y": 52, + "width": 113, + "height": 110 + } + }, + "idle_activity_newspaper_loop": { + "frames": 100, + "fps": 30, + "loop": true, + "rect": { + "x": 85, + "y": 52, + "width": 102, + "height": 110 + } + }, + "idle_activity_newspaper_start": { + "frames": 40, + "fps": 30, + "loop": false, + "rect": { + "x": 68, + "y": 50, + "width": 118, + "height": 112 + } + }, + "idle_activity_sleep_finish": { + "frames": 80, + "fps": 30, + "loop": false, + "rect": { + "x": 63, + "y": 52, + "width": 124, + "height": 107 + } + }, + "idle_activity_sleep_loop": { + "frames": 40, + "fps": 30, + "loop": true, + "rect": { + "x": 65, + "y": 70, + "width": 116, + "height": 88 + } + }, + "idle_activity_sleep_start": { + "frames": 70, + "fps": 30, + "loop": false, + "rect": { + "x": 63, + "y": 51, + "width": 124, + "height": 107 + } + }, + "idle_blink": { + "frames": 20, + "fps": 30, + "loop": false, + "rect": { + "x": 103, + "y": 54, + "width": 84, + "height": 104 + } + }, + "idle_dig": { + "frames": 140, + "fps": 30, + "loop": false, + "rect": { + "x": 28, + "y": 55, + "width": 176, + "height": 120 + } + }, + "idle_look_around": { + "frames": 80, + "fps": 30, + "loop": false, + "rect": { + "x": 83, + "y": 49, + "width": 103, + "height": 109 + } + }, + "idle_main": { + "frames": 1, + "fps": 30, + "loop": true, + "rect": { + "x": 103, + "y": 55, + "width": 83, + "height": 103 + } + }, + "idle_nose_rub": { + "frames": 60, + "fps": 30, + "loop": false, + "rect": { + "x": 101, + "y": 51, + "width": 87, + "height": 107 + } + }, + "idle_paper_plane": { + "frames": 220, + "fps": 30, + "loop": false, + "rect": { + "x": 2, + "y": 2, + "width": 186, + "height": 157 + } + }, + "idle_peek": { + "frames": 40, + "fps": 30, + "loop": false, + "rect": { + "x": 102, + "y": 53, + "width": 84, + "height": 105 + } + }, + "idle_rock": { + "frames": 30, + "fps": 30, + "loop": false, + "rect": { + "x": 103, + "y": 54, + "width": 84, + "height": 104 + } + }, + "idle_squint": { + "frames": 70, + "fps": 30, + "loop": false, + "rect": { + "x": 103, + "y": 52, + "width": 84, + "height": 106 + } + }, + "idle_yawn": { + "frames": 60, + "fps": 30, + "loop": false, + "rect": { + "x": 103, + "y": 53, + "width": 84, + "height": 105 + } + }, + "idle_yawn_second": { + "frames": 70, + "fps": 30, + "loop": false, + "rect": { + "x": 102, + "y": 51, + "width": 87, + "height": 107 + } + }, + "music": { + "frames": 14, + "fps": 30, + "loop": true, + "rect": { + "x": 100, + "y": 43, + "width": 86, + "height": 115 + } + }, + "music_start": { + "frames": 54, + "fps": 30, + "loop": false, + "rect": { + "x": 88, + "y": 42, + "width": 99, + "height": 116 + } + }, + "music_stop": { + "frames": 62, + "fps": 30, + "loop": false, + "rect": { + "x": 65, + "y": 37, + "width": 122, + "height": 121 + } + }, + "screenshot": { + "frames": 140, + "fps": 30, + "loop": false, + "rect": { + "x": 65, + "y": 25, + "width": 122, + "height": 133 + } + }, + "typing": { + "frames": 60, + "fps": 30, + "loop": true, + "rect": { + "x": 82, + "y": 49, + "width": 104, + "height": 111 + } + }, + "typing_start": { + "frames": 40, + "fps": 30, + "loop": false, + "rect": { + "x": 57, + "y": 50, + "width": 130, + "height": 109 + } + }, + "typing_stop": { + "frames": 40, + "fps": 30, + "loop": false, + "rect": { + "x": 76, + "y": 50, + "width": 111, + "height": 108 + } + } + } +} \ No newline at end of file diff --git a/assets/animations/music/frame_000.webp b/assets/animations/music/frame_000.webp new file mode 100644 index 0000000..9ab63fe Binary files /dev/null and b/assets/animations/music/frame_000.webp differ diff --git a/assets/animations/music/frame_001.webp b/assets/animations/music/frame_001.webp new file mode 100644 index 0000000..561f2e0 Binary files /dev/null and b/assets/animations/music/frame_001.webp differ diff --git a/assets/animations/music/frame_002.webp b/assets/animations/music/frame_002.webp new file mode 100644 index 0000000..5c27eec Binary files /dev/null and b/assets/animations/music/frame_002.webp differ diff --git a/assets/animations/music/frame_003.webp b/assets/animations/music/frame_003.webp new file mode 100644 index 0000000..f68bbc0 Binary files /dev/null and b/assets/animations/music/frame_003.webp differ diff --git a/assets/animations/music/frame_004.webp b/assets/animations/music/frame_004.webp new file mode 100644 index 0000000..64d821c Binary files /dev/null and b/assets/animations/music/frame_004.webp differ diff --git a/assets/animations/music/frame_005.webp b/assets/animations/music/frame_005.webp new file mode 100644 index 0000000..9417774 Binary files /dev/null and b/assets/animations/music/frame_005.webp differ diff --git a/assets/animations/music/frame_006.webp b/assets/animations/music/frame_006.webp new file mode 100644 index 0000000..25e3149 Binary files /dev/null and b/assets/animations/music/frame_006.webp differ diff --git a/assets/animations/music/frame_007.webp b/assets/animations/music/frame_007.webp new file mode 100644 index 0000000..918dd58 Binary files /dev/null and b/assets/animations/music/frame_007.webp differ diff --git a/assets/animations/music/frame_008.webp b/assets/animations/music/frame_008.webp new file mode 100644 index 0000000..3738bd3 Binary files /dev/null and b/assets/animations/music/frame_008.webp differ diff --git a/assets/animations/music/frame_009.webp b/assets/animations/music/frame_009.webp new file mode 100644 index 0000000..00755d1 Binary files /dev/null and b/assets/animations/music/frame_009.webp differ diff --git a/assets/animations/music/frame_010.webp b/assets/animations/music/frame_010.webp new file mode 100644 index 0000000..1b3c110 Binary files /dev/null and b/assets/animations/music/frame_010.webp differ diff --git a/assets/animations/music/frame_011.webp b/assets/animations/music/frame_011.webp new file mode 100644 index 0000000..abd2392 Binary files /dev/null and b/assets/animations/music/frame_011.webp differ diff --git a/assets/animations/music/frame_012.webp b/assets/animations/music/frame_012.webp new file mode 100644 index 0000000..c9a91a7 Binary files /dev/null and b/assets/animations/music/frame_012.webp differ diff --git a/assets/animations/music/frame_013.webp b/assets/animations/music/frame_013.webp new file mode 100644 index 0000000..af7881d Binary files /dev/null and b/assets/animations/music/frame_013.webp differ diff --git a/assets/animations/music_start/frame_000.webp b/assets/animations/music_start/frame_000.webp new file mode 100644 index 0000000..9d334ef Binary files /dev/null and b/assets/animations/music_start/frame_000.webp differ diff --git a/assets/animations/music_start/frame_001.webp b/assets/animations/music_start/frame_001.webp new file mode 100644 index 0000000..6edcf70 Binary files /dev/null and b/assets/animations/music_start/frame_001.webp differ diff --git a/assets/animations/music_start/frame_002.webp b/assets/animations/music_start/frame_002.webp new file mode 100644 index 0000000..22525a2 Binary files /dev/null and b/assets/animations/music_start/frame_002.webp differ diff --git a/assets/animations/music_start/frame_003.webp b/assets/animations/music_start/frame_003.webp new file mode 100644 index 0000000..d50a868 Binary files /dev/null and b/assets/animations/music_start/frame_003.webp differ diff --git a/assets/animations/music_start/frame_004.webp b/assets/animations/music_start/frame_004.webp new file mode 100644 index 0000000..15bb408 Binary files /dev/null and b/assets/animations/music_start/frame_004.webp differ diff --git a/assets/animations/music_start/frame_005.webp b/assets/animations/music_start/frame_005.webp new file mode 100644 index 0000000..4a0fedd Binary files /dev/null and b/assets/animations/music_start/frame_005.webp differ diff --git a/assets/animations/music_start/frame_006.webp b/assets/animations/music_start/frame_006.webp new file mode 100644 index 0000000..5abd589 Binary files /dev/null and b/assets/animations/music_start/frame_006.webp differ diff --git a/assets/animations/music_start/frame_007.webp b/assets/animations/music_start/frame_007.webp new file mode 100644 index 0000000..406fb4c Binary files /dev/null and b/assets/animations/music_start/frame_007.webp differ diff --git a/assets/animations/music_start/frame_008.webp b/assets/animations/music_start/frame_008.webp new file mode 100644 index 0000000..d4e4fca Binary files /dev/null and b/assets/animations/music_start/frame_008.webp differ diff --git a/assets/animations/music_start/frame_009.webp b/assets/animations/music_start/frame_009.webp new file mode 100644 index 0000000..1dd1358 Binary files /dev/null and b/assets/animations/music_start/frame_009.webp differ diff --git a/assets/animations/music_start/frame_010.webp b/assets/animations/music_start/frame_010.webp new file mode 100644 index 0000000..60c70c9 Binary files /dev/null and b/assets/animations/music_start/frame_010.webp differ diff --git a/assets/animations/music_start/frame_011.webp b/assets/animations/music_start/frame_011.webp new file mode 100644 index 0000000..98bcb69 Binary files /dev/null and b/assets/animations/music_start/frame_011.webp differ diff --git a/assets/animations/music_start/frame_012.webp b/assets/animations/music_start/frame_012.webp new file mode 100644 index 0000000..4e0fd99 Binary files /dev/null and b/assets/animations/music_start/frame_012.webp differ diff --git a/assets/animations/music_start/frame_013.webp b/assets/animations/music_start/frame_013.webp new file mode 100644 index 0000000..cd8ed97 Binary files /dev/null and b/assets/animations/music_start/frame_013.webp differ diff --git a/assets/animations/music_start/frame_014.webp b/assets/animations/music_start/frame_014.webp new file mode 100644 index 0000000..ff2ddd9 Binary files /dev/null and b/assets/animations/music_start/frame_014.webp differ diff --git a/assets/animations/music_start/frame_015.webp b/assets/animations/music_start/frame_015.webp new file mode 100644 index 0000000..8ad683d Binary files /dev/null and b/assets/animations/music_start/frame_015.webp differ diff --git a/assets/animations/music_start/frame_016.webp b/assets/animations/music_start/frame_016.webp new file mode 100644 index 0000000..f9fc556 Binary files /dev/null and b/assets/animations/music_start/frame_016.webp differ diff --git a/assets/animations/music_start/frame_017.webp b/assets/animations/music_start/frame_017.webp new file mode 100644 index 0000000..7b1ca7d Binary files /dev/null and b/assets/animations/music_start/frame_017.webp differ diff --git a/assets/animations/music_start/frame_018.webp b/assets/animations/music_start/frame_018.webp new file mode 100644 index 0000000..84b9f6f Binary files /dev/null and b/assets/animations/music_start/frame_018.webp differ diff --git a/assets/animations/music_start/frame_019.webp b/assets/animations/music_start/frame_019.webp new file mode 100644 index 0000000..4743e08 Binary files /dev/null and b/assets/animations/music_start/frame_019.webp differ diff --git a/assets/animations/music_start/frame_020.webp b/assets/animations/music_start/frame_020.webp new file mode 100644 index 0000000..d35502a Binary files /dev/null and b/assets/animations/music_start/frame_020.webp differ diff --git a/assets/animations/music_start/frame_021.webp b/assets/animations/music_start/frame_021.webp new file mode 100644 index 0000000..ec21a06 Binary files /dev/null and b/assets/animations/music_start/frame_021.webp differ diff --git a/assets/animations/music_start/frame_022.webp b/assets/animations/music_start/frame_022.webp new file mode 100644 index 0000000..c1fb56f Binary files /dev/null and b/assets/animations/music_start/frame_022.webp differ diff --git a/assets/animations/music_start/frame_023.webp b/assets/animations/music_start/frame_023.webp new file mode 100644 index 0000000..c095621 Binary files /dev/null and b/assets/animations/music_start/frame_023.webp differ diff --git a/assets/animations/music_start/frame_024.webp b/assets/animations/music_start/frame_024.webp new file mode 100644 index 0000000..e50714d Binary files /dev/null and b/assets/animations/music_start/frame_024.webp differ diff --git a/assets/animations/music_start/frame_025.webp b/assets/animations/music_start/frame_025.webp new file mode 100644 index 0000000..5634217 Binary files /dev/null and b/assets/animations/music_start/frame_025.webp differ diff --git a/assets/animations/music_start/frame_026.webp b/assets/animations/music_start/frame_026.webp new file mode 100644 index 0000000..9a47e6b Binary files /dev/null and b/assets/animations/music_start/frame_026.webp differ diff --git a/assets/animations/music_start/frame_027.webp b/assets/animations/music_start/frame_027.webp new file mode 100644 index 0000000..eb767ea Binary files /dev/null and b/assets/animations/music_start/frame_027.webp differ diff --git a/assets/animations/music_start/frame_028.webp b/assets/animations/music_start/frame_028.webp new file mode 100644 index 0000000..d94f944 Binary files /dev/null and b/assets/animations/music_start/frame_028.webp differ diff --git a/assets/animations/music_start/frame_029.webp b/assets/animations/music_start/frame_029.webp new file mode 100644 index 0000000..f9b8987 Binary files /dev/null and b/assets/animations/music_start/frame_029.webp differ diff --git a/assets/animations/music_start/frame_030.webp b/assets/animations/music_start/frame_030.webp new file mode 100644 index 0000000..9bfb4cd Binary files /dev/null and b/assets/animations/music_start/frame_030.webp differ diff --git a/assets/animations/music_start/frame_031.webp b/assets/animations/music_start/frame_031.webp new file mode 100644 index 0000000..8162563 Binary files /dev/null and b/assets/animations/music_start/frame_031.webp differ diff --git a/assets/animations/music_start/frame_032.webp b/assets/animations/music_start/frame_032.webp new file mode 100644 index 0000000..fcde08b Binary files /dev/null and b/assets/animations/music_start/frame_032.webp differ diff --git a/assets/animations/music_start/frame_033.webp b/assets/animations/music_start/frame_033.webp new file mode 100644 index 0000000..f30f251 Binary files /dev/null and b/assets/animations/music_start/frame_033.webp differ diff --git a/assets/animations/music_start/frame_034.webp b/assets/animations/music_start/frame_034.webp new file mode 100644 index 0000000..7b2f00a Binary files /dev/null and b/assets/animations/music_start/frame_034.webp differ diff --git a/assets/animations/music_start/frame_035.webp b/assets/animations/music_start/frame_035.webp new file mode 100644 index 0000000..269d41c Binary files /dev/null and b/assets/animations/music_start/frame_035.webp differ diff --git a/assets/animations/music_start/frame_036.webp b/assets/animations/music_start/frame_036.webp new file mode 100644 index 0000000..2dca9dc Binary files /dev/null and b/assets/animations/music_start/frame_036.webp differ diff --git a/assets/animations/music_start/frame_037.webp b/assets/animations/music_start/frame_037.webp new file mode 100644 index 0000000..610854f Binary files /dev/null and b/assets/animations/music_start/frame_037.webp differ diff --git a/assets/animations/music_start/frame_038.webp b/assets/animations/music_start/frame_038.webp new file mode 100644 index 0000000..380f771 Binary files /dev/null and b/assets/animations/music_start/frame_038.webp differ diff --git a/assets/animations/music_start/frame_039.webp b/assets/animations/music_start/frame_039.webp new file mode 100644 index 0000000..326a15c Binary files /dev/null and b/assets/animations/music_start/frame_039.webp differ diff --git a/assets/animations/music_start/frame_040.webp b/assets/animations/music_start/frame_040.webp new file mode 100644 index 0000000..d630d50 Binary files /dev/null and b/assets/animations/music_start/frame_040.webp differ diff --git a/assets/animations/music_start/frame_041.webp b/assets/animations/music_start/frame_041.webp new file mode 100644 index 0000000..424d097 Binary files /dev/null and b/assets/animations/music_start/frame_041.webp differ diff --git a/assets/animations/music_start/frame_042.webp b/assets/animations/music_start/frame_042.webp new file mode 100644 index 0000000..af4d536 Binary files /dev/null and b/assets/animations/music_start/frame_042.webp differ diff --git a/assets/animations/music_start/frame_043.webp b/assets/animations/music_start/frame_043.webp new file mode 100644 index 0000000..5f6bfac Binary files /dev/null and b/assets/animations/music_start/frame_043.webp differ diff --git a/assets/animations/music_start/frame_044.webp b/assets/animations/music_start/frame_044.webp new file mode 100644 index 0000000..2400ce6 Binary files /dev/null and b/assets/animations/music_start/frame_044.webp differ diff --git a/assets/animations/music_start/frame_045.webp b/assets/animations/music_start/frame_045.webp new file mode 100644 index 0000000..dd8173b Binary files /dev/null and b/assets/animations/music_start/frame_045.webp differ diff --git a/assets/animations/music_start/frame_046.webp b/assets/animations/music_start/frame_046.webp new file mode 100644 index 0000000..dff38e2 Binary files /dev/null and b/assets/animations/music_start/frame_046.webp differ diff --git a/assets/animations/music_start/frame_047.webp b/assets/animations/music_start/frame_047.webp new file mode 100644 index 0000000..691fa93 Binary files /dev/null and b/assets/animations/music_start/frame_047.webp differ diff --git a/assets/animations/music_start/frame_048.webp b/assets/animations/music_start/frame_048.webp new file mode 100644 index 0000000..8fd56e9 Binary files /dev/null and b/assets/animations/music_start/frame_048.webp differ diff --git a/assets/animations/music_start/frame_049.webp b/assets/animations/music_start/frame_049.webp new file mode 100644 index 0000000..470c8b7 Binary files /dev/null and b/assets/animations/music_start/frame_049.webp differ diff --git a/assets/animations/music_start/frame_050.webp b/assets/animations/music_start/frame_050.webp new file mode 100644 index 0000000..06afb38 Binary files /dev/null and b/assets/animations/music_start/frame_050.webp differ diff --git a/assets/animations/music_start/frame_051.webp b/assets/animations/music_start/frame_051.webp new file mode 100644 index 0000000..340364a Binary files /dev/null and b/assets/animations/music_start/frame_051.webp differ diff --git a/assets/animations/music_start/frame_052.webp b/assets/animations/music_start/frame_052.webp new file mode 100644 index 0000000..b2d9151 Binary files /dev/null and b/assets/animations/music_start/frame_052.webp differ diff --git a/assets/animations/music_start/frame_053.webp b/assets/animations/music_start/frame_053.webp new file mode 100644 index 0000000..4bd6504 Binary files /dev/null and b/assets/animations/music_start/frame_053.webp differ diff --git a/assets/animations/music_stop/frame_000.webp b/assets/animations/music_stop/frame_000.webp new file mode 100644 index 0000000..f971e9b Binary files /dev/null and b/assets/animations/music_stop/frame_000.webp differ diff --git a/assets/animations/music_stop/frame_001.webp b/assets/animations/music_stop/frame_001.webp new file mode 100644 index 0000000..4d7cfad Binary files /dev/null and b/assets/animations/music_stop/frame_001.webp differ diff --git a/assets/animations/music_stop/frame_002.webp b/assets/animations/music_stop/frame_002.webp new file mode 100644 index 0000000..f6f2a5e Binary files /dev/null and b/assets/animations/music_stop/frame_002.webp differ diff --git a/assets/animations/music_stop/frame_003.webp b/assets/animations/music_stop/frame_003.webp new file mode 100644 index 0000000..3327963 Binary files /dev/null and b/assets/animations/music_stop/frame_003.webp differ diff --git a/assets/animations/music_stop/frame_004.webp b/assets/animations/music_stop/frame_004.webp new file mode 100644 index 0000000..3bc822c Binary files /dev/null and b/assets/animations/music_stop/frame_004.webp differ diff --git a/assets/animations/music_stop/frame_005.webp b/assets/animations/music_stop/frame_005.webp new file mode 100644 index 0000000..eb1406b Binary files /dev/null and b/assets/animations/music_stop/frame_005.webp differ diff --git a/assets/animations/music_stop/frame_006.webp b/assets/animations/music_stop/frame_006.webp new file mode 100644 index 0000000..418a0f6 Binary files /dev/null and b/assets/animations/music_stop/frame_006.webp differ diff --git a/assets/animations/music_stop/frame_007.webp b/assets/animations/music_stop/frame_007.webp new file mode 100644 index 0000000..276a5f7 Binary files /dev/null and b/assets/animations/music_stop/frame_007.webp differ diff --git a/assets/animations/music_stop/frame_008.webp b/assets/animations/music_stop/frame_008.webp new file mode 100644 index 0000000..a9ee203 Binary files /dev/null and b/assets/animations/music_stop/frame_008.webp differ diff --git a/assets/animations/music_stop/frame_009.webp b/assets/animations/music_stop/frame_009.webp new file mode 100644 index 0000000..c6aa821 Binary files /dev/null and b/assets/animations/music_stop/frame_009.webp differ diff --git a/assets/animations/music_stop/frame_010.webp b/assets/animations/music_stop/frame_010.webp new file mode 100644 index 0000000..1c27137 Binary files /dev/null and b/assets/animations/music_stop/frame_010.webp differ diff --git a/assets/animations/music_stop/frame_011.webp b/assets/animations/music_stop/frame_011.webp new file mode 100644 index 0000000..e4fa81d Binary files /dev/null and b/assets/animations/music_stop/frame_011.webp differ diff --git a/assets/animations/music_stop/frame_012.webp b/assets/animations/music_stop/frame_012.webp new file mode 100644 index 0000000..63045cc Binary files /dev/null and b/assets/animations/music_stop/frame_012.webp differ diff --git a/assets/animations/music_stop/frame_013.webp b/assets/animations/music_stop/frame_013.webp new file mode 100644 index 0000000..ef692f8 Binary files /dev/null and b/assets/animations/music_stop/frame_013.webp differ diff --git a/assets/animations/music_stop/frame_014.webp b/assets/animations/music_stop/frame_014.webp new file mode 100644 index 0000000..ea49fb7 Binary files /dev/null and b/assets/animations/music_stop/frame_014.webp differ diff --git a/assets/animations/music_stop/frame_015.webp b/assets/animations/music_stop/frame_015.webp new file mode 100644 index 0000000..685fcc6 Binary files /dev/null and b/assets/animations/music_stop/frame_015.webp differ diff --git a/assets/animations/music_stop/frame_016.webp b/assets/animations/music_stop/frame_016.webp new file mode 100644 index 0000000..c1b0d09 Binary files /dev/null and b/assets/animations/music_stop/frame_016.webp differ diff --git a/assets/animations/music_stop/frame_017.webp b/assets/animations/music_stop/frame_017.webp new file mode 100644 index 0000000..ef6308d Binary files /dev/null and b/assets/animations/music_stop/frame_017.webp differ diff --git a/assets/animations/music_stop/frame_018.webp b/assets/animations/music_stop/frame_018.webp new file mode 100644 index 0000000..ca1a996 Binary files /dev/null and b/assets/animations/music_stop/frame_018.webp differ diff --git a/assets/animations/music_stop/frame_019.webp b/assets/animations/music_stop/frame_019.webp new file mode 100644 index 0000000..4f8bff6 Binary files /dev/null and b/assets/animations/music_stop/frame_019.webp differ diff --git a/assets/animations/music_stop/frame_020.webp b/assets/animations/music_stop/frame_020.webp new file mode 100644 index 0000000..d6ee62a Binary files /dev/null and b/assets/animations/music_stop/frame_020.webp differ diff --git a/assets/animations/music_stop/frame_021.webp b/assets/animations/music_stop/frame_021.webp new file mode 100644 index 0000000..4a9e36f Binary files /dev/null and b/assets/animations/music_stop/frame_021.webp differ diff --git a/assets/animations/music_stop/frame_022.webp b/assets/animations/music_stop/frame_022.webp new file mode 100644 index 0000000..f234c98 Binary files /dev/null and b/assets/animations/music_stop/frame_022.webp differ diff --git a/assets/animations/music_stop/frame_023.webp b/assets/animations/music_stop/frame_023.webp new file mode 100644 index 0000000..1ad15c4 Binary files /dev/null and b/assets/animations/music_stop/frame_023.webp differ diff --git a/assets/animations/music_stop/frame_024.webp b/assets/animations/music_stop/frame_024.webp new file mode 100644 index 0000000..fc460de Binary files /dev/null and b/assets/animations/music_stop/frame_024.webp differ diff --git a/assets/animations/music_stop/frame_025.webp b/assets/animations/music_stop/frame_025.webp new file mode 100644 index 0000000..9eb8b05 Binary files /dev/null and b/assets/animations/music_stop/frame_025.webp differ diff --git a/assets/animations/music_stop/frame_026.webp b/assets/animations/music_stop/frame_026.webp new file mode 100644 index 0000000..8b5a590 Binary files /dev/null and b/assets/animations/music_stop/frame_026.webp differ diff --git a/assets/animations/music_stop/frame_027.webp b/assets/animations/music_stop/frame_027.webp new file mode 100644 index 0000000..f75fce5 Binary files /dev/null and b/assets/animations/music_stop/frame_027.webp differ diff --git a/assets/animations/music_stop/frame_028.webp b/assets/animations/music_stop/frame_028.webp new file mode 100644 index 0000000..1b282df Binary files /dev/null and b/assets/animations/music_stop/frame_028.webp differ diff --git a/assets/animations/music_stop/frame_029.webp b/assets/animations/music_stop/frame_029.webp new file mode 100644 index 0000000..b04018a Binary files /dev/null and b/assets/animations/music_stop/frame_029.webp differ diff --git a/assets/animations/music_stop/frame_030.webp b/assets/animations/music_stop/frame_030.webp new file mode 100644 index 0000000..0d7d56f Binary files /dev/null and b/assets/animations/music_stop/frame_030.webp differ diff --git a/assets/animations/music_stop/frame_031.webp b/assets/animations/music_stop/frame_031.webp new file mode 100644 index 0000000..0d8fe42 Binary files /dev/null and b/assets/animations/music_stop/frame_031.webp differ diff --git a/assets/animations/music_stop/frame_032.webp b/assets/animations/music_stop/frame_032.webp new file mode 100644 index 0000000..371b602 Binary files /dev/null and b/assets/animations/music_stop/frame_032.webp differ diff --git a/assets/animations/music_stop/frame_033.webp b/assets/animations/music_stop/frame_033.webp new file mode 100644 index 0000000..af67e88 Binary files /dev/null and b/assets/animations/music_stop/frame_033.webp differ diff --git a/assets/animations/music_stop/frame_034.webp b/assets/animations/music_stop/frame_034.webp new file mode 100644 index 0000000..63ea5ad Binary files /dev/null and b/assets/animations/music_stop/frame_034.webp differ diff --git a/assets/animations/music_stop/frame_035.webp b/assets/animations/music_stop/frame_035.webp new file mode 100644 index 0000000..c188137 Binary files /dev/null and b/assets/animations/music_stop/frame_035.webp differ diff --git a/assets/animations/music_stop/frame_036.webp b/assets/animations/music_stop/frame_036.webp new file mode 100644 index 0000000..f6c4e4b Binary files /dev/null and b/assets/animations/music_stop/frame_036.webp differ diff --git a/assets/animations/music_stop/frame_037.webp b/assets/animations/music_stop/frame_037.webp new file mode 100644 index 0000000..6af314a Binary files /dev/null and b/assets/animations/music_stop/frame_037.webp differ diff --git a/assets/animations/music_stop/frame_038.webp b/assets/animations/music_stop/frame_038.webp new file mode 100644 index 0000000..72e7a0b Binary files /dev/null and b/assets/animations/music_stop/frame_038.webp differ diff --git a/assets/animations/music_stop/frame_039.webp b/assets/animations/music_stop/frame_039.webp new file mode 100644 index 0000000..bc49f79 Binary files /dev/null and b/assets/animations/music_stop/frame_039.webp differ diff --git a/assets/animations/music_stop/frame_040.webp b/assets/animations/music_stop/frame_040.webp new file mode 100644 index 0000000..bbf4fe7 Binary files /dev/null and b/assets/animations/music_stop/frame_040.webp differ diff --git a/assets/animations/music_stop/frame_041.webp b/assets/animations/music_stop/frame_041.webp new file mode 100644 index 0000000..c7806c8 Binary files /dev/null and b/assets/animations/music_stop/frame_041.webp differ diff --git a/assets/animations/music_stop/frame_042.webp b/assets/animations/music_stop/frame_042.webp new file mode 100644 index 0000000..5a5592e Binary files /dev/null and b/assets/animations/music_stop/frame_042.webp differ diff --git a/assets/animations/music_stop/frame_043.webp b/assets/animations/music_stop/frame_043.webp new file mode 100644 index 0000000..a61e7bc Binary files /dev/null and b/assets/animations/music_stop/frame_043.webp differ diff --git a/assets/animations/music_stop/frame_044.webp b/assets/animations/music_stop/frame_044.webp new file mode 100644 index 0000000..8357f54 Binary files /dev/null and b/assets/animations/music_stop/frame_044.webp differ diff --git a/assets/animations/music_stop/frame_045.webp b/assets/animations/music_stop/frame_045.webp new file mode 100644 index 0000000..46acbb1 Binary files /dev/null and b/assets/animations/music_stop/frame_045.webp differ diff --git a/assets/animations/music_stop/frame_046.webp b/assets/animations/music_stop/frame_046.webp new file mode 100644 index 0000000..300993a Binary files /dev/null and b/assets/animations/music_stop/frame_046.webp differ diff --git a/assets/animations/music_stop/frame_047.webp b/assets/animations/music_stop/frame_047.webp new file mode 100644 index 0000000..68a8a32 Binary files /dev/null and b/assets/animations/music_stop/frame_047.webp differ diff --git a/assets/animations/music_stop/frame_048.webp b/assets/animations/music_stop/frame_048.webp new file mode 100644 index 0000000..45cf138 Binary files /dev/null and b/assets/animations/music_stop/frame_048.webp differ diff --git a/assets/animations/music_stop/frame_049.webp b/assets/animations/music_stop/frame_049.webp new file mode 100644 index 0000000..944a2e1 Binary files /dev/null and b/assets/animations/music_stop/frame_049.webp differ diff --git a/assets/animations/music_stop/frame_050.webp b/assets/animations/music_stop/frame_050.webp new file mode 100644 index 0000000..96f353d Binary files /dev/null and b/assets/animations/music_stop/frame_050.webp differ diff --git a/assets/animations/music_stop/frame_051.webp b/assets/animations/music_stop/frame_051.webp new file mode 100644 index 0000000..e4adfc4 Binary files /dev/null and b/assets/animations/music_stop/frame_051.webp differ diff --git a/assets/animations/music_stop/frame_052.webp b/assets/animations/music_stop/frame_052.webp new file mode 100644 index 0000000..d646153 Binary files /dev/null and b/assets/animations/music_stop/frame_052.webp differ diff --git a/assets/animations/music_stop/frame_053.webp b/assets/animations/music_stop/frame_053.webp new file mode 100644 index 0000000..c0971f8 Binary files /dev/null and b/assets/animations/music_stop/frame_053.webp differ diff --git a/assets/animations/music_stop/frame_054.webp b/assets/animations/music_stop/frame_054.webp new file mode 100644 index 0000000..9e23a55 Binary files /dev/null and b/assets/animations/music_stop/frame_054.webp differ diff --git a/assets/animations/music_stop/frame_055.webp b/assets/animations/music_stop/frame_055.webp new file mode 100644 index 0000000..bbcca29 Binary files /dev/null and b/assets/animations/music_stop/frame_055.webp differ diff --git a/assets/animations/music_stop/frame_056.webp b/assets/animations/music_stop/frame_056.webp new file mode 100644 index 0000000..8ab847a Binary files /dev/null and b/assets/animations/music_stop/frame_056.webp differ diff --git a/assets/animations/music_stop/frame_057.webp b/assets/animations/music_stop/frame_057.webp new file mode 100644 index 0000000..6fb0aae Binary files /dev/null and b/assets/animations/music_stop/frame_057.webp differ diff --git a/assets/animations/music_stop/frame_058.webp b/assets/animations/music_stop/frame_058.webp new file mode 100644 index 0000000..bd38833 Binary files /dev/null and b/assets/animations/music_stop/frame_058.webp differ diff --git a/assets/animations/music_stop/frame_059.webp b/assets/animations/music_stop/frame_059.webp new file mode 100644 index 0000000..eb1b65b Binary files /dev/null and b/assets/animations/music_stop/frame_059.webp differ diff --git a/assets/animations/music_stop/frame_060.webp b/assets/animations/music_stop/frame_060.webp new file mode 100644 index 0000000..2808d3c Binary files /dev/null and b/assets/animations/music_stop/frame_060.webp differ diff --git a/assets/animations/music_stop/frame_061.webp b/assets/animations/music_stop/frame_061.webp new file mode 100644 index 0000000..4429017 Binary files /dev/null and b/assets/animations/music_stop/frame_061.webp differ diff --git a/assets/animations/screenshot/frame_000.webp b/assets/animations/screenshot/frame_000.webp new file mode 100644 index 0000000..34f3dec Binary files /dev/null and b/assets/animations/screenshot/frame_000.webp differ diff --git a/assets/animations/screenshot/frame_001.webp b/assets/animations/screenshot/frame_001.webp new file mode 100644 index 0000000..6a5091d Binary files /dev/null and b/assets/animations/screenshot/frame_001.webp differ diff --git a/assets/animations/screenshot/frame_002.webp b/assets/animations/screenshot/frame_002.webp new file mode 100644 index 0000000..e016e01 Binary files /dev/null and b/assets/animations/screenshot/frame_002.webp differ diff --git a/assets/animations/screenshot/frame_003.webp b/assets/animations/screenshot/frame_003.webp new file mode 100644 index 0000000..bb77fb9 Binary files /dev/null and b/assets/animations/screenshot/frame_003.webp differ diff --git a/assets/animations/screenshot/frame_004.webp b/assets/animations/screenshot/frame_004.webp new file mode 100644 index 0000000..7817536 Binary files /dev/null and b/assets/animations/screenshot/frame_004.webp differ diff --git a/assets/animations/screenshot/frame_005.webp b/assets/animations/screenshot/frame_005.webp new file mode 100644 index 0000000..45d5442 Binary files /dev/null and b/assets/animations/screenshot/frame_005.webp differ diff --git a/assets/animations/screenshot/frame_006.webp b/assets/animations/screenshot/frame_006.webp new file mode 100644 index 0000000..eab2dad Binary files /dev/null and b/assets/animations/screenshot/frame_006.webp differ diff --git a/assets/animations/screenshot/frame_007.webp b/assets/animations/screenshot/frame_007.webp new file mode 100644 index 0000000..77e18d2 Binary files /dev/null and b/assets/animations/screenshot/frame_007.webp differ diff --git a/assets/animations/screenshot/frame_008.webp b/assets/animations/screenshot/frame_008.webp new file mode 100644 index 0000000..df978cc Binary files /dev/null and b/assets/animations/screenshot/frame_008.webp differ diff --git a/assets/animations/screenshot/frame_009.webp b/assets/animations/screenshot/frame_009.webp new file mode 100644 index 0000000..cd8250e Binary files /dev/null and b/assets/animations/screenshot/frame_009.webp differ diff --git a/assets/animations/screenshot/frame_010.webp b/assets/animations/screenshot/frame_010.webp new file mode 100644 index 0000000..28a08ea Binary files /dev/null and b/assets/animations/screenshot/frame_010.webp differ diff --git a/assets/animations/screenshot/frame_011.webp b/assets/animations/screenshot/frame_011.webp new file mode 100644 index 0000000..84710cb Binary files /dev/null and b/assets/animations/screenshot/frame_011.webp differ diff --git a/assets/animations/screenshot/frame_012.webp b/assets/animations/screenshot/frame_012.webp new file mode 100644 index 0000000..b0b4ca4 Binary files /dev/null and b/assets/animations/screenshot/frame_012.webp differ diff --git a/assets/animations/screenshot/frame_013.webp b/assets/animations/screenshot/frame_013.webp new file mode 100644 index 0000000..4922f8b Binary files /dev/null and b/assets/animations/screenshot/frame_013.webp differ diff --git a/assets/animations/screenshot/frame_014.webp b/assets/animations/screenshot/frame_014.webp new file mode 100644 index 0000000..e727700 Binary files /dev/null and b/assets/animations/screenshot/frame_014.webp differ diff --git a/assets/animations/screenshot/frame_015.webp b/assets/animations/screenshot/frame_015.webp new file mode 100644 index 0000000..1b3bc73 Binary files /dev/null and b/assets/animations/screenshot/frame_015.webp differ diff --git a/assets/animations/screenshot/frame_016.webp b/assets/animations/screenshot/frame_016.webp new file mode 100644 index 0000000..54314a9 Binary files /dev/null and b/assets/animations/screenshot/frame_016.webp differ diff --git a/assets/animations/screenshot/frame_017.webp b/assets/animations/screenshot/frame_017.webp new file mode 100644 index 0000000..a07a490 Binary files /dev/null and b/assets/animations/screenshot/frame_017.webp differ diff --git a/assets/animations/screenshot/frame_018.webp b/assets/animations/screenshot/frame_018.webp new file mode 100644 index 0000000..62b8e21 Binary files /dev/null and b/assets/animations/screenshot/frame_018.webp differ diff --git a/assets/animations/screenshot/frame_019.webp b/assets/animations/screenshot/frame_019.webp new file mode 100644 index 0000000..571d319 Binary files /dev/null and b/assets/animations/screenshot/frame_019.webp differ diff --git a/assets/animations/screenshot/frame_020.webp b/assets/animations/screenshot/frame_020.webp new file mode 100644 index 0000000..f79b0f8 Binary files /dev/null and b/assets/animations/screenshot/frame_020.webp differ diff --git a/assets/animations/screenshot/frame_021.webp b/assets/animations/screenshot/frame_021.webp new file mode 100644 index 0000000..8f37812 Binary files /dev/null and b/assets/animations/screenshot/frame_021.webp differ diff --git a/assets/animations/screenshot/frame_022.webp b/assets/animations/screenshot/frame_022.webp new file mode 100644 index 0000000..e399ef1 Binary files /dev/null and b/assets/animations/screenshot/frame_022.webp differ diff --git a/assets/animations/screenshot/frame_023.webp b/assets/animations/screenshot/frame_023.webp new file mode 100644 index 0000000..08b67e2 Binary files /dev/null and b/assets/animations/screenshot/frame_023.webp differ diff --git a/assets/animations/screenshot/frame_024.webp b/assets/animations/screenshot/frame_024.webp new file mode 100644 index 0000000..0aaa822 Binary files /dev/null and b/assets/animations/screenshot/frame_024.webp differ diff --git a/assets/animations/screenshot/frame_025.webp b/assets/animations/screenshot/frame_025.webp new file mode 100644 index 0000000..fbc5bb4 Binary files /dev/null and b/assets/animations/screenshot/frame_025.webp differ diff --git a/assets/animations/screenshot/frame_026.webp b/assets/animations/screenshot/frame_026.webp new file mode 100644 index 0000000..23b3e07 Binary files /dev/null and b/assets/animations/screenshot/frame_026.webp differ diff --git a/assets/animations/screenshot/frame_027.webp b/assets/animations/screenshot/frame_027.webp new file mode 100644 index 0000000..20a7872 Binary files /dev/null and b/assets/animations/screenshot/frame_027.webp differ diff --git a/assets/animations/screenshot/frame_028.webp b/assets/animations/screenshot/frame_028.webp new file mode 100644 index 0000000..23f233a Binary files /dev/null and b/assets/animations/screenshot/frame_028.webp differ diff --git a/assets/animations/screenshot/frame_029.webp b/assets/animations/screenshot/frame_029.webp new file mode 100644 index 0000000..adf65eb Binary files /dev/null and b/assets/animations/screenshot/frame_029.webp differ diff --git a/assets/animations/screenshot/frame_030.webp b/assets/animations/screenshot/frame_030.webp new file mode 100644 index 0000000..d946528 Binary files /dev/null and b/assets/animations/screenshot/frame_030.webp differ diff --git a/assets/animations/screenshot/frame_031.webp b/assets/animations/screenshot/frame_031.webp new file mode 100644 index 0000000..532efe1 Binary files /dev/null and b/assets/animations/screenshot/frame_031.webp differ diff --git a/assets/animations/screenshot/frame_032.webp b/assets/animations/screenshot/frame_032.webp new file mode 100644 index 0000000..7b81bf0 Binary files /dev/null and b/assets/animations/screenshot/frame_032.webp differ diff --git a/assets/animations/screenshot/frame_033.webp b/assets/animations/screenshot/frame_033.webp new file mode 100644 index 0000000..92e06f5 Binary files /dev/null and b/assets/animations/screenshot/frame_033.webp differ diff --git a/assets/animations/screenshot/frame_034.webp b/assets/animations/screenshot/frame_034.webp new file mode 100644 index 0000000..9bbd909 Binary files /dev/null and b/assets/animations/screenshot/frame_034.webp differ diff --git a/assets/animations/screenshot/frame_035.webp b/assets/animations/screenshot/frame_035.webp new file mode 100644 index 0000000..801bcb6 Binary files /dev/null and b/assets/animations/screenshot/frame_035.webp differ diff --git a/assets/animations/screenshot/frame_036.webp b/assets/animations/screenshot/frame_036.webp new file mode 100644 index 0000000..2aa1028 Binary files /dev/null and b/assets/animations/screenshot/frame_036.webp differ diff --git a/assets/animations/screenshot/frame_037.webp b/assets/animations/screenshot/frame_037.webp new file mode 100644 index 0000000..f4e157b Binary files /dev/null and b/assets/animations/screenshot/frame_037.webp differ diff --git a/assets/animations/screenshot/frame_038.webp b/assets/animations/screenshot/frame_038.webp new file mode 100644 index 0000000..dc4e1bf Binary files /dev/null and b/assets/animations/screenshot/frame_038.webp differ diff --git a/assets/animations/screenshot/frame_039.webp b/assets/animations/screenshot/frame_039.webp new file mode 100644 index 0000000..d7635f1 Binary files /dev/null and b/assets/animations/screenshot/frame_039.webp differ diff --git a/assets/animations/screenshot/frame_040.webp b/assets/animations/screenshot/frame_040.webp new file mode 100644 index 0000000..3565250 Binary files /dev/null and b/assets/animations/screenshot/frame_040.webp differ diff --git a/assets/animations/screenshot/frame_041.webp b/assets/animations/screenshot/frame_041.webp new file mode 100644 index 0000000..c61565c Binary files /dev/null and b/assets/animations/screenshot/frame_041.webp differ diff --git a/assets/animations/screenshot/frame_042.webp b/assets/animations/screenshot/frame_042.webp new file mode 100644 index 0000000..fcef786 Binary files /dev/null and b/assets/animations/screenshot/frame_042.webp differ diff --git a/assets/animations/screenshot/frame_043.webp b/assets/animations/screenshot/frame_043.webp new file mode 100644 index 0000000..2dfe624 Binary files /dev/null and b/assets/animations/screenshot/frame_043.webp differ diff --git a/assets/animations/screenshot/frame_044.webp b/assets/animations/screenshot/frame_044.webp new file mode 100644 index 0000000..0f47f4e Binary files /dev/null and b/assets/animations/screenshot/frame_044.webp differ diff --git a/assets/animations/screenshot/frame_045.webp b/assets/animations/screenshot/frame_045.webp new file mode 100644 index 0000000..72e13a2 Binary files /dev/null and b/assets/animations/screenshot/frame_045.webp differ diff --git a/assets/animations/screenshot/frame_046.webp b/assets/animations/screenshot/frame_046.webp new file mode 100644 index 0000000..771e282 Binary files /dev/null and b/assets/animations/screenshot/frame_046.webp differ diff --git a/assets/animations/screenshot/frame_047.webp b/assets/animations/screenshot/frame_047.webp new file mode 100644 index 0000000..5bd53b8 Binary files /dev/null and b/assets/animations/screenshot/frame_047.webp differ diff --git a/assets/animations/screenshot/frame_048.webp b/assets/animations/screenshot/frame_048.webp new file mode 100644 index 0000000..0916a1f Binary files /dev/null and b/assets/animations/screenshot/frame_048.webp differ diff --git a/assets/animations/screenshot/frame_049.webp b/assets/animations/screenshot/frame_049.webp new file mode 100644 index 0000000..ba974e6 Binary files /dev/null and b/assets/animations/screenshot/frame_049.webp differ diff --git a/assets/animations/screenshot/frame_050.webp b/assets/animations/screenshot/frame_050.webp new file mode 100644 index 0000000..090a383 Binary files /dev/null and b/assets/animations/screenshot/frame_050.webp differ diff --git a/assets/animations/screenshot/frame_051.webp b/assets/animations/screenshot/frame_051.webp new file mode 100644 index 0000000..5dcdf45 Binary files /dev/null and b/assets/animations/screenshot/frame_051.webp differ diff --git a/assets/animations/screenshot/frame_052.webp b/assets/animations/screenshot/frame_052.webp new file mode 100644 index 0000000..0619e4a Binary files /dev/null and b/assets/animations/screenshot/frame_052.webp differ diff --git a/assets/animations/screenshot/frame_053.webp b/assets/animations/screenshot/frame_053.webp new file mode 100644 index 0000000..b4f1a8c Binary files /dev/null and b/assets/animations/screenshot/frame_053.webp differ diff --git a/assets/animations/screenshot/frame_054.webp b/assets/animations/screenshot/frame_054.webp new file mode 100644 index 0000000..6a98c54 Binary files /dev/null and b/assets/animations/screenshot/frame_054.webp differ diff --git a/assets/animations/screenshot/frame_055.webp b/assets/animations/screenshot/frame_055.webp new file mode 100644 index 0000000..3f0fe92 Binary files /dev/null and b/assets/animations/screenshot/frame_055.webp differ diff --git a/assets/animations/screenshot/frame_056.webp b/assets/animations/screenshot/frame_056.webp new file mode 100644 index 0000000..938bd42 Binary files /dev/null and b/assets/animations/screenshot/frame_056.webp differ diff --git a/assets/animations/screenshot/frame_057.webp b/assets/animations/screenshot/frame_057.webp new file mode 100644 index 0000000..0462a6f Binary files /dev/null and b/assets/animations/screenshot/frame_057.webp differ diff --git a/assets/animations/screenshot/frame_058.webp b/assets/animations/screenshot/frame_058.webp new file mode 100644 index 0000000..e940b9a Binary files /dev/null and b/assets/animations/screenshot/frame_058.webp differ diff --git a/assets/animations/screenshot/frame_059.webp b/assets/animations/screenshot/frame_059.webp new file mode 100644 index 0000000..d58e0ff Binary files /dev/null and b/assets/animations/screenshot/frame_059.webp differ diff --git a/assets/animations/screenshot/frame_060.webp b/assets/animations/screenshot/frame_060.webp new file mode 100644 index 0000000..ab4e88a Binary files /dev/null and b/assets/animations/screenshot/frame_060.webp differ diff --git a/assets/animations/screenshot/frame_061.webp b/assets/animations/screenshot/frame_061.webp new file mode 100644 index 0000000..e7a1475 Binary files /dev/null and b/assets/animations/screenshot/frame_061.webp differ diff --git a/assets/animations/screenshot/frame_062.webp b/assets/animations/screenshot/frame_062.webp new file mode 100644 index 0000000..49c6c1b Binary files /dev/null and b/assets/animations/screenshot/frame_062.webp differ diff --git a/assets/animations/screenshot/frame_063.webp b/assets/animations/screenshot/frame_063.webp new file mode 100644 index 0000000..a0cbeaa Binary files /dev/null and b/assets/animations/screenshot/frame_063.webp differ diff --git a/assets/animations/screenshot/frame_064.webp b/assets/animations/screenshot/frame_064.webp new file mode 100644 index 0000000..e95663a Binary files /dev/null and b/assets/animations/screenshot/frame_064.webp differ diff --git a/assets/animations/screenshot/frame_065.webp b/assets/animations/screenshot/frame_065.webp new file mode 100644 index 0000000..c32077f Binary files /dev/null and b/assets/animations/screenshot/frame_065.webp differ diff --git a/assets/animations/screenshot/frame_066.webp b/assets/animations/screenshot/frame_066.webp new file mode 100644 index 0000000..974b461 Binary files /dev/null and b/assets/animations/screenshot/frame_066.webp differ diff --git a/assets/animations/screenshot/frame_067.webp b/assets/animations/screenshot/frame_067.webp new file mode 100644 index 0000000..221a585 Binary files /dev/null and b/assets/animations/screenshot/frame_067.webp differ diff --git a/assets/animations/screenshot/frame_068.webp b/assets/animations/screenshot/frame_068.webp new file mode 100644 index 0000000..75f8093 Binary files /dev/null and b/assets/animations/screenshot/frame_068.webp differ diff --git a/assets/animations/screenshot/frame_069.webp b/assets/animations/screenshot/frame_069.webp new file mode 100644 index 0000000..fd52a12 Binary files /dev/null and b/assets/animations/screenshot/frame_069.webp differ diff --git a/assets/animations/screenshot/frame_070.webp b/assets/animations/screenshot/frame_070.webp new file mode 100644 index 0000000..112b5a1 Binary files /dev/null and b/assets/animations/screenshot/frame_070.webp differ diff --git a/assets/animations/screenshot/frame_071.webp b/assets/animations/screenshot/frame_071.webp new file mode 100644 index 0000000..0a89b72 Binary files /dev/null and b/assets/animations/screenshot/frame_071.webp differ diff --git a/assets/animations/screenshot/frame_072.webp b/assets/animations/screenshot/frame_072.webp new file mode 100644 index 0000000..70e3ce3 Binary files /dev/null and b/assets/animations/screenshot/frame_072.webp differ diff --git a/assets/animations/screenshot/frame_073.webp b/assets/animations/screenshot/frame_073.webp new file mode 100644 index 0000000..53e6a2b Binary files /dev/null and b/assets/animations/screenshot/frame_073.webp differ diff --git a/assets/animations/screenshot/frame_074.webp b/assets/animations/screenshot/frame_074.webp new file mode 100644 index 0000000..fd64883 Binary files /dev/null and b/assets/animations/screenshot/frame_074.webp differ diff --git a/assets/animations/screenshot/frame_075.webp b/assets/animations/screenshot/frame_075.webp new file mode 100644 index 0000000..094b15b Binary files /dev/null and b/assets/animations/screenshot/frame_075.webp differ diff --git a/assets/animations/screenshot/frame_076.webp b/assets/animations/screenshot/frame_076.webp new file mode 100644 index 0000000..685146b Binary files /dev/null and b/assets/animations/screenshot/frame_076.webp differ diff --git a/assets/animations/screenshot/frame_077.webp b/assets/animations/screenshot/frame_077.webp new file mode 100644 index 0000000..b30e1a9 Binary files /dev/null and b/assets/animations/screenshot/frame_077.webp differ diff --git a/assets/animations/screenshot/frame_078.webp b/assets/animations/screenshot/frame_078.webp new file mode 100644 index 0000000..556606c Binary files /dev/null and b/assets/animations/screenshot/frame_078.webp differ diff --git a/assets/animations/screenshot/frame_079.webp b/assets/animations/screenshot/frame_079.webp new file mode 100644 index 0000000..e6262d5 Binary files /dev/null and b/assets/animations/screenshot/frame_079.webp differ diff --git a/assets/animations/screenshot/frame_080.webp b/assets/animations/screenshot/frame_080.webp new file mode 100644 index 0000000..2cbf08a Binary files /dev/null and b/assets/animations/screenshot/frame_080.webp differ diff --git a/assets/animations/screenshot/frame_081.webp b/assets/animations/screenshot/frame_081.webp new file mode 100644 index 0000000..84ed107 Binary files /dev/null and b/assets/animations/screenshot/frame_081.webp differ diff --git a/assets/animations/screenshot/frame_082.webp b/assets/animations/screenshot/frame_082.webp new file mode 100644 index 0000000..cd6ab72 Binary files /dev/null and b/assets/animations/screenshot/frame_082.webp differ diff --git a/assets/animations/screenshot/frame_083.webp b/assets/animations/screenshot/frame_083.webp new file mode 100644 index 0000000..b40fcc2 Binary files /dev/null and b/assets/animations/screenshot/frame_083.webp differ diff --git a/assets/animations/screenshot/frame_084.webp b/assets/animations/screenshot/frame_084.webp new file mode 100644 index 0000000..5cce7be Binary files /dev/null and b/assets/animations/screenshot/frame_084.webp differ diff --git a/assets/animations/screenshot/frame_085.webp b/assets/animations/screenshot/frame_085.webp new file mode 100644 index 0000000..0b57825 Binary files /dev/null and b/assets/animations/screenshot/frame_085.webp differ diff --git a/assets/animations/screenshot/frame_086.webp b/assets/animations/screenshot/frame_086.webp new file mode 100644 index 0000000..6b13459 Binary files /dev/null and b/assets/animations/screenshot/frame_086.webp differ diff --git a/assets/animations/screenshot/frame_087.webp b/assets/animations/screenshot/frame_087.webp new file mode 100644 index 0000000..26c7531 Binary files /dev/null and b/assets/animations/screenshot/frame_087.webp differ diff --git a/assets/animations/screenshot/frame_088.webp b/assets/animations/screenshot/frame_088.webp new file mode 100644 index 0000000..39148d9 Binary files /dev/null and b/assets/animations/screenshot/frame_088.webp differ diff --git a/assets/animations/screenshot/frame_089.webp b/assets/animations/screenshot/frame_089.webp new file mode 100644 index 0000000..50b2daa Binary files /dev/null and b/assets/animations/screenshot/frame_089.webp differ diff --git a/assets/animations/screenshot/frame_090.webp b/assets/animations/screenshot/frame_090.webp new file mode 100644 index 0000000..38ae3f8 Binary files /dev/null and b/assets/animations/screenshot/frame_090.webp differ diff --git a/assets/animations/screenshot/frame_091.webp b/assets/animations/screenshot/frame_091.webp new file mode 100644 index 0000000..121cfa3 Binary files /dev/null and b/assets/animations/screenshot/frame_091.webp differ diff --git a/assets/animations/screenshot/frame_092.webp b/assets/animations/screenshot/frame_092.webp new file mode 100644 index 0000000..7a32661 Binary files /dev/null and b/assets/animations/screenshot/frame_092.webp differ diff --git a/assets/animations/screenshot/frame_093.webp b/assets/animations/screenshot/frame_093.webp new file mode 100644 index 0000000..1c608c5 Binary files /dev/null and b/assets/animations/screenshot/frame_093.webp differ diff --git a/assets/animations/screenshot/frame_094.webp b/assets/animations/screenshot/frame_094.webp new file mode 100644 index 0000000..0211dec Binary files /dev/null and b/assets/animations/screenshot/frame_094.webp differ diff --git a/assets/animations/screenshot/frame_095.webp b/assets/animations/screenshot/frame_095.webp new file mode 100644 index 0000000..0a8a8c1 Binary files /dev/null and b/assets/animations/screenshot/frame_095.webp differ diff --git a/assets/animations/screenshot/frame_096.webp b/assets/animations/screenshot/frame_096.webp new file mode 100644 index 0000000..cdfdd4a Binary files /dev/null and b/assets/animations/screenshot/frame_096.webp differ diff --git a/assets/animations/screenshot/frame_097.webp b/assets/animations/screenshot/frame_097.webp new file mode 100644 index 0000000..df8b14c Binary files /dev/null and b/assets/animations/screenshot/frame_097.webp differ diff --git a/assets/animations/screenshot/frame_098.webp b/assets/animations/screenshot/frame_098.webp new file mode 100644 index 0000000..2873fdf Binary files /dev/null and b/assets/animations/screenshot/frame_098.webp differ diff --git a/assets/animations/screenshot/frame_099.webp b/assets/animations/screenshot/frame_099.webp new file mode 100644 index 0000000..1aad8b1 Binary files /dev/null and b/assets/animations/screenshot/frame_099.webp differ diff --git a/assets/animations/screenshot/frame_100.webp b/assets/animations/screenshot/frame_100.webp new file mode 100644 index 0000000..2490bf1 Binary files /dev/null and b/assets/animations/screenshot/frame_100.webp differ diff --git a/assets/animations/screenshot/frame_101.webp b/assets/animations/screenshot/frame_101.webp new file mode 100644 index 0000000..a48d809 Binary files /dev/null and b/assets/animations/screenshot/frame_101.webp differ diff --git a/assets/animations/screenshot/frame_102.webp b/assets/animations/screenshot/frame_102.webp new file mode 100644 index 0000000..263b282 Binary files /dev/null and b/assets/animations/screenshot/frame_102.webp differ diff --git a/assets/animations/screenshot/frame_103.webp b/assets/animations/screenshot/frame_103.webp new file mode 100644 index 0000000..e827071 Binary files /dev/null and b/assets/animations/screenshot/frame_103.webp differ diff --git a/assets/animations/screenshot/frame_104.webp b/assets/animations/screenshot/frame_104.webp new file mode 100644 index 0000000..465a3df Binary files /dev/null and b/assets/animations/screenshot/frame_104.webp differ diff --git a/assets/animations/screenshot/frame_105.webp b/assets/animations/screenshot/frame_105.webp new file mode 100644 index 0000000..0f760cd Binary files /dev/null and b/assets/animations/screenshot/frame_105.webp differ diff --git a/assets/animations/screenshot/frame_106.webp b/assets/animations/screenshot/frame_106.webp new file mode 100644 index 0000000..3d77405 Binary files /dev/null and b/assets/animations/screenshot/frame_106.webp differ diff --git a/assets/animations/screenshot/frame_107.webp b/assets/animations/screenshot/frame_107.webp new file mode 100644 index 0000000..35b3c69 Binary files /dev/null and b/assets/animations/screenshot/frame_107.webp differ diff --git a/assets/animations/screenshot/frame_108.webp b/assets/animations/screenshot/frame_108.webp new file mode 100644 index 0000000..7248977 Binary files /dev/null and b/assets/animations/screenshot/frame_108.webp differ diff --git a/assets/animations/screenshot/frame_109.webp b/assets/animations/screenshot/frame_109.webp new file mode 100644 index 0000000..37ec110 Binary files /dev/null and b/assets/animations/screenshot/frame_109.webp differ diff --git a/assets/animations/screenshot/frame_110.webp b/assets/animations/screenshot/frame_110.webp new file mode 100644 index 0000000..c5f15dd Binary files /dev/null and b/assets/animations/screenshot/frame_110.webp differ diff --git a/assets/animations/screenshot/frame_111.webp b/assets/animations/screenshot/frame_111.webp new file mode 100644 index 0000000..a08e1e2 Binary files /dev/null and b/assets/animations/screenshot/frame_111.webp differ diff --git a/assets/animations/screenshot/frame_112.webp b/assets/animations/screenshot/frame_112.webp new file mode 100644 index 0000000..d440aae Binary files /dev/null and b/assets/animations/screenshot/frame_112.webp differ diff --git a/assets/animations/screenshot/frame_113.webp b/assets/animations/screenshot/frame_113.webp new file mode 100644 index 0000000..558cca0 Binary files /dev/null and b/assets/animations/screenshot/frame_113.webp differ diff --git a/assets/animations/screenshot/frame_114.webp b/assets/animations/screenshot/frame_114.webp new file mode 100644 index 0000000..7a8148c Binary files /dev/null and b/assets/animations/screenshot/frame_114.webp differ diff --git a/assets/animations/screenshot/frame_115.webp b/assets/animations/screenshot/frame_115.webp new file mode 100644 index 0000000..d40d28a Binary files /dev/null and b/assets/animations/screenshot/frame_115.webp differ diff --git a/assets/animations/screenshot/frame_116.webp b/assets/animations/screenshot/frame_116.webp new file mode 100644 index 0000000..1495f60 Binary files /dev/null and b/assets/animations/screenshot/frame_116.webp differ diff --git a/assets/animations/screenshot/frame_117.webp b/assets/animations/screenshot/frame_117.webp new file mode 100644 index 0000000..203ae55 Binary files /dev/null and b/assets/animations/screenshot/frame_117.webp differ diff --git a/assets/animations/screenshot/frame_118.webp b/assets/animations/screenshot/frame_118.webp new file mode 100644 index 0000000..0241fc7 Binary files /dev/null and b/assets/animations/screenshot/frame_118.webp differ diff --git a/assets/animations/screenshot/frame_119.webp b/assets/animations/screenshot/frame_119.webp new file mode 100644 index 0000000..74ebeff Binary files /dev/null and b/assets/animations/screenshot/frame_119.webp differ diff --git a/assets/animations/screenshot/frame_120.webp b/assets/animations/screenshot/frame_120.webp new file mode 100644 index 0000000..d15b6ab Binary files /dev/null and b/assets/animations/screenshot/frame_120.webp differ diff --git a/assets/animations/screenshot/frame_121.webp b/assets/animations/screenshot/frame_121.webp new file mode 100644 index 0000000..3f9c336 Binary files /dev/null and b/assets/animations/screenshot/frame_121.webp differ diff --git a/assets/animations/screenshot/frame_122.webp b/assets/animations/screenshot/frame_122.webp new file mode 100644 index 0000000..8c29c72 Binary files /dev/null and b/assets/animations/screenshot/frame_122.webp differ diff --git a/assets/animations/screenshot/frame_123.webp b/assets/animations/screenshot/frame_123.webp new file mode 100644 index 0000000..b9283ea Binary files /dev/null and b/assets/animations/screenshot/frame_123.webp differ diff --git a/assets/animations/screenshot/frame_124.webp b/assets/animations/screenshot/frame_124.webp new file mode 100644 index 0000000..1d2f26f Binary files /dev/null and b/assets/animations/screenshot/frame_124.webp differ diff --git a/assets/animations/screenshot/frame_125.webp b/assets/animations/screenshot/frame_125.webp new file mode 100644 index 0000000..10605e6 Binary files /dev/null and b/assets/animations/screenshot/frame_125.webp differ diff --git a/assets/animations/screenshot/frame_126.webp b/assets/animations/screenshot/frame_126.webp new file mode 100644 index 0000000..6ddf945 Binary files /dev/null and b/assets/animations/screenshot/frame_126.webp differ diff --git a/assets/animations/screenshot/frame_127.webp b/assets/animations/screenshot/frame_127.webp new file mode 100644 index 0000000..098c672 Binary files /dev/null and b/assets/animations/screenshot/frame_127.webp differ diff --git a/assets/animations/screenshot/frame_128.webp b/assets/animations/screenshot/frame_128.webp new file mode 100644 index 0000000..d2d28a9 Binary files /dev/null and b/assets/animations/screenshot/frame_128.webp differ diff --git a/assets/animations/screenshot/frame_129.webp b/assets/animations/screenshot/frame_129.webp new file mode 100644 index 0000000..78cf1a2 Binary files /dev/null and b/assets/animations/screenshot/frame_129.webp differ diff --git a/assets/animations/screenshot/frame_130.webp b/assets/animations/screenshot/frame_130.webp new file mode 100644 index 0000000..6a01400 Binary files /dev/null and b/assets/animations/screenshot/frame_130.webp differ diff --git a/assets/animations/screenshot/frame_131.webp b/assets/animations/screenshot/frame_131.webp new file mode 100644 index 0000000..74545cc Binary files /dev/null and b/assets/animations/screenshot/frame_131.webp differ diff --git a/assets/animations/screenshot/frame_132.webp b/assets/animations/screenshot/frame_132.webp new file mode 100644 index 0000000..7932ea2 Binary files /dev/null and b/assets/animations/screenshot/frame_132.webp differ diff --git a/assets/animations/screenshot/frame_133.webp b/assets/animations/screenshot/frame_133.webp new file mode 100644 index 0000000..df4162f Binary files /dev/null and b/assets/animations/screenshot/frame_133.webp differ diff --git a/assets/animations/screenshot/frame_134.webp b/assets/animations/screenshot/frame_134.webp new file mode 100644 index 0000000..9b7f218 Binary files /dev/null and b/assets/animations/screenshot/frame_134.webp differ diff --git a/assets/animations/screenshot/frame_135.webp b/assets/animations/screenshot/frame_135.webp new file mode 100644 index 0000000..66ec681 Binary files /dev/null and b/assets/animations/screenshot/frame_135.webp differ diff --git a/assets/animations/screenshot/frame_136.webp b/assets/animations/screenshot/frame_136.webp new file mode 100644 index 0000000..0a09068 Binary files /dev/null and b/assets/animations/screenshot/frame_136.webp differ diff --git a/assets/animations/screenshot/frame_137.webp b/assets/animations/screenshot/frame_137.webp new file mode 100644 index 0000000..b57d15f Binary files /dev/null and b/assets/animations/screenshot/frame_137.webp differ diff --git a/assets/animations/screenshot/frame_138.webp b/assets/animations/screenshot/frame_138.webp new file mode 100644 index 0000000..db0f002 Binary files /dev/null and b/assets/animations/screenshot/frame_138.webp differ diff --git a/assets/animations/screenshot/frame_139.webp b/assets/animations/screenshot/frame_139.webp new file mode 100644 index 0000000..d7cf5ca Binary files /dev/null and b/assets/animations/screenshot/frame_139.webp differ diff --git a/assets/animations/typing/frame_000.webp b/assets/animations/typing/frame_000.webp new file mode 100644 index 0000000..2398bb0 Binary files /dev/null and b/assets/animations/typing/frame_000.webp differ diff --git a/assets/animations/typing/frame_001.webp b/assets/animations/typing/frame_001.webp new file mode 100644 index 0000000..8b9322b Binary files /dev/null and b/assets/animations/typing/frame_001.webp differ diff --git a/assets/animations/typing/frame_002.webp b/assets/animations/typing/frame_002.webp new file mode 100644 index 0000000..7f1c634 Binary files /dev/null and b/assets/animations/typing/frame_002.webp differ diff --git a/assets/animations/typing/frame_003.webp b/assets/animations/typing/frame_003.webp new file mode 100644 index 0000000..5849bdd Binary files /dev/null and b/assets/animations/typing/frame_003.webp differ diff --git a/assets/animations/typing/frame_004.webp b/assets/animations/typing/frame_004.webp new file mode 100644 index 0000000..d4fbb79 Binary files /dev/null and b/assets/animations/typing/frame_004.webp differ diff --git a/assets/animations/typing/frame_005.webp b/assets/animations/typing/frame_005.webp new file mode 100644 index 0000000..ee222bb Binary files /dev/null and b/assets/animations/typing/frame_005.webp differ diff --git a/assets/animations/typing/frame_006.webp b/assets/animations/typing/frame_006.webp new file mode 100644 index 0000000..ed48c6c Binary files /dev/null and b/assets/animations/typing/frame_006.webp differ diff --git a/assets/animations/typing/frame_007.webp b/assets/animations/typing/frame_007.webp new file mode 100644 index 0000000..3480852 Binary files /dev/null and b/assets/animations/typing/frame_007.webp differ diff --git a/assets/animations/typing/frame_008.webp b/assets/animations/typing/frame_008.webp new file mode 100644 index 0000000..5d311ca Binary files /dev/null and b/assets/animations/typing/frame_008.webp differ diff --git a/assets/animations/typing/frame_009.webp b/assets/animations/typing/frame_009.webp new file mode 100644 index 0000000..3b42680 Binary files /dev/null and b/assets/animations/typing/frame_009.webp differ diff --git a/assets/animations/typing/frame_010.webp b/assets/animations/typing/frame_010.webp new file mode 100644 index 0000000..5bc7088 Binary files /dev/null and b/assets/animations/typing/frame_010.webp differ diff --git a/assets/animations/typing/frame_011.webp b/assets/animations/typing/frame_011.webp new file mode 100644 index 0000000..fc418cc Binary files /dev/null and b/assets/animations/typing/frame_011.webp differ diff --git a/assets/animations/typing/frame_012.webp b/assets/animations/typing/frame_012.webp new file mode 100644 index 0000000..00459e3 Binary files /dev/null and b/assets/animations/typing/frame_012.webp differ diff --git a/assets/animations/typing/frame_013.webp b/assets/animations/typing/frame_013.webp new file mode 100644 index 0000000..72a4c4f Binary files /dev/null and b/assets/animations/typing/frame_013.webp differ diff --git a/assets/animations/typing/frame_014.webp b/assets/animations/typing/frame_014.webp new file mode 100644 index 0000000..e5ffb4d Binary files /dev/null and b/assets/animations/typing/frame_014.webp differ diff --git a/assets/animations/typing/frame_015.webp b/assets/animations/typing/frame_015.webp new file mode 100644 index 0000000..eb03f91 Binary files /dev/null and b/assets/animations/typing/frame_015.webp differ diff --git a/assets/animations/typing/frame_016.webp b/assets/animations/typing/frame_016.webp new file mode 100644 index 0000000..bbabc08 Binary files /dev/null and b/assets/animations/typing/frame_016.webp differ diff --git a/assets/animations/typing/frame_017.webp b/assets/animations/typing/frame_017.webp new file mode 100644 index 0000000..e761042 Binary files /dev/null and b/assets/animations/typing/frame_017.webp differ diff --git a/assets/animations/typing/frame_018.webp b/assets/animations/typing/frame_018.webp new file mode 100644 index 0000000..e59c958 Binary files /dev/null and b/assets/animations/typing/frame_018.webp differ diff --git a/assets/animations/typing/frame_019.webp b/assets/animations/typing/frame_019.webp new file mode 100644 index 0000000..b0cd45f Binary files /dev/null and b/assets/animations/typing/frame_019.webp differ diff --git a/assets/animations/typing/frame_020.webp b/assets/animations/typing/frame_020.webp new file mode 100644 index 0000000..3b4af5c Binary files /dev/null and b/assets/animations/typing/frame_020.webp differ diff --git a/assets/animations/typing/frame_021.webp b/assets/animations/typing/frame_021.webp new file mode 100644 index 0000000..ae0579f Binary files /dev/null and b/assets/animations/typing/frame_021.webp differ diff --git a/assets/animations/typing/frame_022.webp b/assets/animations/typing/frame_022.webp new file mode 100644 index 0000000..1aed9a2 Binary files /dev/null and b/assets/animations/typing/frame_022.webp differ diff --git a/assets/animations/typing/frame_023.webp b/assets/animations/typing/frame_023.webp new file mode 100644 index 0000000..d425b52 Binary files /dev/null and b/assets/animations/typing/frame_023.webp differ diff --git a/assets/animations/typing/frame_024.webp b/assets/animations/typing/frame_024.webp new file mode 100644 index 0000000..93f375f Binary files /dev/null and b/assets/animations/typing/frame_024.webp differ diff --git a/assets/animations/typing/frame_025.webp b/assets/animations/typing/frame_025.webp new file mode 100644 index 0000000..34e2f50 Binary files /dev/null and b/assets/animations/typing/frame_025.webp differ diff --git a/assets/animations/typing/frame_026.webp b/assets/animations/typing/frame_026.webp new file mode 100644 index 0000000..085dcc7 Binary files /dev/null and b/assets/animations/typing/frame_026.webp differ diff --git a/assets/animations/typing/frame_027.webp b/assets/animations/typing/frame_027.webp new file mode 100644 index 0000000..2efb04e Binary files /dev/null and b/assets/animations/typing/frame_027.webp differ diff --git a/assets/animations/typing/frame_028.webp b/assets/animations/typing/frame_028.webp new file mode 100644 index 0000000..3f22d8d Binary files /dev/null and b/assets/animations/typing/frame_028.webp differ diff --git a/assets/animations/typing/frame_029.webp b/assets/animations/typing/frame_029.webp new file mode 100644 index 0000000..3328017 Binary files /dev/null and b/assets/animations/typing/frame_029.webp differ diff --git a/assets/animations/typing/frame_030.webp b/assets/animations/typing/frame_030.webp new file mode 100644 index 0000000..e0d34ad Binary files /dev/null and b/assets/animations/typing/frame_030.webp differ diff --git a/assets/animations/typing/frame_031.webp b/assets/animations/typing/frame_031.webp new file mode 100644 index 0000000..e20ba5e Binary files /dev/null and b/assets/animations/typing/frame_031.webp differ diff --git a/assets/animations/typing/frame_032.webp b/assets/animations/typing/frame_032.webp new file mode 100644 index 0000000..ed6a0dd Binary files /dev/null and b/assets/animations/typing/frame_032.webp differ diff --git a/assets/animations/typing/frame_033.webp b/assets/animations/typing/frame_033.webp new file mode 100644 index 0000000..4b0693e Binary files /dev/null and b/assets/animations/typing/frame_033.webp differ diff --git a/assets/animations/typing/frame_034.webp b/assets/animations/typing/frame_034.webp new file mode 100644 index 0000000..3f5e853 Binary files /dev/null and b/assets/animations/typing/frame_034.webp differ diff --git a/assets/animations/typing/frame_035.webp b/assets/animations/typing/frame_035.webp new file mode 100644 index 0000000..c226534 Binary files /dev/null and b/assets/animations/typing/frame_035.webp differ diff --git a/assets/animations/typing/frame_036.webp b/assets/animations/typing/frame_036.webp new file mode 100644 index 0000000..4a3fade Binary files /dev/null and b/assets/animations/typing/frame_036.webp differ diff --git a/assets/animations/typing/frame_037.webp b/assets/animations/typing/frame_037.webp new file mode 100644 index 0000000..a250206 Binary files /dev/null and b/assets/animations/typing/frame_037.webp differ diff --git a/assets/animations/typing/frame_038.webp b/assets/animations/typing/frame_038.webp new file mode 100644 index 0000000..e5fdf57 Binary files /dev/null and b/assets/animations/typing/frame_038.webp differ diff --git a/assets/animations/typing/frame_039.webp b/assets/animations/typing/frame_039.webp new file mode 100644 index 0000000..531a8ca Binary files /dev/null and b/assets/animations/typing/frame_039.webp differ diff --git a/assets/animations/typing/frame_040.webp b/assets/animations/typing/frame_040.webp new file mode 100644 index 0000000..4633c41 Binary files /dev/null and b/assets/animations/typing/frame_040.webp differ diff --git a/assets/animations/typing/frame_041.webp b/assets/animations/typing/frame_041.webp new file mode 100644 index 0000000..3048d57 Binary files /dev/null and b/assets/animations/typing/frame_041.webp differ diff --git a/assets/animations/typing/frame_042.webp b/assets/animations/typing/frame_042.webp new file mode 100644 index 0000000..7376be9 Binary files /dev/null and b/assets/animations/typing/frame_042.webp differ diff --git a/assets/animations/typing/frame_043.webp b/assets/animations/typing/frame_043.webp new file mode 100644 index 0000000..1f720be Binary files /dev/null and b/assets/animations/typing/frame_043.webp differ diff --git a/assets/animations/typing/frame_044.webp b/assets/animations/typing/frame_044.webp new file mode 100644 index 0000000..71731de Binary files /dev/null and b/assets/animations/typing/frame_044.webp differ diff --git a/assets/animations/typing/frame_045.webp b/assets/animations/typing/frame_045.webp new file mode 100644 index 0000000..7e4d9b3 Binary files /dev/null and b/assets/animations/typing/frame_045.webp differ diff --git a/assets/animations/typing/frame_046.webp b/assets/animations/typing/frame_046.webp new file mode 100644 index 0000000..c596900 Binary files /dev/null and b/assets/animations/typing/frame_046.webp differ diff --git a/assets/animations/typing/frame_047.webp b/assets/animations/typing/frame_047.webp new file mode 100644 index 0000000..ff7c244 Binary files /dev/null and b/assets/animations/typing/frame_047.webp differ diff --git a/assets/animations/typing/frame_048.webp b/assets/animations/typing/frame_048.webp new file mode 100644 index 0000000..498a9e3 Binary files /dev/null and b/assets/animations/typing/frame_048.webp differ diff --git a/assets/animations/typing/frame_049.webp b/assets/animations/typing/frame_049.webp new file mode 100644 index 0000000..4783d30 Binary files /dev/null and b/assets/animations/typing/frame_049.webp differ diff --git a/assets/animations/typing/frame_050.webp b/assets/animations/typing/frame_050.webp new file mode 100644 index 0000000..87aabd4 Binary files /dev/null and b/assets/animations/typing/frame_050.webp differ diff --git a/assets/animations/typing/frame_051.webp b/assets/animations/typing/frame_051.webp new file mode 100644 index 0000000..5c9d32a Binary files /dev/null and b/assets/animations/typing/frame_051.webp differ diff --git a/assets/animations/typing/frame_052.webp b/assets/animations/typing/frame_052.webp new file mode 100644 index 0000000..d3f842d Binary files /dev/null and b/assets/animations/typing/frame_052.webp differ diff --git a/assets/animations/typing/frame_053.webp b/assets/animations/typing/frame_053.webp new file mode 100644 index 0000000..cd88b9f Binary files /dev/null and b/assets/animations/typing/frame_053.webp differ diff --git a/assets/animations/typing/frame_054.webp b/assets/animations/typing/frame_054.webp new file mode 100644 index 0000000..2a43dec Binary files /dev/null and b/assets/animations/typing/frame_054.webp differ diff --git a/assets/animations/typing/frame_055.webp b/assets/animations/typing/frame_055.webp new file mode 100644 index 0000000..7608f29 Binary files /dev/null and b/assets/animations/typing/frame_055.webp differ diff --git a/assets/animations/typing/frame_056.webp b/assets/animations/typing/frame_056.webp new file mode 100644 index 0000000..3170895 Binary files /dev/null and b/assets/animations/typing/frame_056.webp differ diff --git a/assets/animations/typing/frame_057.webp b/assets/animations/typing/frame_057.webp new file mode 100644 index 0000000..e7c9754 Binary files /dev/null and b/assets/animations/typing/frame_057.webp differ diff --git a/assets/animations/typing/frame_058.webp b/assets/animations/typing/frame_058.webp new file mode 100644 index 0000000..cac524d Binary files /dev/null and b/assets/animations/typing/frame_058.webp differ diff --git a/assets/animations/typing/frame_059.webp b/assets/animations/typing/frame_059.webp new file mode 100644 index 0000000..6dba9cf Binary files /dev/null and b/assets/animations/typing/frame_059.webp differ diff --git a/assets/animations/typing_start/frame_000.webp b/assets/animations/typing_start/frame_000.webp new file mode 100644 index 0000000..d11fd62 Binary files /dev/null and b/assets/animations/typing_start/frame_000.webp differ diff --git a/assets/animations/typing_start/frame_001.webp b/assets/animations/typing_start/frame_001.webp new file mode 100644 index 0000000..2d3eebc Binary files /dev/null and b/assets/animations/typing_start/frame_001.webp differ diff --git a/assets/animations/typing_start/frame_002.webp b/assets/animations/typing_start/frame_002.webp new file mode 100644 index 0000000..26745b9 Binary files /dev/null and b/assets/animations/typing_start/frame_002.webp differ diff --git a/assets/animations/typing_start/frame_003.webp b/assets/animations/typing_start/frame_003.webp new file mode 100644 index 0000000..f6bb966 Binary files /dev/null and b/assets/animations/typing_start/frame_003.webp differ diff --git a/assets/animations/typing_start/frame_004.webp b/assets/animations/typing_start/frame_004.webp new file mode 100644 index 0000000..29177f2 Binary files /dev/null and b/assets/animations/typing_start/frame_004.webp differ diff --git a/assets/animations/typing_start/frame_005.webp b/assets/animations/typing_start/frame_005.webp new file mode 100644 index 0000000..6e754b3 Binary files /dev/null and b/assets/animations/typing_start/frame_005.webp differ diff --git a/assets/animations/typing_start/frame_006.webp b/assets/animations/typing_start/frame_006.webp new file mode 100644 index 0000000..70629fd Binary files /dev/null and b/assets/animations/typing_start/frame_006.webp differ diff --git a/assets/animations/typing_start/frame_007.webp b/assets/animations/typing_start/frame_007.webp new file mode 100644 index 0000000..deff829 Binary files /dev/null and b/assets/animations/typing_start/frame_007.webp differ diff --git a/assets/animations/typing_start/frame_008.webp b/assets/animations/typing_start/frame_008.webp new file mode 100644 index 0000000..5b0f2bb Binary files /dev/null and b/assets/animations/typing_start/frame_008.webp differ diff --git a/assets/animations/typing_start/frame_009.webp b/assets/animations/typing_start/frame_009.webp new file mode 100644 index 0000000..d0c843b Binary files /dev/null and b/assets/animations/typing_start/frame_009.webp differ diff --git a/assets/animations/typing_start/frame_010.webp b/assets/animations/typing_start/frame_010.webp new file mode 100644 index 0000000..f2fff40 Binary files /dev/null and b/assets/animations/typing_start/frame_010.webp differ diff --git a/assets/animations/typing_start/frame_011.webp b/assets/animations/typing_start/frame_011.webp new file mode 100644 index 0000000..8a0d79c Binary files /dev/null and b/assets/animations/typing_start/frame_011.webp differ diff --git a/assets/animations/typing_start/frame_012.webp b/assets/animations/typing_start/frame_012.webp new file mode 100644 index 0000000..4a4dce6 Binary files /dev/null and b/assets/animations/typing_start/frame_012.webp differ diff --git a/assets/animations/typing_start/frame_013.webp b/assets/animations/typing_start/frame_013.webp new file mode 100644 index 0000000..a37b995 Binary files /dev/null and b/assets/animations/typing_start/frame_013.webp differ diff --git a/assets/animations/typing_start/frame_014.webp b/assets/animations/typing_start/frame_014.webp new file mode 100644 index 0000000..0eb7f99 Binary files /dev/null and b/assets/animations/typing_start/frame_014.webp differ diff --git a/assets/animations/typing_start/frame_015.webp b/assets/animations/typing_start/frame_015.webp new file mode 100644 index 0000000..554b492 Binary files /dev/null and b/assets/animations/typing_start/frame_015.webp differ diff --git a/assets/animations/typing_start/frame_016.webp b/assets/animations/typing_start/frame_016.webp new file mode 100644 index 0000000..cfd2e97 Binary files /dev/null and b/assets/animations/typing_start/frame_016.webp differ diff --git a/assets/animations/typing_start/frame_017.webp b/assets/animations/typing_start/frame_017.webp new file mode 100644 index 0000000..7188a8d Binary files /dev/null and b/assets/animations/typing_start/frame_017.webp differ diff --git a/assets/animations/typing_start/frame_018.webp b/assets/animations/typing_start/frame_018.webp new file mode 100644 index 0000000..b0a45d8 Binary files /dev/null and b/assets/animations/typing_start/frame_018.webp differ diff --git a/assets/animations/typing_start/frame_019.webp b/assets/animations/typing_start/frame_019.webp new file mode 100644 index 0000000..2790631 Binary files /dev/null and b/assets/animations/typing_start/frame_019.webp differ diff --git a/assets/animations/typing_start/frame_020.webp b/assets/animations/typing_start/frame_020.webp new file mode 100644 index 0000000..d90c042 Binary files /dev/null and b/assets/animations/typing_start/frame_020.webp differ diff --git a/assets/animations/typing_start/frame_021.webp b/assets/animations/typing_start/frame_021.webp new file mode 100644 index 0000000..88a252b Binary files /dev/null and b/assets/animations/typing_start/frame_021.webp differ diff --git a/assets/animations/typing_start/frame_022.webp b/assets/animations/typing_start/frame_022.webp new file mode 100644 index 0000000..af2314d Binary files /dev/null and b/assets/animations/typing_start/frame_022.webp differ diff --git a/assets/animations/typing_start/frame_023.webp b/assets/animations/typing_start/frame_023.webp new file mode 100644 index 0000000..8fcb109 Binary files /dev/null and b/assets/animations/typing_start/frame_023.webp differ diff --git a/assets/animations/typing_start/frame_024.webp b/assets/animations/typing_start/frame_024.webp new file mode 100644 index 0000000..3e87497 Binary files /dev/null and b/assets/animations/typing_start/frame_024.webp differ diff --git a/assets/animations/typing_start/frame_025.webp b/assets/animations/typing_start/frame_025.webp new file mode 100644 index 0000000..c369773 Binary files /dev/null and b/assets/animations/typing_start/frame_025.webp differ diff --git a/assets/animations/typing_start/frame_026.webp b/assets/animations/typing_start/frame_026.webp new file mode 100644 index 0000000..533705d Binary files /dev/null and b/assets/animations/typing_start/frame_026.webp differ diff --git a/assets/animations/typing_start/frame_027.webp b/assets/animations/typing_start/frame_027.webp new file mode 100644 index 0000000..ba3a062 Binary files /dev/null and b/assets/animations/typing_start/frame_027.webp differ diff --git a/assets/animations/typing_start/frame_028.webp b/assets/animations/typing_start/frame_028.webp new file mode 100644 index 0000000..7e9c3ed Binary files /dev/null and b/assets/animations/typing_start/frame_028.webp differ diff --git a/assets/animations/typing_start/frame_029.webp b/assets/animations/typing_start/frame_029.webp new file mode 100644 index 0000000..824663e Binary files /dev/null and b/assets/animations/typing_start/frame_029.webp differ diff --git a/assets/animations/typing_start/frame_030.webp b/assets/animations/typing_start/frame_030.webp new file mode 100644 index 0000000..bda9b08 Binary files /dev/null and b/assets/animations/typing_start/frame_030.webp differ diff --git a/assets/animations/typing_start/frame_031.webp b/assets/animations/typing_start/frame_031.webp new file mode 100644 index 0000000..2c36ed5 Binary files /dev/null and b/assets/animations/typing_start/frame_031.webp differ diff --git a/assets/animations/typing_start/frame_032.webp b/assets/animations/typing_start/frame_032.webp new file mode 100644 index 0000000..0abf151 Binary files /dev/null and b/assets/animations/typing_start/frame_032.webp differ diff --git a/assets/animations/typing_start/frame_033.webp b/assets/animations/typing_start/frame_033.webp new file mode 100644 index 0000000..8e3bf84 Binary files /dev/null and b/assets/animations/typing_start/frame_033.webp differ diff --git a/assets/animations/typing_start/frame_034.webp b/assets/animations/typing_start/frame_034.webp new file mode 100644 index 0000000..031715f Binary files /dev/null and b/assets/animations/typing_start/frame_034.webp differ diff --git a/assets/animations/typing_start/frame_035.webp b/assets/animations/typing_start/frame_035.webp new file mode 100644 index 0000000..597cd4a Binary files /dev/null and b/assets/animations/typing_start/frame_035.webp differ diff --git a/assets/animations/typing_start/frame_036.webp b/assets/animations/typing_start/frame_036.webp new file mode 100644 index 0000000..dd94aec Binary files /dev/null and b/assets/animations/typing_start/frame_036.webp differ diff --git a/assets/animations/typing_start/frame_037.webp b/assets/animations/typing_start/frame_037.webp new file mode 100644 index 0000000..d3ecba5 Binary files /dev/null and b/assets/animations/typing_start/frame_037.webp differ diff --git a/assets/animations/typing_start/frame_038.webp b/assets/animations/typing_start/frame_038.webp new file mode 100644 index 0000000..3eae437 Binary files /dev/null and b/assets/animations/typing_start/frame_038.webp differ diff --git a/assets/animations/typing_start/frame_039.webp b/assets/animations/typing_start/frame_039.webp new file mode 100644 index 0000000..3a911e1 Binary files /dev/null and b/assets/animations/typing_start/frame_039.webp differ diff --git a/assets/animations/typing_stop/frame_000.webp b/assets/animations/typing_stop/frame_000.webp new file mode 100644 index 0000000..47234fd Binary files /dev/null and b/assets/animations/typing_stop/frame_000.webp differ diff --git a/assets/animations/typing_stop/frame_001.webp b/assets/animations/typing_stop/frame_001.webp new file mode 100644 index 0000000..3e192e6 Binary files /dev/null and b/assets/animations/typing_stop/frame_001.webp differ diff --git a/assets/animations/typing_stop/frame_002.webp b/assets/animations/typing_stop/frame_002.webp new file mode 100644 index 0000000..61f257f Binary files /dev/null and b/assets/animations/typing_stop/frame_002.webp differ diff --git a/assets/animations/typing_stop/frame_003.webp b/assets/animations/typing_stop/frame_003.webp new file mode 100644 index 0000000..9fd01ef Binary files /dev/null and b/assets/animations/typing_stop/frame_003.webp differ diff --git a/assets/animations/typing_stop/frame_004.webp b/assets/animations/typing_stop/frame_004.webp new file mode 100644 index 0000000..1778a84 Binary files /dev/null and b/assets/animations/typing_stop/frame_004.webp differ diff --git a/assets/animations/typing_stop/frame_005.webp b/assets/animations/typing_stop/frame_005.webp new file mode 100644 index 0000000..a54563b Binary files /dev/null and b/assets/animations/typing_stop/frame_005.webp differ diff --git a/assets/animations/typing_stop/frame_006.webp b/assets/animations/typing_stop/frame_006.webp new file mode 100644 index 0000000..d430cfe Binary files /dev/null and b/assets/animations/typing_stop/frame_006.webp differ diff --git a/assets/animations/typing_stop/frame_007.webp b/assets/animations/typing_stop/frame_007.webp new file mode 100644 index 0000000..a95a150 Binary files /dev/null and b/assets/animations/typing_stop/frame_007.webp differ diff --git a/assets/animations/typing_stop/frame_008.webp b/assets/animations/typing_stop/frame_008.webp new file mode 100644 index 0000000..2df48cc Binary files /dev/null and b/assets/animations/typing_stop/frame_008.webp differ diff --git a/assets/animations/typing_stop/frame_009.webp b/assets/animations/typing_stop/frame_009.webp new file mode 100644 index 0000000..416d9ec Binary files /dev/null and b/assets/animations/typing_stop/frame_009.webp differ diff --git a/assets/animations/typing_stop/frame_010.webp b/assets/animations/typing_stop/frame_010.webp new file mode 100644 index 0000000..bd4aa8b Binary files /dev/null and b/assets/animations/typing_stop/frame_010.webp differ diff --git a/assets/animations/typing_stop/frame_011.webp b/assets/animations/typing_stop/frame_011.webp new file mode 100644 index 0000000..4ee050f Binary files /dev/null and b/assets/animations/typing_stop/frame_011.webp differ diff --git a/assets/animations/typing_stop/frame_012.webp b/assets/animations/typing_stop/frame_012.webp new file mode 100644 index 0000000..ac6ba69 Binary files /dev/null and b/assets/animations/typing_stop/frame_012.webp differ diff --git a/assets/animations/typing_stop/frame_013.webp b/assets/animations/typing_stop/frame_013.webp new file mode 100644 index 0000000..17b9311 Binary files /dev/null and b/assets/animations/typing_stop/frame_013.webp differ diff --git a/assets/animations/typing_stop/frame_014.webp b/assets/animations/typing_stop/frame_014.webp new file mode 100644 index 0000000..a7eea35 Binary files /dev/null and b/assets/animations/typing_stop/frame_014.webp differ diff --git a/assets/animations/typing_stop/frame_015.webp b/assets/animations/typing_stop/frame_015.webp new file mode 100644 index 0000000..b487da5 Binary files /dev/null and b/assets/animations/typing_stop/frame_015.webp differ diff --git a/assets/animations/typing_stop/frame_016.webp b/assets/animations/typing_stop/frame_016.webp new file mode 100644 index 0000000..9f96392 Binary files /dev/null and b/assets/animations/typing_stop/frame_016.webp differ diff --git a/assets/animations/typing_stop/frame_017.webp b/assets/animations/typing_stop/frame_017.webp new file mode 100644 index 0000000..8e61ae9 Binary files /dev/null and b/assets/animations/typing_stop/frame_017.webp differ diff --git a/assets/animations/typing_stop/frame_018.webp b/assets/animations/typing_stop/frame_018.webp new file mode 100644 index 0000000..a6161ea Binary files /dev/null and b/assets/animations/typing_stop/frame_018.webp differ diff --git a/assets/animations/typing_stop/frame_019.webp b/assets/animations/typing_stop/frame_019.webp new file mode 100644 index 0000000..81a032e Binary files /dev/null and b/assets/animations/typing_stop/frame_019.webp differ diff --git a/assets/animations/typing_stop/frame_020.webp b/assets/animations/typing_stop/frame_020.webp new file mode 100644 index 0000000..d888519 Binary files /dev/null and b/assets/animations/typing_stop/frame_020.webp differ diff --git a/assets/animations/typing_stop/frame_021.webp b/assets/animations/typing_stop/frame_021.webp new file mode 100644 index 0000000..0decbad Binary files /dev/null and b/assets/animations/typing_stop/frame_021.webp differ diff --git a/assets/animations/typing_stop/frame_022.webp b/assets/animations/typing_stop/frame_022.webp new file mode 100644 index 0000000..4ef19c2 Binary files /dev/null and b/assets/animations/typing_stop/frame_022.webp differ diff --git a/assets/animations/typing_stop/frame_023.webp b/assets/animations/typing_stop/frame_023.webp new file mode 100644 index 0000000..13813d3 Binary files /dev/null and b/assets/animations/typing_stop/frame_023.webp differ diff --git a/assets/animations/typing_stop/frame_024.webp b/assets/animations/typing_stop/frame_024.webp new file mode 100644 index 0000000..b262226 Binary files /dev/null and b/assets/animations/typing_stop/frame_024.webp differ diff --git a/assets/animations/typing_stop/frame_025.webp b/assets/animations/typing_stop/frame_025.webp new file mode 100644 index 0000000..dda5985 Binary files /dev/null and b/assets/animations/typing_stop/frame_025.webp differ diff --git a/assets/animations/typing_stop/frame_026.webp b/assets/animations/typing_stop/frame_026.webp new file mode 100644 index 0000000..d1c5ad2 Binary files /dev/null and b/assets/animations/typing_stop/frame_026.webp differ diff --git a/assets/animations/typing_stop/frame_027.webp b/assets/animations/typing_stop/frame_027.webp new file mode 100644 index 0000000..0ff378e Binary files /dev/null and b/assets/animations/typing_stop/frame_027.webp differ diff --git a/assets/animations/typing_stop/frame_028.webp b/assets/animations/typing_stop/frame_028.webp new file mode 100644 index 0000000..f7e26c3 Binary files /dev/null and b/assets/animations/typing_stop/frame_028.webp differ diff --git a/assets/animations/typing_stop/frame_029.webp b/assets/animations/typing_stop/frame_029.webp new file mode 100644 index 0000000..d8c6f4b Binary files /dev/null and b/assets/animations/typing_stop/frame_029.webp differ diff --git a/assets/animations/typing_stop/frame_030.webp b/assets/animations/typing_stop/frame_030.webp new file mode 100644 index 0000000..5896e38 Binary files /dev/null and b/assets/animations/typing_stop/frame_030.webp differ diff --git a/assets/animations/typing_stop/frame_031.webp b/assets/animations/typing_stop/frame_031.webp new file mode 100644 index 0000000..72c0687 Binary files /dev/null and b/assets/animations/typing_stop/frame_031.webp differ diff --git a/assets/animations/typing_stop/frame_032.webp b/assets/animations/typing_stop/frame_032.webp new file mode 100644 index 0000000..9b04e7b Binary files /dev/null and b/assets/animations/typing_stop/frame_032.webp differ diff --git a/assets/animations/typing_stop/frame_033.webp b/assets/animations/typing_stop/frame_033.webp new file mode 100644 index 0000000..24dd383 Binary files /dev/null and b/assets/animations/typing_stop/frame_033.webp differ diff --git a/assets/animations/typing_stop/frame_034.webp b/assets/animations/typing_stop/frame_034.webp new file mode 100644 index 0000000..1d709a9 Binary files /dev/null and b/assets/animations/typing_stop/frame_034.webp differ diff --git a/assets/animations/typing_stop/frame_035.webp b/assets/animations/typing_stop/frame_035.webp new file mode 100644 index 0000000..c736301 Binary files /dev/null and b/assets/animations/typing_stop/frame_035.webp differ diff --git a/assets/animations/typing_stop/frame_036.webp b/assets/animations/typing_stop/frame_036.webp new file mode 100644 index 0000000..df66cb3 Binary files /dev/null and b/assets/animations/typing_stop/frame_036.webp differ diff --git a/assets/animations/typing_stop/frame_037.webp b/assets/animations/typing_stop/frame_037.webp new file mode 100644 index 0000000..3438dda Binary files /dev/null and b/assets/animations/typing_stop/frame_037.webp differ diff --git a/assets/animations/typing_stop/frame_038.webp b/assets/animations/typing_stop/frame_038.webp new file mode 100644 index 0000000..cae0ee4 Binary files /dev/null and b/assets/animations/typing_stop/frame_038.webp differ diff --git a/assets/animations/typing_stop/frame_039.webp b/assets/animations/typing_stop/frame_039.webp new file mode 100644 index 0000000..991fcbb Binary files /dev/null and b/assets/animations/typing_stop/frame_039.webp differ diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..f7bd856 --- /dev/null +++ b/build.sh @@ -0,0 +1,250 @@ +#!/bin/sh +# Release builds into dist/. Named targets may be given; without any, everything this machine can +# produce is built. +set -eu + +cd -- "$(dirname -- "$0")" + +usage() { + cat <<'EOF' +usage: ./build.sh [target ...] + +Builds release binaries into dist/. With no target, everything this machine can produce is built. + + all every target below + linux64amd x86_64 Linux + linux64arm arm64 Linux needs aarch64-linux-gnu-gcc + mac64amd x86_64 macOS only on a Mac + mac64arm arm64 macOS only on a Mac + win64amd x86_64 Windows mingw on Linux, MSVC on Windows + win64arm arm64 Windows MSVC on Windows, LLVM-MinGW elsewhere + + rustup target add aarch64-unknown-linux-gnu # enable one of them +EOF +} + +host=$(rustc -vV | sed -n 's/^host: //p' | tr -d '\r') +if [ -z "$host" ]; then + echo "error: cannot read the host target from rustc" >&2 + exit 1 +fi + +os= +other= +win_env= +case "$host" in + x86_64-unknown-linux-gnu) + os=linux + other=aarch64 + ;; + aarch64-unknown-linux-gnu) + os=linux + other=x86_64 + ;; + x86_64-apple-darwin) + os=macos + other=aarch64 + ;; + aarch64-apple-darwin) + os=macos + other=x86_64 + ;; + x86_64-pc-windows-msvc) + os=windows + other=aarch64 + win_env=msvc + ;; + x86_64-pc-windows-gnu) + os=windows + win_env=gnu + ;; + aarch64-pc-windows-msvc) + os=windows + other=x86_64 + win_env=msvc + ;; + *) + echo "error: unsupported host target: $host" >&2 + exit 1 + ;; +esac + +if command -v rustup >/dev/null 2>&1; then + installed_targets=$(rustup target list --installed 2>/dev/null | tr -d '\r' || true) +else + installed_targets= +fi + +installed() { + [ -n "$installed_targets" ] && printf '%s\n' "$installed_targets" | grep -qx "$1" +} + +linker_for() { + case "$1" in + aarch64-unknown-linux-gnu) echo aarch64-linux-gnu-gcc ;; + x86_64-unknown-linux-gnu) echo x86_64-linux-gnu-gcc ;; + x86_64-pc-windows-gnu) echo x86_64-w64-mingw32-gcc ;; + aarch64-pc-windows-gnullvm) echo aarch64-w64-mingw32-clang ;; + *) echo "" ;; + esac +} + +native_triple() { + case "$os" in + linux) echo "$1-unknown-linux-gnu" ;; + macos) echo "$1-apple-darwin" ;; + windows) + if [ "$win_env" = msvc ]; then + echo "$1-pc-windows-msvc" + else + echo "$1-pc-windows-gnu" + fi + ;; + esac +} + +win_amd() { + case "$host" in + *-windows-msvc) echo x86_64-pc-windows-msvc ;; + *) echo x86_64-pc-windows-gnu ;; + esac +} + +win_arm() { + case "$host" in + *-windows-msvc) echo aarch64-pc-windows-msvc ;; + *) echo aarch64-pc-windows-gnullvm ;; + esac +} + +alias_triple() { + case "$1" in + linux64amd) echo x86_64-unknown-linux-gnu ;; + linux64arm) echo aarch64-unknown-linux-gnu ;; + mac64amd) echo x86_64-apple-darwin ;; + mac64arm) echo aarch64-apple-darwin ;; + win64amd) win_amd ;; + win64arm) win_arm ;; + *) return 1 ;; + esac +} + +targets= +add_target() { + case " $targets " in + *" $1 "*) ;; + *) targets="$targets $1" ;; + esac +} + +add_all() { + add_target "$host" + case "$os" in + linux) + if [ -n "$other" ]; then + add_target "$(native_triple "$other")" + fi + add_target "$(win_amd)" + add_target "$(win_arm)" + ;; + macos) + if [ -n "$other" ]; then + add_target "$(native_triple "$other")" + fi + ;; + windows) + add_target "$(win_amd)" + add_target "$(win_arm)" + ;; + esac +} + +for arg in "$@"; do + case "$arg" in + -h | --help) + usage + exit 0 + ;; + -*) + echo "error: unknown option: $arg" >&2 + usage >&2 + exit 2 + ;; + all) add_all ;; + *) + if triple=$(alias_triple "$arg"); then + add_target "$triple" + else + echo "error: unknown target: $arg" >&2 + usage >&2 + exit 2 + fi + ;; + esac +done +if [ -z "$targets" ]; then + add_all +fi + +build() { + target=$1 + ext= + case "$target" in + *windows*) ext=.exe ;; + esac + + case "$target" in + *-apple-darwin) + if [ "$os" != macos ]; then + echo "skip $target: macOS builds run on a Mac" + return 0 + fi + ;; + esac + + linker= + if [ "$target" != "$host" ]; then + if ! installed "$target"; then + echo "skip $target: rustup target add $target" + return 0 + fi + linker=$(linker_for "$target") + if [ -n "$linker" ] && ! command -v "$linker" >/dev/null 2>&1; then + echo "skip $target: $linker is missing" + return 0 + fi + fi + + echo "building $target" + if [ "$target" = "$host" ]; then + cargo build --release -p hamster-pet + from=target/release/hamster-pet$ext + else + if [ -n "$linker" ]; then + upper=$(printf '%s' "$target" | tr 'a-z-' 'A-Z_') + env "CARGO_TARGET_${upper}_LINKER=$linker" \ + cargo build --release -p hamster-pet --target "$target" + else + cargo build --release -p hamster-pet --target "$target" + fi + from=target/$target/release/hamster-pet$ext + fi + + out=dist/hamster-pet-$target$ext + cp "$from" "$out" + echo " -> $out" +} + +mkdir -p dist +for target in $targets; do + build "$target" +done + +if [ ! -f assets/animations/manifest.json ]; then + echo "warning: assets/animations/manifest.json is missing; run the converter first" >&2 +fi +if [ "$os" = macos ]; then + echo "note: the macOS window backend is not implemented yet (docs/PLAN.md, M5)" >&2 +fi + +echo "done: binaries in dist/ (run them from the project root so assets/ and config.json are found)" diff --git a/config.json b/config.json new file mode 100644 index 0000000..7f42f86 --- /dev/null +++ b/config.json @@ -0,0 +1,38 @@ +{ + "seed": null, + "fps_scale": 1.0, + "clip_fps": {}, + "min_loops": { + "idle_activity_book_loop": 4, + "idle_activity_newspaper_loop": 4, + "idle_activity_sleep_loop": 10 + }, + "disabled_activities": [ + "dig" + ], + "typing_stop_delay_ms": 1500, + "typing_start_keys": 5, + "typing_start_window_ms": 1500, + "screenshot_request_ttl_ms": 3000, + "idle_delay_ms": [ + 3000, + 7000 + ], + "activity_loop_ms": [ + 2500, + 5000 + ], + "position": { + "x": 3187, + "y": 202 + }, + "backend": "auto", + "output": null, + "sensors": { + "typing": "auto", + "music": true, + "screenshot": "auto", + "screenshot_dirs": [] + }, + "startup_dialog": true +} \ No newline at end of file diff --git a/docs/PLAN.md b/docs/PLAN.md new file mode 100644 index 0000000..ad19812 --- /dev/null +++ b/docs/PLAN.md @@ -0,0 +1,392 @@ +# Implementation plan — Hamster Desktop Pet + +A desktop pet: a transparent, always-on-top hamster window that reacts to user activity +(typing, screenshots, music, dragging) using the 18 animation folders in `frames/` (30 clips). + +Target platforms: **Linux (X11 first, Wayland as far as the platform allows)** and **Windows**. +**macOS** is best-effort (same code, lower priority for the platform-specific sensors). + +--- + +## 1. Language choice: Rust (decided) + +The hard part is not the GUI — it is cross-platform system hooks (global keyboard, screenshot +detection, media playback) plus a transparent overlay window. All four candidates could do it; +the table is kept as the record of that trade-off. + +| Option | Pros | Cons | +| --- | --- | --- | +| **Rust** (`x11rb`, `wayland-client`, `tray-icon`, `zbus`, `windows`, `objc2`) | Single self-contained binary (~5 MB), no runtime; safest against crash/UB bugs; cargo test/CI trivial; first-class crates for every needed hook; cross-compile to Windows already works on this machine (`x86_64-pc-windows-gnu` target installed); WebP decode via `image` | No batteries-included GUI: window/tray plumbing is manual; X11/Wayland transparency needs care and testing; WinRT media API is verbose; longer compile times | +| **C++20 + Qt 6** | Qt gives transparent frameless always-on-top windows, tray menu, HiDPI, multi-monitor (`QScreen`), WebP plugin, timers and JSON for free; mature and well documented; one codebase for all three OSes | Heaviest toolchain (Qt SDK per platform, ~1 GB); manual memory management; still requires hand-written platform code for hooks; ships 20–40 MB of Qt libs | +| **Python 3 + PySide6** | Fastest to write and iterate; Pillow for the asset pipeline; pytest for tests; same Qt window features | Needs a bundled runtime (~40–90 MB via PyInstaller) and 60–120 MB RAM for a desktop pet; GC pauses can jitter animation; global hooks are the weak point (`pynput` is X11-only, Windows/macOS need separate bindings) | +| **Electron / Tauri** | Best animation rendering with the least effort (Chromium WebP/CSS/canvas); transparent frameless always-on-top is a solved path; tray built in; great debugging | Electron ships Chromium (~150 MB install, 100–200 MB RAM) — heavy for a pet; Tauri is light but WebKitGTK transparency is flaky and it still needs Rust; global keyboard hooks rely on native modules with maintenance risk | + +**Chosen: Rust** — small, no runtime, every required system hook exists as a maintained crate +(`x11rb`, `wayland-client`, `tray-icon`, `zbus`, `windows`, `objc2`, `image`), and Windows builds already +cross-compile from this machine. + +--- + +## 2. Source assets (measured) + +- 18 animation folders, **1812 frames**, `256x256` baseline JPEG, naming `hamster_NNNN.p.jpg`; 1811 + are used (one stray neutral sheet in `pacidle0` is skipped). +- Background is **exactly black** (corner pixels are `(0,0,0)`; the JPEGs are clean, no noise floor). +- The character occupies only the bottom-right area, so every clip is cropped to the union of the + frames it uses; the shared canvas is **204x175**. +- Original `.xml` files define the engine semantics reused below: animation triples + (`Start` → `Loop` → `Finish`), one-shot clips, relative probability weights, and a + `disabled="true"` package for the digging idle. +- `frames/pacidle0/jpeg/hamster_0000.p.jpg` is the neutral pose re-encoded (max diff 20 / mean 0.13 + vs `hamster_0060`) → dropped; `idle_blink` is the 20 frames `0060-0079`. +- `pacidle7` (digging) and `pacidle9` (paper plane) touch or pass the source frame edges + (`x 255`, `y 255`); they still fit inside the shared 204x175 canvas. + +## 3. Target asset format + +Simple and obvious: **one folder per clip, 0-based 3-digit frame numbers, lossless RGBA WebP**. + +``` +assets/animations/ + manifest.json + idle_main/frame_000.webp + typing/frame_000.webp … typing/frame_059.webp + idle_activity_sleep_finish/frame_000.webp … +``` + +`manifest.json` carries only asset facts (no behaviour): + +```json +{ + "version": 1, + "canvas": { "width": 204, "height": 175 }, + "anchor": { "x": 144, "y": 158 }, + "clips": { + "typing": { "frames": 60, "fps": 30, "loop": true, + "rect": { "x": 82, "y": 49, "width": 104, "height": 111 } }, + "idle_main": { "frames": 1, "fps": 30, "loop": true, + "rect": { "x": 103, "y": 55, "width": 83, "height": 103 } } + } +} +``` + +- `rect` is `{x, y, width, height}` in the 204x175 canvas space (the clip's own bounding box plus + a 2 px margin). `x/y` is where that clip's image is blitted, so clips never drift relative to + each other. +- `anchor` = bottom-centre of the `idle_main` silhouette = the point placed at the pet's screen position. +- `fps` is **30** for every clip. The original engine's rate is unknown, so 30 fps is the project + default and is tunable per clip in the converter table (`--fps-scale` and `Config::clip_fps` cover + tuning at runtime). Playback is wall-clock based, so the visible speed never depends on the monitor. +- Measured output: 30 clips, 1811 frames, canvas 204x175, anchor (144, 158), **24.7 MB** + (13.6 KB per frame). + +### Clip names (source → output) + +| Source | Frames | Count | New clip(s) | +| --- | --- | --- | --- | +| `pacmainidle` | 0060 | 1 | `idle_main` | +| `pacidle0` | 0060–0079 | 20 | `idle_blink` | +| `pacidle1` | 1560–1639 | 80 | `idle_look_around` | +| `pacidle2` | 0000–0059 | 60 | `idle_nose_rub` | +| `pacidle3` | 0220–0279 | 60 | `idle_yawn` | +| `pacidle4` | 0120–0149 | 30 | `idle_rock` | +| `pacidle5` | 0080–0119 | 40 | `idle_peek` | +| `pacidle6` | 0150–0219 | 70 | `idle_yawn_second` | +| `pacidle7` | 1640–1779 | 140 | `idle_dig` (off by default, source XML disables it) | +| `pacidle8` | 0420–0489 | 70 | `idle_squint` | +| `pacidle9` | 1780–1999 | 220 | `idle_paper_plane` | +| `pacidlestart1` | 1380–1419 / 1420–1519 / 1520–1559 | 40/100/40 | `idle_activity_newspaper_start|loop|finish` | +| `pacidlestart2` | 1190–1229 / 1230–1329 / 1330–1379 | 40/100/50 | `idle_activity_book_start|loop|finish` | +| `pacidlestart3` | 0490–0559 / 0560–0599 / 0600–0679 | 70/40/80 | `idle_activity_sleep_start|loop|finish` | +| `pactyping` | 0680–0719 / 0720–0779 / 0780–0819 | 40/60/40 | `typing_start`, `typing`, `typing_stop` | +| `pacscreenshot` | 0280–0419 | 140 | `screenshot` | +| `pacmusic` | 0990–1043 / 1044–1057 / 1058–1119 | 54/14/62 | `music_start`, `music` (loop), `music_stop` — one source take, split by hand: 1044–1057 is a single bob whose wrap is seamless (measured), so listening loops instead of replaying the whole take | +| `paccharacter` | 1120–1124 / 1145–1174 / 1175–1189 | 5/30/15 | `drag_start`, `drag_loop`, `drag_end` | + +### Matting (JPG black → WebP alpha) + +Tested both ways on real frames: + +- **Rejected:** alpha = pixel luminance. Correct over a black desktop, but the hamster goes + translucent and washed out over a light background — its dark eyes/outline become transparent. +- **Chosen:** mask matting. Flood-fill the background from the image border over pixels below a + low threshold (22/255 by default), so only the *outer* background is removed while enclosed dark details + (eyes, outline) stay fully opaque; give the mask boundary a one-pixel alpha ramp + (`smoothstep` on luminance) and un-multiply colour only on that ramp to avoid a dark fringe. + The baked soft shadow stays as a slightly dark blob: the shadow is dimmer than the character + outline (measured 15..60 vs 90+), so removing it needs a threshold of ~45 which eats whiskers and + dark props. `--shadow keep` (threshold 22) is therefore the default and `drop` stays available; + the decision came from an A/B preview sheet over light, dark and photo backgrounds. + +Converter tool → `tools/convert_frames`: reads `frames/`, writes `assets/animations/`, validates +expected frame counts, writes the manifest, and prints the total size. Deterministic output, +one command, no manual steps. + +--- + +## 4. Behaviour spec + +Reused concept (one implementation, three callers): **clip chain** = optional `start` (plays once) → +`loop` (repeats while the condition holds) → `finish` (plays once) → back to idle. + +| Trigger | Chain | Notes | +| --- | --- | --- | +| Typing starts | `typing_start` → `typing` → `typing_stop` | Start only on the idle→typing transition, never on key repeat; stop after ~700 ms without a key | +| Typing stops | `typing_stop` | Interruptible: a new key during `typing_stop` returns to `typing` | +| Screenshot taken | `screenshot` (one-shot) | Fires on the `PrintScreen` key and on an image appearing in a watched folder; one shot never reacts twice (the key claims a file saved within 8 s, and filesystem events for one file are deduped for 1 s) | +| Music playing | `music_start` → `music` → `music_stop` | Takes the headphones on, listens in a loop while any player reports `playing`, takes them off when all pause/stop | +| Mouse drag | `drag_start` → `drag_loop` → `drag_end` | `drag_loop` uses "ping-pong" playback so the short 30-frame loop reads as continuous walking | +| Idle | `idle_main` | 1 frame; no work while nothing changes | +| Idle activities | `idle_blink`, `idle_nose_rub`, … (one-shots) | Randomly scheduled from the main idle using the original probability weights (blink 500, rock 150, nose rub 50, squint 40, yawn 20, peek 20, dig 10, look around 5, yawn-2 5, paper plane 5), then back to `idle_main` | +| Long idle activities | `idle_activity_{newspaper,book,sleep}_*` chains | Rare (weight 5), `loop` repeats for a few seconds, then `finish` | + +Rules, implemented in `src/core/engine.rs` and covered by its unit tests: + +- One chain wins by priority `drag > screenshot > typing > music > idle activity > main idle`. +- **An override plays the running chain's finish clip first** (`typing_start` -> `typing` -> + `typing_stop`), and only then starts the new chain; a finish clip that is already playing is never + restarted. Chains without a finish clip (the screenshot reaction, one-shot idle gags) are cut, + exactly like the source engine. +- Sensors only report facts, and a fix never requires more access than read-only: the keyboard reader + needs the `input` group, music needs the user's own session bus, screenshots need a folder to watch. +- **A start clip is never cut** (`ChainPolicy::WaitForStart`, used by typing and music): a hand-over + asked for while it runs waits until it has played out, so the finish clip starts from the pose the + start clip was building instead of snapping there. The looping middle hands over at once, so stopping + typing or music reacts within a fraction of a second. +- Dragging is the exception: it takes over instantly, and its own `drag_end` plays on release. +- When a condition ends while a finish clip plays, the target is re-read once that clip ends, so keys + pressed during `typing_stop` return to typing instead of dropping to idle. +- A condition that is still valid keeps its chain: a screenshot arriving mid-drag waits in line instead + of ending the drag. A queued reaction is dropped if it cannot start within `screenshot_request_ttl_ms`, + but once it starts it always plays out in full. +- An idle activity only starts from the resting animation and is dropped, not resumed, when interrupted. +- A full activity runs its start clip, then loops its middle for `activity_loop_ms` measured from the + loop clip itself, then plays its finish clip. `min_loops` (per clip) raises that budget so the loop + always completes at least that many cycles; only the idle activity loops are timed, so only they + can be stretched, and any other key is reported and ignored at startup. +- Timing is real milliseconds against a monotonic clock, with at most 100 ms of animation advanced per + tick, so a slow render neither slows clips down nor fast-forwards them. + +--- + +## 5. Architecture + +``` +src/core/ platform-free, fully unit-testable + manifest schema, validation, frame path and file name helpers + frames on demand decode + LRU cache + clip_player one clip at a fixed fps: loop, ping-pong, one-shot, 100 ms step cap + chains chain and idle activity tables: clip names, probabilities, cooldowns + engine events -> priorities -> start/loop/finish phases, idle scheduler + config JSON load/save, validation, clamping, defaults + texts dialog wording: defaults, placeholders, load from texts.json + clock, rng, replay fake clock for tests, deterministic rng, scripted runs +src/platform/ window, frame loop and display backends + mod the frame loop, the Backend trait, input events + compositor canvas -> premultiplied ARGB + clickable rectangles + x11, wayland, windows one backend per display server + dialog startup dialog via the desktop's own tool or a message box +src/sensors/ evdev or Windows hook (typing + PrintScreen), MPRIS/SMTC music, folder watch +``` + +Rust layout: a small workspace with the app crate (`src/`, modules above) and a `convert_frames` +binary crate under `tools/`; platform modules are gated per target and picked in one +`platform::run` entry point, so the core never imports a platform crate directly. + +- Render loop: polls at the clip's own frame rate (4–16 ms) and only drives the clock; clips advance + by elapsed time at their own fps + and the window is redrawn only when the visible frame changes (idle = no work). The replay mode steps + the same way at 20 ms so scripted runs behave like a live loop. +- Frame cache: clips are decoded on demand into an LRU cache (240 frames, roughly the length of the + longest chains); the first frame of a clip costs the decode, every later one is a cache hit. + Nothing is decoded at startup except `idle_main`. +- Input: the window is click-through where the sprite is transparent. The mask follows the drawn + frame: a backend gets new rectangles whenever the frame changes, and while a drag is running the + whole window stays clickable so the pointer cannot slip out of it (Windows does not need the + rectangles: a layered window hit tests its own alpha, and the capture keeps the drag alive). +- Dragging: not clamped at all, so the pet can be pushed over a screen edge or onto another monitor. + Only a start position that is off every monitor is pulled back on screen, whole. +- Config (JSON in the project, `config.json` next to `assets/`, read from the working directory): + `backend`, `output`, position, per-source sensors on/off (the + screenshot signal is `auto`/`key`/`files`/`off`), the typing burst, idle timings, clip fps overrides, + `min_loops` per looping activity clip, disabled activities. The file ships with every default in it, so the knobs are easy to find and are + edited before a build; the only thing written back to it is the window position. Nothing is kept in + the user's home directory, and without a config file the pet runs on its defaults without writing + anything. Bad values are clamped, never fatal. +- The wording of the startup dialog is `texts.json`, read from the same directory: `title`, `intro`, + `outro`, the `problem` paragraph template and one message per situation. `{reason}` and `{folders}` + are filled at runtime, a message may drop its `fix`, anything left out keeps its built-in wording and + a broken file warns and falls back, so a half finished file never leaves the dialog empty. +- Debug: `--trace` prints the active chain while the window runs; `--replay script.txt` feeds a scripted + event sequence through the real state machine. + +## 6. Platform support matrix + +Target matrix; the macOS column is the plan (M5), not an existing build. + +| Capability | Linux X11 | Linux Wayland | Windows | macOS | +| --- | --- | --- | --- | --- | +| Transparent overlay + always-on-top | depth-32 dock window, needs a compositing WM (shape mask fallback) | `wlr-layer-shell` top surface (KWin, sway, Hyprland); xdg toplevel fallback elsewhere | `WS_EX_LAYERED` popup, frames through `UpdateLayeredWindow` | yes | +| Click-through on transparent pixels | shape extension | input region, refreshed with each frame | the layered window's own alpha hit test | yes | +| Dragging the pet | pointer grab, 1:1 with the cursor | layer margins rewritten per motion | mouse capture, position from the live cursor | yes | +| Typing detection | `/dev/input` event devices (`input` group) | same — evdev does not care about the session type | `WH_KEYBOARD_LL` | `CGEventTap` (Accessibility permission) | +| Screenshot taken | `PrintScreen` via `/dev/input` + watch XDG screenshot folders (`sensors.screenshot`: `auto`/`key`/`files`/`off`) | same (evdev does not care about the session type) | watch `Pictures\Screenshots` + PrtSc key (`WH_KEYBOARD_LL`) | watch `com.apple.screencapture` location (Desktop by default) | +| Media playing | MPRIS over D-Bus | MPRIS over D-Bus | SMTC (WinRT) | MediaRemote (private API) — may stay unimplemented | +| Tray icon | planned (M6) | planned (M6) | planned (M6) | planned (M6) | + +Windows builds come from the same source; macOS only needs its own `platform/` module (M5). + +## 7. Edge cases to handle explicitly + +- Asset problems: missing/corrupt frame, manifest frame count mismatch, unknown clip name → clear error + at startup (dev) or skip the clip and keep running (release); never a crash or a blank window. +- Events: key auto-repeat, a burst of keys mid-`typing_stop`, screenshot events that arrive twice for one + shot, several media players (pick a playing one deterministically), player switching mid-loop. +- Timing: clock jumps, sleeping laptop waking up, a very slow render frame (accumulate dt, clamp the + 0.1 s max step so clips don't skip), first frame not yet decoded (show the previous frame, never a gap). +- Window: multi-monitor and negative coordinates, monitor unplugged while running, scale changes, + a saved position off every monitor (pulled back on screen), always-on-top refused by the WM (log, + keep running), a + compositor without layer-shell (xdg fallback that cannot be dragged), a Wayland output whose origin + is not (0,0) (layer margins are relative to it) and a press that lands while the animation swaps the + input region under the cursor (the full window stays clickable during a drag). +- Resources: decoding errors are retried once then the clip is marked broken; cache never unbounded; + the position is written after every drag, so even a killed pet restarts where it was left. +- Platform degradation: missing D-Bus session (containers), no media player installed, no screenshot + folder existing, permission denied for global hooks → disable that sensor only, with one log line. + +## 8. Testing + +- Unit (fast, no OS): state machine transitions for every event combination and priority clash; + chain player timing on a fake clock; idle scheduler weight distribution; config parse/clamp on + malformed files; LRU eviction; matting golden test (fixed sample frames → expected pixel hash); + manifest validation against the real generated assets. +- Integration: `--replay` scripts drive the real state machine and assert the chain sequence; + asset test that walks `assets/animations/` and verifies every clip against `manifest.json`. +- Manual checklist per OS: overlay transparency, click-through, drag, tray, each sensor, multi-monitor, + idle CPU/RAM measured with the pet on screen for a minute. + +## 9. Milestones + +- **M0 — assets — DONE.** `tools/convert_frames` writes 30 clips / 1811 frames / 24.7 MB plus the + manifest, verifies every clip by decoding it back, and reports unused source frames. `tests/assets.rs` + checks the generated set against the manifest (frame lists, sizes, golden pixels, anchor placement). +- **M1 — core — DONE.** Manifest validation, LRU frame cache, fixed-fps clip player, chain player, + state machine with priorities and finish-first overrides, idle scheduler, config loading, replay mode. + 111 unit tests pass; `cargo run --release -- --replay scripts/demo.txt --seed 4` prints the verified + sequence (typing -> typing_stop -> queued screenshot -> drag -> music -> idle activities). +- **M2 — window — DONE on Linux/X11 and Wayland** (tray deferred to M6). Transparent always-on-top + window, pixel-shaped input region (click-through), drag with the left button, right click quits, + position saved to the config and clamped to a monitor, `--seconds` for automated runs, `--trace` to + log the clip hand-offs of a live window. + The window is drawn by two small backends behind one `Backend` trait (`src/platform`), not by winit, + because of two defects the first version had: + 1. `softbuffer` hands the compositor an XRGB buffer, so the Wayland window came out **black**. Frames + are now premultiplied ARGB written into the surface's own buffer (a depth-32 window on X11, a + `wl_shm` pool with an alpha channel on Wayland). + 2. Dragging froze the animation: every pointer motion asked the server where the window was and which + monitors existed, which on Wayland means a round trip per motion, so the loop never reached its + next frame while the mouse moved. The loop now keeps wall-clock time of its own and only drains + events: X11 moves the window itself during a pointer grab, Wayland rewrites the layer margins. + Wayland specifics: the surface is a `zwlr_layer_shell_v1` top surface bound to the output that holds + the saved position (`config.output` can name one), and because layer margins are measured from that + output's corner, global positions are converted on the way in and out. Without layer-shell (GNOME) + it degrades to an xdg toplevel, which the compositor places, so drags cannot move it there. + Verified on a live KWin session: the pet renders exactly at the configured global position, the + pixels the hamster does not cover show the desktop instead of black, hovering and pressing reach the + app, a drag follows the cursor across monitors (margins go negative and KWin honours them), the + animation keeps playing while the pointer moves (62 drag frames counted during one drag) and the + saved position matches where the hamster really is on screen, read back from a screenshot match. + X11 was re-verified the same way: a 252x223 depth-32 window, clicks on transparent pixels reach the + window below while the body receives them, a drag follows the cursor 1:1 (72,18 in, 72,18 out) with + the animation running (frames differ by ~6k pixels between captures during the drag), and the saved + position is the one the pet was moved to. + Re-run after the asset tolerance change: on this + session's Xwayland display a saved position of (1600,300) puts the depth-32 window exactly at + (1431,118), the window margin is byte-identical to the same desktop pixels captured before the pet + started (no black box), a drag moves it by exactly (+120,+80) with `drag_start -> drag_loop -> + drag_end` and 3.2% of the pixels changing between two captures taken during the drag, a click on a + transparent margin pixel starts no drag at all, and a right click quits with the new anchor (1720,380) + written to the config. + That pass found and fixed a real bug: without a compositor the window was created with the depth of +the root visual but the 32-bit visual, a combination the server rejects, and since a rejected +`CreateWindow` is a void request the pet kept running with no window at all (the terminal still said +`window: x11`). Depth, visual and colormap are now chosen together, the creation is `check`ed so a +rejection becomes an error instead of an invisible pet, and the shape-masked fallback divides the +alpha back out of the premultiplied pixels so soft edges do not turn dark. Both modes were checked on +the Xwayland display by owning `_NET_WM_CM_S0` for the composited run: a 252x223 window at the saved +position, depth 24 + shape mask in the fallback (click on a transparent corner starts no drag) and +depth 32 + real alpha in the composited run (244 pixels keep partial alpha), 5.4k painted pixels, a +drag following the pointer (532,318 -> 602,368), frames still changing during the drag (6.4k pixels) +and the position written back to the config. +- **M3 — Linux sensors — DONE.** Typing is read from `/dev/input` event devices (needs the `input` + group; `auto` reports how many keyboards it opened, `off` disables it — evdev works on Wayland and + X11 alike, so no XRecord path is needed), screenshots are watched with `notify` in the configured + folders, music comes from MPRIS over the session D-Bus, and the config gained `backend`, `output` + and `sensors` sections. Verified on the live session: keyboards opened, the MPRIS watcher attached, + and an image copied into the watched folder played the screenshot clip. + Two follow-ups from real use: a lone key press no longer starts typing (a burst of + `typing_start_keys` inside `typing_start_window_ms` is required, then single keys keep it going), + and the sensors explain themselves when something is missing — a missing session bus names the + usual cause (running as root) and a denied `/dev/input` prints the one-time `usermod -aG input` + fix, instead of silently detecting nothing. A fake MPRIS player verified the music path: `Playing` + switches the pet to the music clip and `Paused` returns it to idle. + Screenshot detection was widened the same way: the `PrintScreen` key is read by that same + `/dev/input` reader, so a shot that is never saved (clipboard only) still counts, while a file + saved within 8 s of the press is treated as that same shot rather than a second reaction — verified + live with a virtual keyboard and the watched folder. The same pass fixed a real bug: running with + `--no-sensors` or `--backend` used to write those overrides into the config file for good, because + the whole in-memory config was saved; now only the config as it was loaded is written back, with + the new window position. + Sensors report two kinds of startup line: plain notes and *problems* — the ones the user can fix. + Every problem (no `/dev/input` access, no session bus, no screenshot folder, a watcher that will not + start) is shown in a startup dialog next to its fix, drawn by whatever the desktop already ships + (`kdialog`, `zenity`, `yad` — the pet has no toolkit of its own). Nothing waits for the dialog and + the pet runs behind it; an undismissed dialog is taken down when the pet exits. Windows shows the + same text in its own message box (M4); macOS gets its native dialog with its milestone, and until +then the startup notes are the fallback. +- **M4 — Windows — DONE**, cross-compiled with `cargo build --release --target x86_64-pc-windows-gnu` + (no Windows machine was needed for the build, and the .exe was exercised under Wine). The window is + a `WS_EX_LAYERED | WS_EX_TOOLWINDOW | WS_EX_NOACTIVATE | WS_EX_TOPMOST` popup drawn with + `UpdateLayeredWindow`, which also gives click-through for free because a layered window hit tests + its own alpha; a drag takes the mouse capture and each position comes from `GetCursorPos` (converted + with `ScreenToClient`), so a motion message that arrives after the window has already moved still + reports where the pointer is now. Per monitor DPI awareness is requested at startup and the canvas + is rendered at the resulting integer scale. Sensors are `WH_KEYBOARD_LL` (typing plus PrintScreen, + with auto repeat filtered out), the Windows media session manager (SMTC) polled once a second, and + the same folder watch as Linux with `%USERPROFILE%\Pictures` as the default folder. The startup + dialog uses the native message box, shown on its own thread so nothing waits for it. + Verified under Wine on a live KWin session: the window lands exactly where the Windows virtual + desktop says it should (Wine's origin is the primary monitor's corner, like real Windows), the + pixels the hamster does not cover are byte-identical to the desktop captured before the pet existed, + the pet paints and animates (5719 pixels differ between two captures), a press on a painted pixel + produces `drag_start -> drag_loop -> drag_end`, a right click quits, and a build run leaves the + config file untouched apart from the window position. Two things could not be exercised without + Windows itself: SMTC (Wine has no WinRT — the pet reports the problem and runs on) and layered-window + compositing against a real desktop. A later pass re-ran the .exe under Wine: the window appears at + the Windows coordinate the config asks for (Wine's virtual desktop origin is 1366 px away from the + Xwayland one), it paints with alpha (a transparent corner, 5.4k painted pixels), a press on the body + produces `drag_start -> drag_loop -> drag_end` while 4.5k pixels keep changing between captures, the + window follows the pointer exactly over a 180x96 px drag in twelve steps, and the new position is + written back to the config. The drag reads the live cursor (`GetCursorPos`), so it does not depend on + Wine's motion messages, which arrive late and repeat the old position. +- **M5 — macOS best-effort.** `CGEventTap` typing + screenshot folder watch; media may stay out of scope. +- **M6 — polish.** Tray toggles, packaging (AppImage/tar.gz, .zip), docs. + +## 10. Risks / open questions + +- **Typing detection needs the `input` group** (evdev), because a sandboxed or unprivileged build + cannot read keyboards. Without it the sensor logs one line and the rest of the pet keeps working; a + Flatpak build would need its own permission for `/dev/input`. +- **X11 transparency + always-on-top** depends on a compositing WM. The window requests a depth-32 + visual and premultiplied ARGB, which works on a compositing session. Without one it falls back to the + root visual plus a bounding shape: the pet is hard edged rather than transparent, but visible, + animated and click-through outside its silhouette. On Wayland the alpha channel is part of the + buffer, so it is transparent by construction. +- **Compositors without layer-shell** (GNOME/Mutter) get an ordinary toplevel: it still animates and + reacts, but the compositor owns its position, so the saved position and dragging do not apply. +- **Original frame rate is unknown** — decided: 30 fps everywhere, with `Config::clip_fps` and + `--fps-scale` for per-clip tuning once the pet is visible. +- **Baked shadow** is a colour blob, not real alpha — decided: kept by default (`--shadow drop` exists), + because removing it erodes whiskers and dark props. +- **macOS media detection** uses a private framework — accepted as optional. diff --git a/scripts/demo.txt b/scripts/demo.txt new file mode 100644 index 0000000..3915fe0 --- /dev/null +++ b/scripts/demo.txt @@ -0,0 +1,13 @@ +# a key burst, a screenshot that arrives while typing, a drag, then music +0 key +150 key +300 key +450 key +600 key +750 key +900 key +2000 screenshot +8000 drag_start +9000 drag_stop +12000 music_on +16000 music_off diff --git a/src/core/chains.rs b/src/core/chains.rs new file mode 100644 index 0000000..f556a62 --- /dev/null +++ b/src/core/chains.rs @@ -0,0 +1,348 @@ +/// Chain and idle-activity tables. Clip names are the fixed vocabulary of the asset set, +/// so chains live in code: one source of truth shared by the engine, the replay mode and tests. +use crate::core::engine::Condition; + +/// What happens to the running chain when a higher priority condition takes over. +#[derive(Clone, Copy, PartialEq, Eq, Debug)] +pub enum ChainPolicy { + /// Cut immediately (dragging must feel instant). + Immediate, + /// Play the chain's finish clip first, then hand over to the new chain. + FinishFirst, + /// Like `FinishFirst`, but the start clip that is running also plays out in full first: the + /// finish clip starts from the pose that clip was building. Used by the chains that hold a + /// continuous state (typing, music), where a cut would show the hamster snapping between poses + /// it never reached. + WaitForStart, +} + +#[derive(Clone, Copy, PartialEq, Eq, Debug)] +pub enum Phase { + Start, + Loop, + Finish, +} + +/// Clip names making up one chain: optional start, optional looping middle, optional finish. +#[derive(Clone, Copy, Debug)] +pub struct Chain { + pub condition: Condition, + pub start: Option<&'static str>, + pub loop_clip: Option<&'static str>, + pub finish: Option<&'static str>, + pub ping_pong: bool, + pub policy: ChainPolicy, +} + +impl Chain { + pub fn clips(&self) -> impl Iterator { + [self.start, self.loop_clip, self.finish] + .into_iter() + .flatten() + } +} + +pub const IDLE_MAIN: Chain = Chain { + condition: Condition::MainIdle, + start: None, + loop_clip: Some("idle_main"), + finish: None, + ping_pong: false, + policy: ChainPolicy::FinishFirst, +}; + +pub const DRAG: Chain = Chain { + condition: Condition::Drag, + start: Some("drag_start"), + loop_clip: Some("drag_loop"), + finish: Some("drag_end"), + ping_pong: true, + policy: ChainPolicy::Immediate, +}; + +pub const TYPING: Chain = Chain { + condition: Condition::Typing, + start: Some("typing_start"), + loop_clip: Some("typing"), + finish: Some("typing_stop"), + ping_pong: false, + policy: ChainPolicy::WaitForStart, +}; + +/// Single reaction clip: no finish, so a reaction can never delay typing. +pub const SCREENSHOT: Chain = Chain { + condition: Condition::Screenshot, + start: Some("screenshot"), + loop_clip: None, + finish: None, + ping_pong: false, + policy: ChainPolicy::FinishFirst, +}; + +/// Takes the headphones on, listens in a loop for as long as a player reports `Playing`, and takes +/// them off again when it stops. +pub const MUSIC: Chain = Chain { + condition: Condition::Music, + start: Some("music_start"), + loop_clip: Some("music"), + finish: Some("music_stop"), + ping_pong: false, + policy: ChainPolicy::WaitForStart, +}; + +#[derive(Clone, Copy, Debug, PartialEq, Eq)] +pub enum ActivityKind { + /// One clip played once (blink, yawn, ...). + OneShot(&'static str), + /// start -> loop (for `loop_ms`) -> finish. + Full { + start: &'static str, + loop_clip: &'static str, + finish: &'static str, + }, +} + +#[derive(Clone, Copy, Debug)] +pub struct Activity { + pub name: &'static str, + /// Relative weight, taken from the probability values of the original animation XMLs. + pub weight: u32, + /// Minimum time before this activity may repeat; long activities should not chain back to back. + pub min_gap_ms: u64, + pub kind: ActivityKind, +} + +impl Activity { + pub fn clips(&self) -> impl Iterator { + match self.kind { + ActivityKind::OneShot(clip) => vec![clip].into_iter(), + ActivityKind::Full { + start, + loop_clip, + finish, + } => vec![start, loop_clip, finish].into_iter(), + } + } + + pub fn chain(&self, loop_ms: u64) -> ActivityChain { + ActivityChain { + activity: *self, + loop_ms, + } + } +} + +/// Activity chain plus the concrete loop duration picked by the scheduler. +#[derive(Clone, Copy, Debug)] +pub struct ActivityChain { + pub activity: Activity, + pub loop_ms: u64, +} + +impl ActivityChain { + pub fn chain(&self) -> Chain { + match self.activity.kind { + ActivityKind::OneShot(clip) => Chain { + condition: Condition::IdleActivity, + start: Some(clip), + loop_clip: None, + finish: None, + ping_pong: false, + policy: ChainPolicy::FinishFirst, + }, + ActivityKind::Full { + start, + loop_clip, + finish, + } => Chain { + condition: Condition::IdleActivity, + start: Some(start), + loop_clip: Some(loop_clip), + finish: Some(finish), + ping_pong: false, + policy: ChainPolicy::FinishFirst, + }, + } + } +} + +const MINUTE: u64 = 60_000; +const ACTIVITY_GAP_MS: u64 = 2 * MINUTE; + +/// Idle activities and their original weights: blink dominates, the long props are rare. +pub const IDLE_ACTIVITIES: &[Activity] = &[ + Activity { + name: "blink", + weight: 500, + min_gap_ms: 0, + kind: ActivityKind::OneShot("idle_blink"), + }, + Activity { + name: "rock", + weight: 150, + min_gap_ms: 0, + kind: ActivityKind::OneShot("idle_rock"), + }, + Activity { + name: "nose_rub", + weight: 50, + min_gap_ms: 0, + kind: ActivityKind::OneShot("idle_nose_rub"), + }, + Activity { + name: "squint", + weight: 40, + min_gap_ms: 0, + kind: ActivityKind::OneShot("idle_squint"), + }, + Activity { + name: "yawn", + weight: 20, + min_gap_ms: 0, + kind: ActivityKind::OneShot("idle_yawn"), + }, + Activity { + name: "peek", + weight: 20, + min_gap_ms: 0, + kind: ActivityKind::OneShot("idle_peek"), + }, + Activity { + name: "dig", + weight: 10, + min_gap_ms: 0, + kind: ActivityKind::OneShot("idle_dig"), + }, + Activity { + name: "look_around", + weight: 5, + min_gap_ms: 0, + kind: ActivityKind::OneShot("idle_look_around"), + }, + Activity { + name: "yawn_second", + weight: 5, + min_gap_ms: 0, + kind: ActivityKind::OneShot("idle_yawn_second"), + }, + Activity { + name: "paper_plane", + weight: 5, + min_gap_ms: 0, + kind: ActivityKind::OneShot("idle_paper_plane"), + }, + Activity { + name: "newspaper", + weight: 5, + min_gap_ms: ACTIVITY_GAP_MS, + kind: ActivityKind::Full { + start: "idle_activity_newspaper_start", + loop_clip: "idle_activity_newspaper_loop", + finish: "idle_activity_newspaper_finish", + }, + }, + Activity { + name: "book", + weight: 5, + min_gap_ms: ACTIVITY_GAP_MS, + kind: ActivityKind::Full { + start: "idle_activity_book_start", + loop_clip: "idle_activity_book_loop", + finish: "idle_activity_book_finish", + }, + }, + Activity { + name: "sleep", + weight: 5, + min_gap_ms: ACTIVITY_GAP_MS, + kind: ActivityKind::Full { + start: "idle_activity_sleep_start", + loop_clip: "idle_activity_sleep_loop", + finish: "idle_activity_sleep_finish", + }, + }, +]; + +/// Loop clips of the full activities: the only loops the engine plays for a set time, so the only +/// ones a minimum loop count can stretch. +pub fn timed_loop_clips() -> Vec<&'static str> { + IDLE_ACTIVITIES + .iter() + .filter_map(|activity| match activity.kind { + ActivityKind::Full { loop_clip, .. } => Some(loop_clip), + ActivityKind::OneShot(_) => None, + }) + .collect() +} + +/// Every clip name the engine can ask for, used to validate the manifest at startup. +pub fn required_clips() -> Vec<&'static str> { + let mut names: Vec<&'static str> = [IDLE_MAIN, DRAG, TYPING, SCREENSHOT, MUSIC] + .iter() + .flat_map(|chain| chain.clips()) + .collect(); + names.extend(IDLE_ACTIVITIES.iter().flat_map(|a| a.clips())); + names.sort_unstable(); + names.dedup(); + names +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn activity_names_and_clips_are_unique() { + let mut names: Vec<&str> = IDLE_ACTIVITIES.iter().map(|a| a.name).collect(); + names.sort_unstable(); + let count = names.len(); + names.dedup(); + assert_eq!(names.len(), count, "duplicate activity name"); + + let mut clips = required_clips(); + let count = clips.len(); + clips.dedup(); + assert_eq!(clips.len(), count, "duplicate clip in the vocabulary"); + } + + #[test] + fn chains_only_use_clips_that_exist_in_the_vocabulary() { + let vocabulary = required_clips(); + for chain in [IDLE_MAIN, DRAG, TYPING, SCREENSHOT, MUSIC] { + for clip in chain.clips() { + assert!(vocabulary.contains(&clip), "{clip} missing"); + } + } + for activity in IDLE_ACTIVITIES { + for clip in activity.clips() { + assert!(vocabulary.contains(&clip), "{clip} missing"); + } + } + } + + #[test] + fn one_shot_activity_maps_to_a_start_only_chain() { + let blink = IDLE_ACTIVITIES.iter().find(|a| a.name == "blink").unwrap(); + let chain = blink.chain(0).chain(); + assert_eq!(chain.start, Some("idle_blink")); + assert_eq!(chain.loop_clip, None); + assert_eq!(chain.finish, None); + } + + #[test] + fn full_activity_maps_to_start_loop_finish() { + let sleep = IDLE_ACTIVITIES.iter().find(|a| a.name == "sleep").unwrap(); + let chain = sleep.chain(5000).chain(); + assert_eq!(chain.start, Some("idle_activity_sleep_start")); + assert_eq!(chain.loop_clip, Some("idle_activity_sleep_loop")); + assert_eq!(chain.finish, Some("idle_activity_sleep_finish")); + } + + #[test] + fn the_dig_activity_is_part_of_the_vocabulary_even_though_it_is_disabled_by_default() { + assert!(required_clips().contains(&"idle_dig")); + assert!(crate::core::config::Config::default() + .disabled_activities + .contains("dig")); + } +} diff --git a/src/core/clip_player.rs b/src/core/clip_player.rs new file mode 100644 index 0000000..d9edb96 --- /dev/null +++ b/src/core/clip_player.rs @@ -0,0 +1,218 @@ +/// Plays one clip at its own frame rate, driven by elapsed wall-clock time. +/// +/// The frame rate is a property of the clip, not of the display: on a 60 Hz, 144 Hz or +/// throttled compositor the clip still advances `fps` frames per real second. A render +/// tick longer than `MAX_STEP_MS` is clamped so a hiccup slows playback instead of +/// skipping a visible chunk of the animation. +pub struct ClipPlayer { + clip: String, + frames: u32, + fps: f64, + looping: bool, + ping_pong: bool, + index: u32, + forward: bool, + accum_ms: f64, + finished: bool, +} + +pub const MAX_STEP_MS: f64 = 100.0; + +impl ClipPlayer { + pub fn new(clip: &str, frames: u32, fps: f64, looping: bool, ping_pong: bool) -> Self { + ClipPlayer { + clip: clip.to_string(), + frames: frames.max(1), + fps: if fps.is_finite() { fps.max(0.1) } else { 1.0 }, + looping, + ping_pong: looping && ping_pong, + index: 0, + forward: true, + accum_ms: 0.0, + finished: false, + } + } + + /// Advances by `dt_ms` of real time. Returns true when the visible frame changed. + pub fn advance(&mut self, dt_ms: f64) -> bool { + if self.finished || dt_ms <= 0.0 { + return false; + } + let frame_ms = self.frame_duration_ms(); + let before = self.index; + self.accum_ms += dt_ms.min(MAX_STEP_MS); + while self.accum_ms >= frame_ms { + self.accum_ms -= frame_ms; + self.step(); + if self.finished { + self.accum_ms = 0.0; + break; + } + } + self.index != before + } + + pub fn index(&self) -> u32 { + self.index + } + + pub fn clip(&self) -> &str { + &self.clip + } + + pub fn finished(&self) -> bool { + self.finished + } + + /// True once a one-shot clip sits on its last frame. + pub fn at_end(&self) -> bool { + !self.looping && self.index + 1 >= self.frames + } + + pub fn frame_duration_ms(&self) -> f64 { + 1000.0 / self.fps + } + + pub fn frames(&self) -> u32 { + self.frames + } + + fn step(&mut self) { + let last = self.frames - 1; + if self.frames <= 1 { + if !self.looping { + self.finished = true; + } + return; + } + if !self.looping { + if self.index >= last { + self.finished = true; + } else { + self.index += 1; + } + return; + } + if self.ping_pong { + if self.forward { + if self.index >= last { + self.forward = false; + self.index = last - 1; + } else { + self.index += 1; + } + } else if self.index == 0 { + self.forward = true; + self.index = 1; + } else { + self.index -= 1; + } + } else { + self.index = (self.index + 1) % self.frames; + } + } +} + +#[cfg(test)] +mod tests { + use super::*; + + fn clip(frames: u32, fps: f64, looping: bool) -> ClipPlayer { + ClipPlayer::new("test", frames, fps, looping, false) + } + + #[test] + fn advances_one_frame_per_frame_duration() { + let mut p = clip(10, 30.0, false); + assert_eq!(p.index(), 0); + // 33 ms is just under one 33.33 ms frame at 30 fps. + assert!(!p.advance(33.0)); + assert!(p.advance(1.0)); + assert_eq!(p.index(), 1); + } + + #[test] + fn rate_is_monitor_independent() { + // The same wall-clock second must give the same frame at any tick rate. + let mut counted = Vec::new(); + for tick in [4.0, 8.0, 16.0, 33.0] { + let mut p = clip(1000, 40.0, true); + let mut elapsed = 0.0; + while elapsed < 1000.0 { + p.advance(tick); + elapsed += tick; + } + counted.push(p.index()); + } + assert!( + counted.windows(2).all(|pair| pair[0] == pair[1]), + "rates disagreed: {counted:?}" + ); + // 40 fps divides a second exactly, so the expected frame is unambiguous. + assert_eq!(counted[0], 40); + } + + #[test] + fn one_shot_holds_the_last_frame_then_finishes() { + let mut p = clip(3, 25.0, false); + p.advance(1000.0); + assert_eq!(p.index(), 2); + assert!(p.at_end()); + assert!(!p.finished(), "the last frame still gets its display time"); + p.advance(p.frame_duration_ms() + 1.0); + assert!(p.finished()); + assert!(!p.advance(1000.0)); + assert_eq!(p.index(), 2); + } + + #[test] + fn loop_wraps_and_never_finishes() { + let mut p = clip(4, 30.0, true); + for expected in [1, 2, 3, 0] { + p.advance(p.frame_duration_ms() + 0.5); + assert_eq!(p.index(), expected); + } + assert!(!p.finished()); + } + + #[test] + fn ping_pong_reverses_without_repeating_the_turn_frame() { + let mut p = ClipPlayer::new("test", 4, 30.0, true, true); + let step = p.frame_duration_ms() + 0.5; + p.advance(step); + assert_eq!(p.index(), 1); + p.advance(step); + assert_eq!(p.index(), 2); + p.advance(step); + assert_eq!(p.index(), 3); + p.advance(step); + assert_eq!(p.index(), 2); + p.advance(step); + assert_eq!(p.index(), 1); + p.advance(step); + assert_eq!(p.index(), 0); + p.advance(step); + assert_eq!(p.index(), 1); + } + + #[test] + fn single_frame_clip_holds_its_only_frame() { + let mut p = clip(1, 30.0, true); + assert!(!p.advance(1000.0)); + assert_eq!(p.index(), 0); + + let mut one_shot = clip(1, 30.0, false); + one_shot.advance(1000.0); + assert_eq!(one_shot.index(), 0); + assert!(one_shot.finished()); + } + + #[test] + fn long_stall_is_clamped_instead_of_skipping_a_chunk() { + // 10 fps: a frame lasts exactly the 100 ms step cap, so one step shows one frame + // instead of fast-forwarding through the whole clip after a stall. + let mut p = clip(100, 10.0, false); + p.advance(5000.0); + assert_eq!(p.index(), 1); + } +} diff --git a/src/core/clock.rs b/src/core/clock.rs new file mode 100644 index 0000000..d7aa24a --- /dev/null +++ b/src/core/clock.rs @@ -0,0 +1,58 @@ +use std::sync::atomic::{AtomicU64, Ordering}; +use std::time::{Duration, SystemTime, UNIX_EPOCH}; + +/// Monotonic millisecond clock, injectable so timing logic is testable. +pub trait Clock: Send + Sync { + fn now_ms(&self) -> u64; +} + +pub struct SystemClock; + +impl SystemClock { + pub fn new() -> Self { + SystemClock + } +} + +impl Default for SystemClock { + fn default() -> Self { + Self::new() + } +} + +impl Clock for SystemClock { + fn now_ms(&self) -> u64 { + // Wall clock keeps running behaviour sane across suspends, where Instant does not advance. + SystemTime::now() + .duration_since(UNIX_EPOCH) + .unwrap_or(Duration::ZERO) + .as_millis() as u64 + } +} + +#[derive(Debug, Default)] +pub struct FakeClock { + now_ms: AtomicU64, +} + +impl FakeClock { + pub fn new(start_ms: u64) -> Self { + FakeClock { + now_ms: AtomicU64::new(start_ms), + } + } + + pub fn set(&self, ms: u64) { + self.now_ms.store(ms, Ordering::SeqCst); + } + + pub fn advance(&self, ms: u64) { + self.now_ms.fetch_add(ms, Ordering::SeqCst); + } +} + +impl Clock for FakeClock { + fn now_ms(&self) -> u64 { + self.now_ms.load(Ordering::SeqCst) + } +} diff --git a/src/core/config.rs b/src/core/config.rs new file mode 100644 index 0000000..b544623 --- /dev/null +++ b/src/core/config.rs @@ -0,0 +1,488 @@ +use serde::{Deserialize, Deserializer, Serialize}; +use std::collections::{BTreeMap, BTreeSet}; +use std::path::{Path, PathBuf}; + +use crate::core::chains::{timed_loop_clips, IDLE_ACTIVITIES}; +use crate::core::manifest::{Point, MAX_FPS}; +use crate::Result; + +pub const MIN_FPS_SCALE: f32 = 0.1; +pub const MAX_FPS_SCALE: f32 = 4.0; +/// Default time the hamster keeps typing after the last key. +pub const DEFAULT_TYPING_STOP_DELAY_MS: u64 = 700; +/// A few keys in a row are typing; one key is a shortcut. +pub const DEFAULT_TYPING_START_KEYS: u32 = 3; +pub const DEFAULT_TYPING_START_WINDOW_MS: u64 = 1_500; +/// Upper bound for `min_loops`, so a typo cannot keep an activity running for minutes. +pub const MAX_MIN_LOOPS: u32 = 30; + +/// User-tunable behaviour. Every field has a default, so a partial or broken file +/// never stops the pet from starting; problems come back as warnings. +#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] +#[serde(default, deny_unknown_fields)] +pub struct Config { + /// `None` picks a time based seed; a number makes runs reproducible. + pub seed: Option, + /// Global playback speed multiplier, handy while tuning clip rates. + pub fps_scale: f32, + /// Per clip frame rate overrides, keyed by clip name. + pub clip_fps: BTreeMap, + /// Minimum full plays of a looping clip before its loop may end, keyed by clip name. Only the + /// idle activity loops run for a set time, so only they can be stretched this way. + pub min_loops: BTreeMap, + /// Idle activity names that must never play. + pub disabled_activities: BTreeSet, + /// How long after the last key the hamster stops typing. + pub typing_stop_delay_ms: u64, + /// Key presses needed inside `typing_start_window_ms` before the hamster starts typing, so a + /// single key (a shortcut, a volume button) does not make it type. + pub typing_start_keys: u32, + /// Sliding window those presses are counted in. + pub typing_start_window_ms: u64, + /// How long a queued screenshot reaction may wait before it is dropped as stale. + pub screenshot_request_ttl_ms: u64, + /// Delay between idle activities: [min, max]. + pub idle_delay_ms: [u64; 2], + /// How long a full idle activity loops: [min, max]. + pub activity_loop_ms: [u64; 2], + /// Last pet anchor position, in the backend's coordinate space. It may sit over a screen edge: + /// only a start position that is off every monitor is pulled back on screen. + pub position: Option, + /// Display server to use: "auto", "wayland" or "x11". + pub backend: String, + /// Wayland output name this pet lives on ("DP-2", "HDMI-A-1", ...); empty picks the largest. + pub output: Option, + /// What the pet reacts to besides the pointer. + pub sensors: SensorsConfig, + /// Show a startup dialog for anything the pet cannot use, with how to fix it. The pet runs on + /// either way, so ignoring the dialog is allowed; `--no-dialog` turns it off for one run. + pub startup_dialog: bool, +} + +/// How the pet notices a screenshot, set by `sensors.screenshot`. The key is seen where it is +/// pressed, so a shot that is never saved still counts; the folder watch catches shots from tools +/// that are bound to another key, but only once the file is written. +#[derive(Debug, Clone, Copy, PartialEq, Eq, Default, Serialize, Deserialize)] +#[serde(rename_all = "lowercase")] +pub enum ScreenshotMode { + /// PrintScreen key and screenshot folders. + #[default] + Auto, + /// PrintScreen key only: the pet never looks at the disk. + Key, + /// New images only: for a desktop whose screenshot key does not reach the pet. + Files, + Off, +} + +impl ScreenshotMode { + pub fn uses_key(self) -> bool { + matches!(self, ScreenshotMode::Auto | ScreenshotMode::Key) + } + + pub fn uses_files(self) -> bool { + matches!(self, ScreenshotMode::Auto | ScreenshotMode::Files) + } +} + +/// Accepts a mode name, or the `true` / `false` a config written before modes existed holds. +fn screenshot_mode<'de, D>(deserializer: D) -> std::result::Result +where + D: Deserializer<'de>, +{ + #[derive(Deserialize)] + #[serde(untagged)] + enum Raw { + Bool(bool), + Name(ScreenshotMode), + } + Ok(match Raw::deserialize(deserializer)? { + Raw::Bool(true) => ScreenshotMode::Auto, + Raw::Bool(false) => ScreenshotMode::Off, + Raw::Name(mode) => mode, + }) +} + +/// Global signals the pet listens to. Sensors only report facts; timing lives in the engine. +#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] +#[serde(default, deny_unknown_fields)] +pub struct SensorsConfig { + /// `auto` or `evdev` read /dev/input directly, which needs the `input` group; `off` disables it. + pub typing: String, + /// React to MPRIS players that report `Playing`. + pub music: bool, + /// What counts as a screenshot: `auto`, `key`, `files` or `off`. + #[serde(deserialize_with = "screenshot_mode")] + pub screenshot: ScreenshotMode, + /// Folders watched for screenshots; empty means the XDG pictures folder. + pub screenshot_dirs: Vec, +} + +impl Default for SensorsConfig { + fn default() -> Self { + SensorsConfig { + typing: "auto".to_string(), + music: true, + screenshot: ScreenshotMode::Auto, + screenshot_dirs: Vec::new(), + } + } +} + +impl SensorsConfig { + /// Everything off, used by `--no-sensors` and the automated checks. + pub fn disabled() -> Self { + SensorsConfig { + typing: "off".to_string(), + music: false, + screenshot: ScreenshotMode::Off, + screenshot_dirs: Vec::new(), + } + } +} + +impl Default for Config { + fn default() -> Self { + Config { + seed: None, + fps_scale: 1.0, + clip_fps: BTreeMap::new(), + min_loops: BTreeMap::new(), + // Disabled in the original animation set as well. + disabled_activities: BTreeSet::from(["dig".to_string()]), + typing_stop_delay_ms: DEFAULT_TYPING_STOP_DELAY_MS, + typing_start_keys: DEFAULT_TYPING_START_KEYS, + typing_start_window_ms: DEFAULT_TYPING_START_WINDOW_MS, + screenshot_request_ttl_ms: 3_000, + idle_delay_ms: [2_000, 7_000], + activity_loop_ms: [2_500, 5_000], + position: None, + backend: "auto".to_string(), + output: None, + sensors: SensorsConfig::default(), + startup_dialog: true, + } + } +} + +impl Config { + /// Loads a config, clamping bad values. Returns the usable config plus human readable warnings. + pub fn from_json_str(text: &str) -> (Config, Vec) { + match serde_json::from_str::(text) { + Ok(config) => config.sanitized(), + Err(err) => ( + Config::default(), + vec![format!("config ignored, using defaults: {err}")], + ), + } + } + + pub fn from_file(path: &std::path::Path) -> (Config, Vec) { + match std::fs::read_to_string(path) { + Ok(text) => Self::from_json_str(&text), + Err(err) => ( + Config::default(), + vec![format!("cannot read {}: {err}", path.display())], + ), + } + } + + pub fn to_json_string(&self) -> String { + serde_json::to_string_pretty(self).unwrap_or_else(|_| "{}".to_string()) + } + + /// Writes the config, creating its directory. Used to remember the window position. + pub fn save(&self, path: &Path) -> Result<()> { + if let Some(parent) = path.parent() { + std::fs::create_dir_all(parent)?; + } + std::fs::write(path, self.to_json_string())?; + Ok(()) + } + + /// File name of the config that lives next to the assets, in the working directory. + /// Nothing of the pet ever goes into the user's home directory. + pub const DEFAULT_FILE: &'static str = "config.json"; + + /// The config used when `--config` is not given: `config.json` in the working directory, if it + /// is there. Without one the pet runs on its defaults and writes nothing. + pub fn default_path() -> Option { + let path = PathBuf::from(Self::DEFAULT_FILE); + path.exists().then_some(path) + } + + pub fn sanitized(mut self) -> (Config, Vec) { + let mut warnings = Vec::new(); + + if !(MIN_FPS_SCALE..=MAX_FPS_SCALE).contains(&self.fps_scale) || !self.fps_scale.is_finite() + { + warnings.push(format!( + "fps_scale {} out of range, clamped to 1.0", + self.fps_scale + )); + self.fps_scale = 1.0; + } + + let before = self.clip_fps.len(); + self.clip_fps.retain(|name, fps| { + if *fps == 0 || *fps > MAX_FPS { + false + } else { + let _ = name; + true + } + }); + if self.clip_fps.len() != before { + warnings.push(format!( + "{} clip_fps entries were outside 1..={MAX_FPS} and were dropped", + before - self.clip_fps.len() + )); + } + + let timed_loops = timed_loop_clips(); + let unknown_loops: Vec = self + .min_loops + .keys() + .filter(|name| !timed_loops.contains(&name.as_str())) + .cloned() + .collect(); + if !unknown_loops.is_empty() { + warnings.push(format!( + "min_loops only applies to the idle activity loops ({}), ignored for: {}", + timed_loops.join(", "), + unknown_loops.join(", ") + )); + self.min_loops + .retain(|name, _| timed_loops.contains(&name.as_str())); + } + let mut clamped_loops = Vec::new(); + for (name, loops) in self.min_loops.iter_mut() { + if *loops > MAX_MIN_LOOPS { + clamped_loops.push(name.clone()); + *loops = MAX_MIN_LOOPS; + } + } + if !clamped_loops.is_empty() { + warnings.push(format!( + "min_loops above {MAX_MIN_LOOPS} clamped for: {}", + clamped_loops.join(", ") + )); + } + // Zero means "no minimum", which is the same as leaving the clip out. + self.min_loops.retain(|_, loops| *loops > 0); + + let known: BTreeSet<&str> = IDLE_ACTIVITIES.iter().map(|a| a.name).collect(); + let unknown: Vec = self + .disabled_activities + .iter() + .filter(|name| !known.contains(name.as_str())) + .cloned() + .collect(); + if !unknown.is_empty() { + warnings.push(format!( + "unknown activities ignored: {}", + unknown.join(", ") + )); + self.disabled_activities + .retain(|name| known.contains(name.as_str())); + } + + self.typing_stop_delay_ms = clamp(self.typing_stop_delay_ms, 50, 5_000); + self.typing_start_keys = clamp(u64::from(self.typing_start_keys), 1, 50) as u32; + self.typing_start_window_ms = clamp(self.typing_start_window_ms, 100, 10_000); + self.screenshot_request_ttl_ms = clamp(self.screenshot_request_ttl_ms, 100, 60_000); + self.idle_delay_ms = clamp_range(self.idle_delay_ms, 500, 600_000); + self.activity_loop_ms = clamp_range(self.activity_loop_ms, 100, 600_000); + + if !matches!(self.backend.as_str(), "auto" | "wayland" | "x11") { + warnings.push(format!( + "backend '{}' is unknown, using auto (wayland, x11)", + self.backend + )); + self.backend = "auto".to_string(); + } + if self.output.as_deref() == Some("") { + self.output = None; + } + if !matches!(self.sensors.typing.as_str(), "auto" | "evdev" | "off") { + warnings.push(format!( + "sensors.typing '{}' is unknown, using auto", + self.sensors.typing + )); + self.sensors.typing = "auto".to_string(); + } + self.sensors.screenshot_dirs.retain(|dir| dir.is_absolute()); + (self, warnings) + } +} + +fn clamp(value: u64, lo: u64, hi: u64) -> u64 { + value.max(lo).min(hi) +} + +fn clamp_range(range: [u64; 2], lo: u64, hi: u64) -> [u64; 2] { + let a = clamp(range[0], lo, hi); + let b = clamp(range[1], lo, hi); + [a.min(b), a.max(b)] +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn partial_config_keeps_defaults() { + let (config, warnings) = Config::from_json_str(r#"{"typing_stop_delay_ms": 400}"#); + assert_eq!(config.typing_stop_delay_ms, 400); + assert_eq!(config.fps_scale, 1.0); + assert!(warnings.is_empty(), "{warnings:?}"); + } + + #[test] + fn broken_json_falls_back_to_defaults_with_a_warning() { + let (config, warnings) = Config::from_json_str("{ not json"); + assert_eq!(config, Config::default()); + assert_eq!(warnings.len(), 1); + } + + #[test] + fn unknown_fields_are_reported() { + let (_, warnings) = Config::from_json_str(r#"{"fps_scales": 2.0}"#); + assert_eq!(warnings.len(), 1); + assert!(warnings[0].contains("fps_scales"), "{warnings:?}"); + } + + #[test] + fn out_of_range_values_are_clamped() { + let (config, warnings) = Config::from_json_str( + r#"{"fps_scale": 99, "typing_stop_delay_ms": 0, "idle_delay_ms": [90000, 10], "screenshot_request_ttl_ms": 0}"#, + ); + assert_eq!(config.fps_scale, 1.0); + assert_eq!(config.typing_stop_delay_ms, 50); + assert_eq!(config.screenshot_request_ttl_ms, 100); + assert_eq!(config.idle_delay_ms, [500, 90_000]); + assert_eq!(warnings.len(), 1, "only fps_scale is warned about"); + } + + #[test] + fn unknown_activities_and_bad_fps_overrides_are_dropped() { + let (config, warnings) = Config::from_json_str( + r#"{"disabled_activities": ["dig", "teleport"], "clip_fps": {"typing": 60, "ghost": 0}}"#, + ); + assert_eq!( + config.disabled_activities, + BTreeSet::from(["dig".to_string()]) + ); + assert_eq!(config.clip_fps.get("typing"), Some(&60)); + assert_eq!(config.clip_fps.len(), 1); + assert_eq!(warnings.len(), 2); + } + + #[test] + fn min_loops_keeps_only_the_idle_activity_loops() { + let (config, warnings) = Config::from_json_str( + r#"{"min_loops": {"idle_activity_sleep_loop": 3, "typing": 2, "ghost": 1}}"#, + ); + assert_eq!(config.min_loops.get("idle_activity_sleep_loop"), Some(&3)); + assert_eq!(config.min_loops.len(), 1, "{config:?}"); + assert_eq!(warnings.len(), 1, "{warnings:?}"); + assert!(warnings[0].contains("typing") && warnings[0].contains("ghost")); + } + + #[test] + fn min_loops_is_clamped_and_zero_means_no_minimum() { + let (config, warnings) = Config::from_json_str( + r#"{"min_loops": {"idle_activity_sleep_loop": 999, "idle_activity_book_loop": 0}}"#, + ); + assert_eq!( + config.min_loops.get("idle_activity_sleep_loop"), + Some(&MAX_MIN_LOOPS) + ); + assert!(!config.min_loops.contains_key("idle_activity_book_loop")); + assert_eq!(warnings.len(), 1, "{warnings:?}"); + } + + #[test] + fn an_unknown_backend_and_typing_mode_fall_back() { + let (config, warnings) = + Config::from_json_str(r#"{"backend": "quartz", "sensors": {"typing": "telepathy"}}"#); + assert_eq!(config.backend, "auto"); + assert_eq!(config.sensors.typing, "auto"); + assert_eq!(warnings.len(), 2, "{warnings:?}"); + } + + #[test] + fn every_screenshot_mode_is_read_and_old_booleans_still_work() { + let (config, warnings) = Config::from_json_str(r#"{"sensors": {"screenshot": "key"}}"#); + assert_eq!(config.sensors.screenshot, ScreenshotMode::Key); + assert!(config.sensors.screenshot.uses_key()); + assert!(!config.sensors.screenshot.uses_files()); + assert!(warnings.is_empty(), "{warnings:?}"); + + let (config, _) = Config::from_json_str(r#"{"sensors": {"screenshot": true}}"#); + assert_eq!(config.sensors.screenshot, ScreenshotMode::Auto); + let (config, _) = Config::from_json_str(r#"{"sensors": {"screenshot": false}}"#); + assert_eq!(config.sensors.screenshot, ScreenshotMode::Off); + let (config, warnings) = Config::from_json_str(r#"{"sensors": {"screenshot": "both"}}"#); + assert_eq!(config.sensors.screenshot, ScreenshotMode::Auto); + assert_eq!( + warnings.len(), + 1, + "an unknown mode is reported: {warnings:?}" + ); + } + + #[test] + fn relative_screenshot_folders_are_dropped() { + let (config, warnings) = Config::from_json_str( + r#"{"sensors": {"screenshot_dirs": ["pictures", "/var/tmp/shots"]}}"#, + ); + assert_eq!( + config.sensors.screenshot_dirs, + vec![PathBuf::from("/var/tmp/shots")] + ); + assert!(warnings.is_empty(), "{warnings:?}"); + } + + #[test] + fn sensors_are_on_by_default_and_can_be_turned_off() { + assert_eq!(Config::default().sensors, SensorsConfig::default()); + assert_eq!(SensorsConfig::disabled().typing, "off"); + assert!(!SensorsConfig::disabled().music); + assert_eq!(SensorsConfig::disabled().screenshot, ScreenshotMode::Off); + assert!(Config::default().startup_dialog); + } + + #[test] + fn round_trip_through_json() { + let (config, _) = Config::from_json_str(&Config::default().to_json_string()); + assert_eq!(config, Config::default()); + } + + #[test] + fn dig_is_disabled_by_default() { + assert!(Config::default().disabled_activities.contains("dig")); + } + + #[test] + fn saves_and_reloads_the_window_position() { + let dir = std::env::temp_dir().join(format!("hamster-pet-config-{}", std::process::id())); + let path = dir.join("nested/config.json"); + let config = Config { + position: Some(Point { x: -20, y: 40 }), + ..Config::default() + }; + config.save(&path).unwrap(); + let (loaded, warnings) = Config::from_file(&path); + assert!(warnings.is_empty(), "{warnings:?}"); + assert_eq!(loaded.position, Some(Point { x: -20, y: 40 })); + let _ = std::fs::remove_dir_all(&dir); + } + + #[test] + fn a_missing_config_file_falls_back_to_defaults() { + let (config, warnings) = Config::from_file(Path::new("/nope/missing-config.json")); + assert_eq!(config, Config::default()); + assert_eq!(warnings.len(), 1); + } +} diff --git a/src/core/engine.rs b/src/core/engine.rs new file mode 100644 index 0000000..e87d553 --- /dev/null +++ b/src/core/engine.rs @@ -0,0 +1,1239 @@ +use std::collections::{BTreeMap, BTreeSet}; + +use crate::core::chains::{self, ActivityKind, Chain, ChainPolicy, Phase, IDLE_ACTIVITIES}; +use crate::core::clip_player::ClipPlayer; +use crate::core::config::Config; +use crate::core::manifest::Manifest; +use crate::core::rng::Rng; +use crate::Result; + +/// Sensor input. Sensors report raw facts; all timing decisions happen here. +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum Event { + TypingActivity, + DragStart, + DragStop, + ScreenshotTaken, + MediaPlaying(bool), +} + +/// Ordered by priority: a higher condition takes over from a lower one. +#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)] +pub enum Condition { + MainIdle, + IdleActivity, + Music, + Typing, + Screenshot, + Drag, +} + +impl Condition { + pub fn as_str(&self) -> &'static str { + match self { + Condition::MainIdle => "main_idle", + Condition::IdleActivity => "idle_activity", + Condition::Music => "music", + Condition::Typing => "typing", + Condition::Screenshot => "screenshot", + Condition::Drag => "drag", + } + } +} + +/// One clip hand-off, kept so tests and the replay mode can verify the sequence. +#[derive(Debug, Clone, PartialEq, Eq)] +pub struct Transition { + pub at_ms: u64, + pub from: Condition, + pub to: Condition, + pub clip: String, + pub phase: Phase, +} + +#[derive(Debug, Clone, Copy)] +struct ResolvedClip { + frames: u32, + fps: u32, + looping: bool, +} + +impl ResolvedClip { + /// One full play at the configured speed, rounded up so rounding never cuts a cycle short. + fn cycle_ms(&self, fps_scale: f32) -> u64 { + let fps = f64::from(self.fps) * f64::from(fps_scale); + if fps <= 0.0 { + return 0; + } + (f64::from(self.frames) * 1000.0 / fps).ceil() as u64 + } +} + +#[derive(Debug, Clone, Copy)] +struct ActiveChain { + chain: Chain, + loop_until_ms: Option, +} + +/// Life cycle of a screenshot reaction: it may wait in line, but only until its TTL. +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +enum ScreenshotRequest { + Idle, + Queued { since_ms: u64 }, + Playing, +} + +#[derive(Debug, Clone, Copy)] +struct ActivityRun { + index: usize, + loop_ms: u64, + done: bool, +} + +pub struct Engine { + clips: BTreeMap, + config: Config, + rng: Rng, + now_ms: u64, + last_key_ms: Option, + /// Presses seen while the hamster is not typing yet, used by the start threshold. + key_presses_ms: Vec, + dragging: bool, + media_playing: bool, + /// A hand-over was asked for while a start clip that must not be cut was still playing. + wait_for_start: bool, + screenshot: ScreenshotRequest, + activity: Option, + next_activity_at_ms: u64, + /// `None` until an activity has played once; cooldowns only apply after that. + activity_last_played_ms: Vec>, + active: ActiveChain, + player: ClipPlayer, + phase: Phase, + transitions: Vec, +} + +impl Engine { + /// Validates that every clip the enabled chains need exists, then starts in `main_idle`. + pub fn new( + manifest: &Manifest, + config: Config, + seed: u64, + start_ms: u64, + ) -> Result<(Engine, Vec)> { + let mut warnings = Vec::new(); + + let mut required: BTreeSet<&str> = [ + chains::IDLE_MAIN, + chains::DRAG, + chains::TYPING, + chains::SCREENSHOT, + chains::MUSIC, + ] + .iter() + .flat_map(|chain| chain.clips()) + .collect(); + for activity in Self::enabled_activities(&config) { + required.extend(activity.clips()); + } + + let mut clips = BTreeMap::new(); + for name in &required { + let clip = manifest.clip(name)?; + let fps = config.clip_fps.get(*name).copied().unwrap_or(clip.fps); + clips.insert( + (*name).to_string(), + ResolvedClip { + frames: clip.frames, + fps, + looping: clip.looping, + }, + ); + } + + for name in config.clip_fps.keys() { + if !manifest.clips.contains_key(name) { + warnings.push(format!( + "clip_fps override for unknown clip '{name}' ignored" + )); + } + } + + let mut rng = Rng::new(seed); + let idle_delay = rng.range(config.idle_delay_ms[0], config.idle_delay_ms[1]); + let activity_count = IDLE_ACTIVITIES.len(); + + let mut engine = Engine { + clips, + config, + rng, + now_ms: start_ms, + last_key_ms: None, + key_presses_ms: Vec::new(), + dragging: false, + media_playing: false, + wait_for_start: false, + screenshot: ScreenshotRequest::Idle, + activity: None, + next_activity_at_ms: start_ms + idle_delay, + activity_last_played_ms: vec![None; activity_count], + active: ActiveChain { + chain: chains::IDLE_MAIN, + loop_until_ms: None, + }, + player: ClipPlayer::new( + "idle_main", + 1, + f64::from(crate::core::manifest::DEFAULT_FPS), + true, + false, + ), + phase: Phase::Loop, + transitions: Vec::new(), + }; + engine.start_chain(chains::IDLE_MAIN, start_ms); + Ok((engine, warnings)) + } + + pub fn on_event(&mut self, event: Event, now_ms: u64) { + self.update(now_ms); + match event { + // A lone key is a shortcut, not typing: the chain waits for a burst of presses inside + // `typing_start_window_ms`, and from then on a single key keeps it going. + Event::TypingActivity => { + let typing = self + .last_key_ms + .is_some_and(|last| now_ms < last + self.config.typing_stop_delay_ms); + if typing { + self.last_key_ms = Some(now_ms); + } else { + let window = self.config.typing_start_window_ms; + self.key_presses_ms + .retain(|at| now_ms.saturating_sub(*at) < window); + self.key_presses_ms.push(now_ms); + if self.key_presses_ms.len() >= self.config.typing_start_keys as usize { + self.key_presses_ms.clear(); + self.last_key_ms = Some(now_ms); + } + } + } + Event::DragStart => self.dragging = true, + Event::DragStop => self.dragging = false, + // A request made while one is already queued keeps the original wait time; + // a request that arrives during the reaction itself is ignored. + Event::ScreenshotTaken => { + if self.screenshot == ScreenshotRequest::Idle { + self.screenshot = ScreenshotRequest::Queued { since_ms: now_ms }; + } + } + Event::MediaPlaying(playing) => self.media_playing = playing, + } + self.update(now_ms); + } + + pub fn update(&mut self, now_ms: u64) { + let elapsed = now_ms.saturating_sub(self.now_ms) as f64; + self.now_ms = now_ms; + self.player.advance(elapsed); + + // Only a reaction that never got its turn expires; a running one plays out in full. + if let ScreenshotRequest::Queued { since_ms } = self.screenshot { + if now_ms >= since_ms + self.config.screenshot_request_ttl_ms { + self.screenshot = ScreenshotRequest::Idle; + } + } + + // A hand-over asked for during a start clip waits for that clip: the pose it ends in is what + // the loop and the finish clip continue from, so cutting it snaps the hamster. + if self.wait_for_start && self.phase == Phase::Start && self.player.finished() { + self.wait_for_start = false; + self.begin_finish_or_resolve(now_ms); + } else if self.player.finished() { + match self.phase { + Phase::Start => match self.active.chain.loop_clip { + Some(clip) => { + let from = self.active.chain.condition; + self.enter_phase(Phase::Loop, clip, now_ms, from); + } + None => self.begin_finish_or_resolve(now_ms), + }, + Phase::Finish => self.resolve(now_ms), + Phase::Loop => self.begin_finish_or_resolve(now_ms), + } + } + + if self.phase == Phase::Loop { + if let Some(until) = self.active.loop_until_ms { + if now_ms >= until { + self.begin_finish_or_resolve(now_ms); + } + } + } + + let desired = self.desired(now_ms); + let active = self.active.chain.condition; + if desired > active { + self.request(desired, now_ms); + } else if !self.still_holds(active, now_ms) { + if self.phase != Phase::Finish { + // The running condition has ended: hand over through its finish clip if it has one. + self.end_or_wait(now_ms); + } + } else { + // The condition came back while its start clip was still playing. + self.wait_for_start = false; + } + + self.maybe_start_activity(now_ms); + } + + pub fn visible(&self) -> (&str, u32) { + (self.player.clip(), self.player.index()) + } + + pub fn condition(&self) -> Condition { + self.active.chain.condition + } + + pub fn phase(&self) -> Phase { + self.phase + } + + pub fn now_ms(&self) -> u64 { + self.now_ms + } + + /// Current clip frame duration, so a renderer can sleep until the next visible change. + pub fn frame_duration_ms(&self) -> f64 { + self.player.frame_duration_ms() + } + + pub fn take_transitions(&mut self) -> Vec { + std::mem::take(&mut self.transitions) + } + + /// Highest priority first, kept in step with the `Ord` derive (see the unit test). + const PRIORITY: [Condition; 6] = [ + Condition::Drag, + Condition::Screenshot, + Condition::Typing, + Condition::Music, + Condition::IdleActivity, + Condition::MainIdle, + ]; + + /// Whether a condition currently applies. A lower priority request must not end the + /// running chain early: dragging keeps dragging while a screenshot waits in line. + fn still_holds(&self, condition: Condition, now_ms: u64) -> bool { + match condition { + Condition::Drag => self.dragging, + Condition::Typing => match self.last_key_ms { + Some(last) => now_ms < last + self.config.typing_stop_delay_ms, + None => false, + }, + Condition::Screenshot => self.screenshot != ScreenshotRequest::Idle, + Condition::Music => self.media_playing, + Condition::IdleActivity => self.activity.is_some_and(|run| !run.done), + Condition::MainIdle => true, + } + } + + /// The highest priority condition that currently applies. + fn desired(&self, now_ms: u64) -> Condition { + Self::PRIORITY + .into_iter() + .find(|condition| self.still_holds(*condition, now_ms)) + .unwrap_or(Condition::MainIdle) + } + + /// A higher priority condition wants in. Chains marked Immediate cut straight over; + /// every other chain lets the running one play its finish clip first. + fn request(&mut self, desired: Condition, now_ms: u64) { + let chain = self.chain_for(desired); + if chain.policy == ChainPolicy::Immediate || self.active.chain.finish.is_none() { + self.start_chain(chain, now_ms); + } else { + self.end_or_wait(now_ms); + } + } + + /// Ends the running chain: through its finish clip, or at once when it has none. A chain whose + /// start clip carries the hamster into its pose waits until that clip has played out, which the + /// top of `update` checks. + fn end_or_wait(&mut self, now_ms: u64) { + if self.active.chain.policy == ChainPolicy::WaitForStart + && self.phase == Phase::Start + && !self.player.finished() + { + self.wait_for_start = true; + } else { + self.begin_finish_or_resolve(now_ms); + } + } + + fn begin_finish_or_resolve(&mut self, now_ms: u64) { + // Leaving an activity always ends it, so an interrupted nap is not resumed later. + if self.active.chain.condition == Condition::IdleActivity { + self.mark_activity_done(); + } + // A finished reaction is not queued again. + if self.active.chain.condition == Condition::Screenshot { + self.screenshot = ScreenshotRequest::Idle; + } + // A finish clip that is already playing must not restart. + if self.phase == Phase::Finish { + return; + } + match self.active.chain.finish { + Some(clip) => { + let from = self.active.chain.condition; + self.enter_phase(Phase::Finish, clip, now_ms, from); + } + None => self.resolve(now_ms), + } + } + + /// Re-reads the current inputs, so a condition that changed during a finish clip wins. + fn resolve(&mut self, now_ms: u64) { + let desired = self.desired(now_ms); + if desired != Condition::IdleActivity { + self.clear_activity(now_ms); + } + let chain = self.chain_for(desired); + self.start_chain(chain, now_ms); + } + + fn chain_for(&self, condition: Condition) -> Chain { + match condition { + Condition::Drag => chains::DRAG, + Condition::Typing => chains::TYPING, + Condition::Screenshot => chains::SCREENSHOT, + Condition::Music => chains::MUSIC, + Condition::IdleActivity => match self.activity { + Some(run) => IDLE_ACTIVITIES[run.index].chain(run.loop_ms).chain(), + None => chains::IDLE_MAIN, + }, + Condition::MainIdle => chains::IDLE_MAIN, + } + } + + /// When the loop phase has to end: only a full activity runs for a set time, every other loop + /// lasts as long as its condition. Measured from the loop itself, so the start clip is not part + /// of the budget, and raised to `min_loops` full cycles when one is configured. + fn loop_deadline(&self, clip: &str, now_ms: u64) -> Option { + let run = self.activity?; + if !matches!(IDLE_ACTIVITIES[run.index].kind, ActivityKind::Full { .. }) { + return None; + } + let cycles = self.config.min_loops.get(clip).copied().unwrap_or(0); + let minimum = self + .clips + .get(clip) + .map_or(0, |resolved| resolved.cycle_ms(self.config.fps_scale)) + * u64::from(cycles); + Some(now_ms + run.loop_ms.max(minimum)) + } + + fn start_chain(&mut self, chain: Chain, now_ms: u64) { + let from = self.active.chain.condition; + // Being cut short ends the reaction as well: it must not replay after a drag. + if from == Condition::Screenshot && chain.condition != Condition::Screenshot { + self.screenshot = ScreenshotRequest::Idle; + } + if chain.condition == Condition::Screenshot { + self.screenshot = ScreenshotRequest::Playing; + } + self.active = ActiveChain { + chain, + loop_until_ms: None, + }; + match (chain.start, chain.loop_clip, chain.finish) { + (Some(clip), _, _) => self.enter_phase(Phase::Start, clip, now_ms, from), + (None, Some(clip), _) => self.enter_phase(Phase::Loop, clip, now_ms, from), + (None, None, Some(clip)) => self.enter_phase(Phase::Finish, clip, now_ms, from), + (None, None, None) => { + debug_assert!(false, "chain without clips: {}", chain.condition.as_str()) + } + } + } + + fn enter_phase(&mut self, phase: Phase, clip: &'static str, now_ms: u64, from: Condition) { + // The wait only ever belongs to the clip that was playing when it was asked for. + self.wait_for_start = false; + let resolved = *self + .clips + .get(clip) + .expect("every chain clip is validated in Engine::new"); + let looping = phase == Phase::Loop && resolved.looping; + if phase == Phase::Loop { + self.active.loop_until_ms = self.loop_deadline(clip, now_ms); + } + let fps = f64::from(resolved.fps) * f64::from(self.config.fps_scale); + self.player = ClipPlayer::new( + clip, + resolved.frames, + fps, + looping, + self.active.chain.ping_pong, + ); + self.phase = phase; + self.transitions.push(Transition { + at_ms: now_ms, + from, + to: self.active.chain.condition, + clip: clip.to_string(), + phase, + }); + } + + fn maybe_start_activity(&mut self, now_ms: u64) { + // Only from the resting animation: a finish clip may still be playing while the + // inputs already look idle. + if self.activity.is_some() || self.active.chain.condition != Condition::MainIdle { + return; + } + if now_ms < self.next_activity_at_ms { + return; + } + let candidates: Vec<(usize, u32)> = IDLE_ACTIVITIES + .iter() + .enumerate() + .filter(|(index, activity)| { + let ready = self.activity_last_played_ms[*index] + .map_or(true, |last| last + activity.min_gap_ms <= now_ms); + !self.config.disabled_activities.contains(activity.name) && ready + }) + .map(|(index, activity)| (index, activity.weight)) + .collect(); + + let Some(index) = self.rng.pick_weighted(&candidates) else { + // Everything on cooldown: check again soon instead of spinning. + self.next_activity_at_ms = now_ms + 1_000; + return; + }; + + let activity = IDLE_ACTIVITIES[index]; + let loop_ms = match activity.kind { + ActivityKind::Full { .. } => self.rng.range( + self.config.activity_loop_ms[0], + self.config.activity_loop_ms[1], + ), + ActivityKind::OneShot(_) => 0, + }; + self.activity = Some(ActivityRun { + index, + loop_ms, + done: false, + }); + self.activity_last_played_ms[index] = Some(now_ms); + let chain = activity.chain(loop_ms).chain(); + self.start_chain(chain, now_ms); + } + + fn mark_activity_done(&mut self) { + if let Some(run) = self.activity.as_mut() { + run.done = true; + } + } + + fn clear_activity(&mut self, now_ms: u64) { + if self.activity.take().is_some() { + let delay = self + .rng + .range(self.config.idle_delay_ms[0], self.config.idle_delay_ms[1]); + self.next_activity_at_ms = now_ms + delay; + } + } + + fn enabled_activities(config: &Config) -> impl Iterator + '_ { + IDLE_ACTIVITIES + .iter() + .filter(move |activity| !config.disabled_activities.contains(activity.name)) + } +} + +#[cfg(test)] +mod tests { + use super::*; + use crate::core::config::DEFAULT_TYPING_STOP_DELAY_MS; + use crate::core::manifest::{Canvas, Clip, Point, Rect, MANIFEST_VERSION}; + + /// 3 frames at 50 fps: one clip lasts exactly 60 ms, so a single update can play it out. + const FPS: u32 = 50; + const FRAMES: u32 = 3; + const CLIP_MS: u64 = 60; + const STOP_DELAY: u64 = DEFAULT_TYPING_STOP_DELAY_MS; + + fn looping(name: &str) -> bool { + name == "idle_main" + || name == "typing" + || name == "music" + || name == "drag_loop" + || name.ends_with("_loop") + } + + fn manifest() -> Manifest { + let mut clips = BTreeMap::new(); + for name in chains::required_clips() { + clips.insert( + name.to_string(), + Clip { + frames: FRAMES, + fps: FPS, + looping: looping(name), + rect: Rect { + x: 0, + y: 0, + width: 4, + height: 4, + }, + }, + ); + } + Manifest { + version: MANIFEST_VERSION, + canvas: Canvas { + width: 8, + height: 8, + }, + anchor: Point { x: 4, y: 7 }, + clips, + } + } + + /// Idle activities never fire unless a test asks for them, and typing starts on one key so + /// tests about chains are not tests about the burst threshold. + fn quiet_config() -> Config { + Config { + idle_delay_ms: [1_000_000, 1_000_000], + typing_start_keys: 1, + ..Config::default() + } + } + + fn only(activity: &str) -> Config { + let mut config = Config { + idle_delay_ms: [500, 500], + typing_start_keys: 1, + ..Config::default() + }; + config.disabled_activities = IDLE_ACTIVITIES + .iter() + .filter(|entry| entry.name != activity) + .map(|entry| entry.name.to_string()) + .collect(); + config + } + + fn engine(config: Config) -> Engine { + Engine::new(&manifest(), config, 3, 0) + .expect("test manifest is complete") + .0 + } + + fn log(engine: &mut Engine) -> Vec<(Condition, Phase, String)> { + engine + .take_transitions() + .into_iter() + .map(|t| (t.to, t.phase, t.clip)) + .collect() + } + + fn startup_error(result: Result<(Engine, Vec)>) -> String { + match result { + Ok(_) => panic!("expected startup to fail"), + Err(err) => err.to_string(), + } + } + + #[test] + fn starts_in_main_idle() { + let mut engine = engine(quiet_config()); + assert_eq!( + log(&mut engine), + vec![(Condition::MainIdle, Phase::Loop, "idle_main".to_string())] + ); + assert_eq!(engine.visible(), ("idle_main", 0)); + } + + #[test] + fn typing_plays_start_loop_stop_then_returns_to_main_idle() { + let mut engine = engine(quiet_config()); + log(&mut engine); + + engine.on_event(Event::TypingActivity, 1_000); + assert_eq!( + log(&mut engine), + vec![(Condition::Typing, Phase::Start, "typing_start".into())] + ); + + engine.update(1_000 + CLIP_MS + 1); + assert_eq!( + log(&mut engine), + vec![(Condition::Typing, Phase::Loop, "typing".into())] + ); + + engine.update(1_000 + STOP_DELAY + 1); + assert_eq!( + log(&mut engine), + vec![(Condition::Typing, Phase::Finish, "typing_stop".into())] + ); + + engine.update(1_000 + STOP_DELAY + CLIP_MS + 2); + assert_eq!( + log(&mut engine), + vec![(Condition::MainIdle, Phase::Loop, "idle_main".into())] + ); + } + + #[test] + fn a_start_clip_plays_out_before_the_chain_hands_over() { + let mut config = quiet_config(); + // The key is over almost at once, so the start clip is still running when typing ends. + config.typing_stop_delay_ms = 10; + let mut engine = engine(config); + log(&mut engine); + + engine.on_event(Event::TypingActivity, 0); + assert_eq!( + log(&mut engine), + vec![(Condition::Typing, Phase::Start, "typing_start".into())] + ); + + engine.update(CLIP_MS / 3); + assert!( + log(&mut engine).is_empty(), + "the start clip was cut instead of finishing" + ); + assert_eq!(engine.visible().0, "typing_start"); + + engine.update(CLIP_MS + 1); + assert_eq!( + log(&mut engine), + vec![(Condition::Typing, Phase::Finish, "typing_stop".into())] + ); + + engine.update(2 * CLIP_MS + 2); + assert_eq!( + log(&mut engine), + vec![(Condition::MainIdle, Phase::Loop, "idle_main".into())] + ); + } + + #[test] + fn music_takes_the_headphones_on_loops_while_playing_and_takes_them_off() { + let mut engine = engine(quiet_config()); + log(&mut engine); + + engine.on_event(Event::MediaPlaying(true), 1_000); + assert_eq!( + log(&mut engine), + vec![(Condition::Music, Phase::Start, "music_start".into())] + ); + + engine.update(1_000 + CLIP_MS + 1); + assert_eq!( + log(&mut engine), + vec![(Condition::Music, Phase::Loop, "music".into())] + ); + + // Still playing: the listening clip loops instead of replaying the whole take. + engine.update(1_000 + 4 * CLIP_MS); + assert!(log(&mut engine).is_empty()); + assert_eq!(engine.visible().0, "music"); + + engine.on_event(Event::MediaPlaying(false), 2_000); + assert_eq!( + log(&mut engine), + vec![(Condition::Music, Phase::Finish, "music_stop".into())] + ); + + engine.update(2_000 + CLIP_MS + 1); + assert_eq!( + log(&mut engine), + vec![(Condition::MainIdle, Phase::Loop, "idle_main".into())] + ); + } + + #[test] + fn typing_restarts_while_the_stop_animation_plays() { + let mut engine = engine(quiet_config()); + engine.on_event(Event::TypingActivity, 0); + engine.update(CLIP_MS + 1); + log(&mut engine); + engine.update(STOP_DELAY + 1); + assert_eq!( + log(&mut engine), + vec![(Condition::Typing, Phase::Finish, "typing_stop".into())] + ); + + // A key during the stop clip is remembered; the finish still plays out in full. + engine.on_event(Event::TypingActivity, STOP_DELAY + 10); + assert!(log(&mut engine).is_empty()); + engine.update(STOP_DELAY + CLIP_MS + 20); + assert_eq!( + log(&mut engine), + vec![(Condition::Typing, Phase::Start, "typing_start".into())] + ); + } + + #[test] + fn a_burst_of_keys_starts_typing_a_lone_key_does_not() { + let mut config = quiet_config(); + config.typing_start_keys = 3; + config.typing_start_window_ms = 1_000; + let mut engine = engine(config); + log(&mut engine); + + engine.on_event(Event::TypingActivity, 1_000); + engine.on_event(Event::TypingActivity, 1_300); + assert!(log(&mut engine).is_empty(), "two keys are not typing yet"); + + engine.on_event(Event::TypingActivity, 1_600); + assert_eq!( + log(&mut engine), + vec![(Condition::Typing, Phase::Start, "typing_start".into())] + ); + } + + #[test] + fn presses_spread_wider_than_the_window_never_start_typing() { + let mut config = quiet_config(); + config.typing_start_keys = 3; + config.typing_start_window_ms = 500; + let mut engine = engine(config); + log(&mut engine); + + engine.on_event(Event::TypingActivity, 0); + engine.on_event(Event::TypingActivity, 600); + engine.on_event(Event::TypingActivity, 1_200); + assert!(log(&mut engine).is_empty(), "stray keys must not add up"); + } + + #[test] + fn single_keys_keep_running_typing_alive_without_restarting_the_burst() { + let mut config = quiet_config(); + config.typing_start_keys = 3; + let mut engine = engine(config); + for at in [0, 100, 200] { + engine.on_event(Event::TypingActivity, at); + } + log(&mut engine); + + engine.on_event(Event::TypingActivity, STOP_DELAY / 2); + let transitions = log(&mut engine); + engine.update(STOP_DELAY + STOP_DELAY / 2 - 1); + let transitions: Vec<_> = transitions.into_iter().chain(log(&mut engine)).collect(); + assert!( + !transitions + .iter() + .any(|(condition, phase, _)| *condition == Condition::Typing + && *phase == Phase::Start), + "typing must not restart: {transitions:?}" + ); + } + + #[test] + fn typing_that_ended_needs_a_new_burst() { + let mut config = quiet_config(); + config.typing_start_keys = 3; + let mut engine = engine(config); + for at in [0, 100, 200] { + engine.on_event(Event::TypingActivity, at); + } + // Long enough for the stop clip to play out completely. + engine.update(10_000); + log(&mut engine); + + engine.on_event(Event::TypingActivity, 20_000); + let transitions = log(&mut engine); + assert!( + !transitions + .iter() + .any(|(condition, phase, _)| *condition == Condition::Typing + && *phase == Phase::Start), + "one key after a pause is not typing: {transitions:?}" + ); + + engine.on_event(Event::TypingActivity, 20_100); + engine.on_event(Event::TypingActivity, 20_200); + assert_eq!( + log(&mut engine), + vec![(Condition::Typing, Phase::Start, "typing_start".into())] + ); + } + + #[test] + fn drag_cuts_over_typing_without_playing_its_finish() { + let mut engine = engine(quiet_config()); + engine.on_event(Event::TypingActivity, 0); + engine.update(CLIP_MS + 1); + log(&mut engine); + + engine.on_event(Event::DragStart, 200); + assert_eq!( + log(&mut engine), + vec![(Condition::Drag, Phase::Start, "drag_start".into())] + ); + + engine.update(200 + CLIP_MS + 1); + assert_eq!( + log(&mut engine), + vec![(Condition::Drag, Phase::Loop, "drag_loop".into())] + ); + + engine.on_event(Event::DragStop, 2_000); + assert_eq!( + log(&mut engine), + vec![(Condition::Drag, Phase::Finish, "drag_end".into())] + ); + + engine.update(2_000 + CLIP_MS + 1); + assert_eq!( + log(&mut engine), + vec![(Condition::MainIdle, Phase::Loop, "idle_main".into())] + ); + } + + #[test] + fn screenshot_outranks_typing_but_lets_it_finish_first() { + let mut engine = engine(quiet_config()); + engine.on_event(Event::TypingActivity, 0); + engine.update(CLIP_MS + 1); + log(&mut engine); + + engine.on_event(Event::ScreenshotTaken, 200); + assert_eq!( + log(&mut engine), + vec![(Condition::Typing, Phase::Finish, "typing_stop".into())] + ); + + engine.update(200 + CLIP_MS + 1); + assert_eq!( + log(&mut engine), + vec![(Condition::Screenshot, Phase::Start, "screenshot".into())] + ); + + // The key from t=0 is still inside the typing window, so typing resumes after the reaction. + engine.update(200 + 2 * CLIP_MS + 2); + assert_eq!( + log(&mut engine), + vec![(Condition::Typing, Phase::Start, "typing_start".into())] + ); + } + + #[test] + fn chains_without_a_finish_clip_are_replaced_immediately() { + let mut engine = engine(only("blink")); + log(&mut engine); + engine.update(600); + assert_eq!( + log(&mut engine), + vec![(Condition::IdleActivity, Phase::Start, "idle_blink".into())] + ); + + // A one-shot gag has nothing to finish with, so typing takes over at once. + engine.on_event(Event::TypingActivity, 620); + assert_eq!( + log(&mut engine), + vec![(Condition::Typing, Phase::Start, "typing_start".into())] + ); + } + + #[test] + fn a_running_finish_clip_is_not_restarted_by_new_events() { + let mut engine = engine(quiet_config()); + engine.on_event(Event::TypingActivity, 0); + engine.update(CLIP_MS + 1); + log(&mut engine); + engine.update(STOP_DELAY + 1); + assert_eq!( + log(&mut engine), + vec![(Condition::Typing, Phase::Finish, "typing_stop".into())] + ); + + engine.on_event(Event::MediaPlaying(true), STOP_DELAY + 20); + assert!(log(&mut engine).is_empty(), "the finish clip keeps playing"); + + engine.update(STOP_DELAY + CLIP_MS + 2); + assert_eq!( + log(&mut engine), + vec![(Condition::Music, Phase::Start, "music_start".into())] + ); + } + + #[test] + fn an_idle_activity_plays_then_main_idle_wins_again() { + let mut engine = engine(only("blink")); + log(&mut engine); + + engine.update(600); + assert_eq!( + log(&mut engine), + vec![(Condition::IdleActivity, Phase::Start, "idle_blink".into())] + ); + + engine.update(600 + CLIP_MS + 1); + assert_eq!( + log(&mut engine), + vec![(Condition::MainIdle, Phase::Loop, "idle_main".into())] + ); + + // The next activity waits for a fresh idle delay. + engine.update(600 + CLIP_MS + 501); + assert_eq!( + log(&mut engine), + vec![(Condition::IdleActivity, Phase::Start, "idle_blink".into())] + ); + } + + #[test] + fn a_full_activity_loops_for_its_configured_time_then_finishes() { + let mut config = only("sleep"); + config.activity_loop_ms = [400, 400]; + let mut engine = engine(config); + log(&mut engine); + + engine.update(600); + assert_eq!( + log(&mut engine), + vec![( + Condition::IdleActivity, + Phase::Start, + "idle_activity_sleep_start".into() + )] + ); + + engine.update(600 + CLIP_MS + 1); + assert_eq!( + log(&mut engine), + vec![( + Condition::IdleActivity, + Phase::Loop, + "idle_activity_sleep_loop".into() + )] + ); + + // The configured loop time runs from the loop clip, not from the start clip before it. + engine.update(1_001); + assert!(log(&mut engine).is_empty(), "still looping"); + engine.update(1_061); + assert_eq!( + log(&mut engine), + vec![( + Condition::IdleActivity, + Phase::Finish, + "idle_activity_sleep_finish".into() + )] + ); + + engine.update(1_061 + CLIP_MS + 1); + assert_eq!( + log(&mut engine), + vec![(Condition::MainIdle, Phase::Loop, "idle_main".into())] + ); + } + + #[test] + fn min_loops_stretches_a_timed_loop_to_full_cycles() { + let mut config = only("sleep"); + config.activity_loop_ms = [CLIP_MS, CLIP_MS]; + config + .min_loops + .insert("idle_activity_sleep_loop".to_string(), 3); + let mut engine = engine(config); + log(&mut engine); + + let activity_at = 600; + let loop_at = activity_at + CLIP_MS + 1; + engine.update(activity_at); + assert_eq!( + log(&mut engine), + vec![( + Condition::IdleActivity, + Phase::Start, + "idle_activity_sleep_start".into() + )] + ); + engine.update(loop_at); + assert_eq!( + log(&mut engine), + vec![( + Condition::IdleActivity, + Phase::Loop, + "idle_activity_sleep_loop".into() + )] + ); + + // Three cycles of a 3 frame, 50 fps clip: 180 ms instead of the configured 60 ms. + engine.update(loop_at + 3 * CLIP_MS - 1); + assert!(log(&mut engine).is_empty(), "still looping"); + engine.update(loop_at + 3 * CLIP_MS); + assert_eq!( + log(&mut engine), + vec![( + Condition::IdleActivity, + Phase::Finish, + "idle_activity_sleep_finish".into() + )] + ); + } + + #[test] + fn an_interrupted_activity_plays_its_finish_and_is_not_resumed() { + let mut engine = engine(only("sleep")); + engine.update(600); + engine.update(600 + CLIP_MS + 1); + log(&mut engine); + + engine.on_event(Event::TypingActivity, 800); + assert_eq!( + log(&mut engine), + vec![( + Condition::IdleActivity, + Phase::Finish, + "idle_activity_sleep_finish".into() + )] + ); + + engine.update(800 + CLIP_MS + 1); + assert_eq!( + log(&mut engine), + vec![(Condition::Typing, Phase::Start, "typing_start".into())] + ); + } + + #[test] + fn a_screenshot_request_older_than_its_ttl_is_dropped() { + let mut config = quiet_config(); + config.screenshot_request_ttl_ms = 300; + let mut engine = engine(config); + + engine.on_event(Event::DragStart, 0); + engine.update(CLIP_MS + 1); + log(&mut engine); + engine.on_event(Event::ScreenshotTaken, 200); + assert!( + log(&mut engine).is_empty(), + "dragging outranks the reaction" + ); + + engine.on_event(Event::DragStop, 600); + engine.update(600 + CLIP_MS + 1); + let transitions = log(&mut engine); + assert!( + !transitions.iter().any(|(_, _, clip)| clip == "screenshot"), + "stale reaction played: {transitions:?}" + ); + assert_eq!(transitions.last().unwrap().0, Condition::MainIdle); + } + + #[test] + fn a_reaction_that_started_plays_to_the_end_despite_its_ttl() { + let mut config = quiet_config(); + config.screenshot_request_ttl_ms = 20; + let mut engine = engine(config); + log(&mut engine); + + engine.on_event(Event::ScreenshotTaken, 0); + assert_eq!( + log(&mut engine), + vec![(Condition::Screenshot, Phase::Start, "screenshot".into())] + ); + + // The ttl is shorter than the clip: the reaction must not be cut off mid-play. + engine.update(30); + assert!(log(&mut engine).is_empty(), "reaction stopped early"); + + engine.update(CLIP_MS + 1); + assert_eq!( + log(&mut engine), + vec![(Condition::MainIdle, Phase::Loop, "idle_main".into())] + ); + } + + #[test] + fn idle_activities_wait_for_a_running_finish_clip() { + let mut config = only("blink"); + config.idle_delay_ms = [50, 50]; + let mut engine = engine(config); + engine.on_event(Event::TypingActivity, 0); + engine.update(CLIP_MS + 1); + log(&mut engine); + + // The activity timer expired long ago, but typing_stop is still playing. + engine.update(STOP_DELAY + 1); + assert_eq!( + log(&mut engine), + vec![(Condition::Typing, Phase::Finish, "typing_stop".into())] + ); + + engine.update(STOP_DELAY + CLIP_MS + 1); + assert_eq!( + log(&mut engine), + vec![ + (Condition::MainIdle, Phase::Loop, "idle_main".into()), + (Condition::IdleActivity, Phase::Start, "idle_blink".into()), + ] + ); + } + + #[test] + fn clip_fps_overrides_and_fps_scale_set_the_frame_rate() { + let mut config = quiet_config(); + config.clip_fps.insert("typing".to_string(), 60); + config.fps_scale = 2.0; + let mut engine = engine(config); + + engine.on_event(Event::TypingActivity, 0); + // typing_start keeps the manifest rate, doubled by the scale multiplier. + let start_fps = f64::from(FPS) * 2.0; + assert!( + (engine.frame_duration_ms() - 1000.0 / start_fps).abs() < 0.001, + "{}", + engine.frame_duration_ms() + ); + + engine.update(CLIP_MS + 1); + // The loop clip is overridden to 60 fps, then scaled. + assert!( + (engine.frame_duration_ms() - 1000.0 / 120.0).abs() < 0.001, + "{}", + engine.frame_duration_ms() + ); + } + + #[test] + fn priority_order_matches_the_enum_order() { + assert!( + Engine::PRIORITY.windows(2).all(|pair| pair[0] > pair[1]), + "PRIORITY must list conditions from highest to lowest: {:?}", + Engine::PRIORITY + ); + } + + #[test] + fn a_missing_clip_is_reported_by_name() { + let mut manifest = manifest(); + manifest.clips.remove("typing_stop"); + let err = startup_error(Engine::new(&manifest, quiet_config(), 1, 0)); + assert!(err.contains("typing_stop"), "{err}"); + } + + #[test] + fn a_disabled_activity_does_not_need_its_clips_to_exist() { + let mut manifest = manifest(); + manifest.clips.remove("idle_dig"); + assert!( + Engine::new(&manifest, quiet_config(), 1, 0).is_ok(), + "dig is disabled by default" + ); + + let enable_dig = Config { + disabled_activities: BTreeSet::new(), + ..quiet_config() + }; + let err = startup_error(Engine::new(&manifest, enable_dig, 1, 0)); + assert!(err.contains("idle_dig"), "{err}"); + } +} diff --git a/src/core/frames.rs b/src/core/frames.rs new file mode 100644 index 0000000..8729bf1 --- /dev/null +++ b/src/core/frames.rs @@ -0,0 +1,258 @@ +use std::collections::{BTreeSet, HashMap}; +use std::path::{Path, PathBuf}; +use std::sync::atomic::{AtomicU64, Ordering}; +use std::sync::{Arc, Mutex}; + +use crate::core::manifest::{frame_path, Manifest}; +use crate::{Error, Result}; + +pub type Frame = image::RgbaImage; + +/// Decoded frames, bounded by an LRU cap so a 1800 frame asset set never sits in RAM at once. +pub struct FrameStore { + assets_root: PathBuf, + manifest: Manifest, + cache: Mutex, + broken: Mutex>, + clock: AtomicU64, + capacity: usize, +} + +struct Cache { + entries: HashMap<(String, u32), Entry>, +} + +struct Entry { + frame: Arc, + used_at: u64, +} + +impl FrameStore { + pub fn new(assets_root: impl Into, manifest: Manifest, capacity: usize) -> Self { + FrameStore { + assets_root: assets_root.into(), + manifest, + cache: Mutex::new(Cache { + entries: HashMap::new(), + }), + broken: Mutex::new(BTreeSet::new()), + clock: AtomicU64::new(0), + capacity: capacity.max(1), + } + } + + /// Returns a decoded frame, decoding and caching it on first use. + pub fn get(&self, clip: &str, index: u32) -> Result> { + let meta = self.manifest.clip(clip)?; + if index >= meta.frames { + return Err(Error::MissingFrame(frame_path( + &self.assets_root, + clip, + index, + ))); + } + let key = (clip.to_string(), index); + let stamp = self.clock.fetch_add(1, Ordering::SeqCst); + { + let mut cache = self.cache.lock().expect("frame cache poisoned"); + if let Some(entry) = cache.entries.get_mut(&key) { + entry.used_at = stamp; + return Ok(Arc::clone(&entry.frame)); + } + } + + if self + .broken + .lock() + .expect("broken set poisoned") + .contains(clip) + { + return Err(Error::MissingFrame(frame_path( + &self.assets_root, + clip, + index, + ))); + } + + let path = frame_path(&self.assets_root, clip, index); + let frame = match decode(&path) { + Ok(frame) => frame, + Err(err) => { + // One failed clip should not be retried every frame; the caller keeps the last good frame. + self.broken + .lock() + .expect("broken set poisoned") + .insert(clip.to_string()); + return Err(err); + } + }; + let frame = Arc::new(frame); + let mut cache = self.cache.lock().expect("frame cache poisoned"); + cache.entries.insert( + key, + Entry { + frame: Arc::clone(&frame), + used_at: stamp, + }, + ); + self.evict(&mut cache); + Ok(frame) + } + + pub fn is_broken(&self, clip: &str) -> bool { + self.broken + .lock() + .expect("broken set poisoned") + .contains(clip) + } + + pub fn cached_frames(&self) -> usize { + self.cache + .lock() + .expect("frame cache poisoned") + .entries + .len() + } + + fn evict(&self, cache: &mut Cache) { + while cache.entries.len() > self.capacity { + let Some(oldest) = cache + .entries + .iter() + .min_by_key(|(_, entry)| entry.used_at) + .map(|(key, _)| key.clone()) + else { + break; + }; + cache.entries.remove(&oldest); + } + } +} + +fn decode(path: &Path) -> Result { + if !path.exists() { + return Err(Error::MissingFrame(path.to_path_buf())); + } + let image = image::open(path)?; + Ok(image.into_rgba8()) +} + +#[cfg(test)] +mod tests { + use super::*; + use crate::core::manifest::{Canvas, Clip, Point, Rect, MANIFEST_VERSION}; + use std::collections::BTreeMap; + + fn manifest(clip: &str, frames: u32) -> Manifest { + let mut clips = BTreeMap::new(); + clips.insert( + clip.to_string(), + Clip { + frames, + fps: 30, + looping: true, + rect: Rect { + x: 0, + y: 0, + width: 2, + height: 2, + }, + }, + ); + Manifest { + version: MANIFEST_VERSION, + canvas: Canvas { + width: 4, + height: 4, + }, + anchor: Point { x: 1, y: 3 }, + clips, + } + } + + fn temp_dir(name: &str) -> PathBuf { + let dir = + std::env::temp_dir().join(format!("hamster-pet-test-{name}-{}", std::process::id())); + let _ = std::fs::remove_dir_all(&dir); + std::fs::create_dir_all(&dir).unwrap(); + dir + } + + /// Same encoder the converter uses, so these tests cover the real asset pipeline. + fn write_frame(dir: &Path, clip: &str, index: u32) { + let path = crate::core::manifest::frame_path(dir, clip, index); + std::fs::create_dir_all(path.parent().unwrap()).unwrap(); + let image = image::RgbaImage::from_pixel(2, 2, image::Rgba([9, 8, 7, 128])); + let file = std::io::BufWriter::new(std::fs::File::create(&path).unwrap()); + let encoder = image::codecs::webp::WebPEncoder::new_lossless(file); + image::ImageEncoder::write_image( + encoder, + image.as_raw(), + 2, + 2, + image::ExtendedColorType::Rgba8, + ) + .unwrap(); + } + + #[test] + fn decodes_lossless_webp_with_alpha_and_caches_it() { + let dir = temp_dir("cache"); + write_frame(&dir, "idle_main", 0); + let store = FrameStore::new(&dir, manifest("idle_main", 1), 4); + let first = store.get("idle_main", 0).unwrap(); + assert_eq!(first.get_pixel(0, 0).0, [9, 8, 7, 128]); + let second = store.get("idle_main", 0).unwrap(); + assert!(Arc::ptr_eq(&first, &second)); + assert_eq!(store.cached_frames(), 1); + let _ = std::fs::remove_dir_all(&dir); + } + + #[test] + fn rejects_out_of_range_index_without_touching_disk() { + let dir = temp_dir("range"); + let store = FrameStore::new(&dir, manifest("idle_main", 3), 4); + let err = store.get("idle_main", 3).unwrap_err().to_string(); + assert!(err.contains("frame_003.webp"), "{err}"); + let _ = std::fs::remove_dir_all(&dir); + } + + #[test] + fn unknown_clip_is_an_error() { + let dir = temp_dir("unknown"); + let store = FrameStore::new(&dir, manifest("idle_main", 1), 4); + assert!(store.get("nope", 0).is_err()); + let _ = std::fs::remove_dir_all(&dir); + } + + #[test] + fn a_failing_clip_is_marked_broken_and_not_retried() { + let dir = temp_dir("broken"); + let store = FrameStore::new(&dir, manifest("typing", 2), 4); + assert!(store.get("typing", 0).is_err()); + assert!(store.is_broken("typing")); + // Second call short circuits on the broken flag. + assert!(store.get("typing", 1).is_err()); + assert_eq!(store.cached_frames(), 0); + let _ = std::fs::remove_dir_all(&dir); + } + + #[test] + fn evicts_least_recently_used() { + let dir = temp_dir("evict"); + for index in 0..4 { + write_frame(&dir, "typing", index); + } + let store = FrameStore::new(&dir, manifest("typing", 4), 2); + let first = store.get("typing", 0).unwrap(); + store.get("typing", 1).unwrap(); + store.get("typing", 2).unwrap(); + assert_eq!(store.cached_frames(), 2); + let again = store.get("typing", 0).unwrap(); + assert!( + !Arc::ptr_eq(&first, &again), + "frame 0 was evicted and must be decoded again" + ); + let _ = std::fs::remove_dir_all(&dir); + } +} diff --git a/src/core/manifest.rs b/src/core/manifest.rs new file mode 100644 index 0000000..04e9af3 --- /dev/null +++ b/src/core/manifest.rs @@ -0,0 +1,230 @@ +use serde::{Deserialize, Serialize}; +use std::collections::BTreeMap; +use std::path::{Path, PathBuf}; + +use crate::{Error, Result}; + +/// Animation rate used when a clip does not override it. Playback is wall-clock based, +/// so this is the visible frame rate on every monitor regardless of refresh rate. +pub const DEFAULT_FPS: u32 = 30; +pub const MAX_FPS: u32 = 240; +pub const MANIFEST_VERSION: u32 = 1; + +#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)] +#[serde(deny_unknown_fields)] +pub struct Manifest { + pub version: u32, + pub canvas: Canvas, + /// Where the pet is placed on screen, in canvas pixels. + pub anchor: Point, + pub clips: BTreeMap, +} + +#[derive(Debug, Clone, Copy, Serialize, Deserialize, PartialEq, Eq)] +#[serde(deny_unknown_fields)] +pub struct Canvas { + pub width: u32, + pub height: u32, +} + +#[derive(Debug, Clone, Copy, Serialize, Deserialize, PartialEq, Eq)] +#[serde(deny_unknown_fields)] +pub struct Point { + pub x: i32, + pub y: i32, +} + +#[derive(Debug, Clone, Copy, Serialize, Deserialize, PartialEq, Eq)] +#[serde(deny_unknown_fields)] +pub struct Rect { + pub x: i32, + pub y: i32, + pub width: u32, + pub height: u32, +} + +#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)] +#[serde(deny_unknown_fields)] +pub struct Clip { + pub frames: u32, + pub fps: u32, + #[serde(rename = "loop")] + pub looping: bool, + /// Position of this clip's cropped frames inside the canvas. + pub rect: Rect, +} + +impl Manifest { + pub fn from_json_str(text: &str) -> Result { + let manifest: Manifest = serde_json::from_str(text)?; + manifest.validate()?; + Ok(manifest) + } + + pub fn load(path: &Path) -> Result { + Self::from_json_str(&std::fs::read_to_string(path)?) + } + + pub fn validate(&self) -> Result<()> { + let fail = |msg: String| -> Result<()> { Err(Error::Manifest(msg)) }; + if self.version != MANIFEST_VERSION { + return fail(format!( + "version {} is not supported (expected {MANIFEST_VERSION})", + self.version + )); + } + if self.canvas.width == 0 || self.canvas.height == 0 { + return fail("canvas has zero size".into()); + } + if self.anchor.x < 0 + || self.anchor.y < 0 + || self.anchor.x >= self.canvas.width as i32 + || self.anchor.y >= self.canvas.height as i32 + { + return fail(format!( + "anchor ({}, {}) is outside the {}x{} canvas", + self.anchor.x, self.anchor.y, self.canvas.width, self.canvas.height + )); + } + if self.clips.is_empty() { + return fail("no clips".into()); + } + for (name, clip) in &self.clips { + if clip.frames == 0 { + return fail(format!("clip '{name}' has no frames")); + } + if clip.fps == 0 || clip.fps > MAX_FPS { + return fail(format!( + "clip '{name}' has fps {} (1..={MAX_FPS})", + clip.fps + )); + } + if clip.rect.width == 0 || clip.rect.height == 0 { + return fail(format!("clip '{name}' has an empty rect")); + } + let fits = clip.rect.x >= 0 + && clip.rect.y >= 0 + && clip.rect.x + clip.rect.width as i32 <= self.canvas.width as i32 + && clip.rect.y + clip.rect.height as i32 <= self.canvas.height as i32; + if !fits { + return fail(format!( + "clip '{name}' rect {}x{}+{}+{} does not fit the {}x{} canvas", + clip.rect.width, + clip.rect.height, + clip.rect.x, + clip.rect.y, + self.canvas.width, + self.canvas.height + )); + } + } + Ok(()) + } + + pub fn clip(&self, name: &str) -> Result<&Clip> { + self.clips + .get(name) + .ok_or_else(|| Error::MissingClip(name.to_string())) + } +} + +pub fn frame_file_name(index: u32) -> String { + format!("frame_{index:03}.webp") +} + +pub fn frame_path(assets_root: &Path, clip: &str, index: u32) -> PathBuf { + assets_root.join(clip).join(frame_file_name(index)) +} + +/// Path of a clip's exported frames, used by the converter and the asset test. +pub fn clip_dir(assets_root: &Path, clip: &str) -> PathBuf { + assets_root.join(clip) +} + +#[cfg(test)] +mod tests { + use super::*; + + fn valid() -> Manifest { + let mut clips = BTreeMap::new(); + clips.insert( + "idle_main".to_string(), + Clip { + frames: 1, + fps: DEFAULT_FPS, + looping: true, + rect: Rect { + x: 10, + y: 20, + width: 40, + height: 40, + }, + }, + ); + Manifest { + version: MANIFEST_VERSION, + canvas: Canvas { + width: 64, + height: 64, + }, + anchor: Point { x: 32, y: 63 }, + clips, + } + } + + #[test] + fn accepts_a_valid_manifest() { + assert!(valid().validate().is_ok()); + } + + #[test] + fn rejects_anchor_outside_canvas() { + let mut m = valid(); + m.anchor = Point { x: 64, y: 10 }; + assert!(m.validate().is_err()); + } + + #[test] + fn rejects_clip_rect_outside_canvas() { + let mut m = valid(); + m.clips.get_mut("idle_main").unwrap().rect.x = 40; + let err = m.validate().unwrap_err().to_string(); + assert!(err.contains("idle_main"), "{err}"); + } + + #[test] + fn rejects_bad_fps_and_empty_clips() { + let mut m = valid(); + m.clips.get_mut("idle_main").unwrap().fps = MAX_FPS + 1; + assert!(m.validate().is_err()); + + let mut m = valid(); + m.clips.clear(); + assert!(m.validate().is_err()); + } + + #[test] + fn json_round_trip_keeps_loop_flag_name() { + let text = serde_json::to_string(&valid()).unwrap(); + assert!(text.contains("\"loop\":true"), "{text}"); + assert_eq!(Manifest::from_json_str(&text).unwrap(), valid()); + } + + #[test] + fn unknown_extra_fields_are_rejected_so_typos_do_not_pass_silently() { + let mut value = serde_json::to_value(valid()).unwrap(); + value["clips"]["idle_main"]["framse"] = serde_json::json!(3); + let err = Manifest::from_json_str(&value.to_string()).unwrap_err(); + assert!(matches!(err, Error::Json(_))); + } + + #[test] + fn frame_names_are_zero_padded() { + assert_eq!(frame_file_name(0), "frame_000.webp"); + assert_eq!(frame_file_name(42), "frame_042.webp"); + assert_eq!( + frame_path(Path::new("assets"), "typing", 7), + Path::new("assets/typing/frame_007.webp") + ); + } +} diff --git a/src/core/mod.rs b/src/core/mod.rs new file mode 100644 index 0000000..3b78fd3 --- /dev/null +++ b/src/core/mod.rs @@ -0,0 +1,23 @@ +pub mod chains; +pub mod clip_player; +pub mod clock; +pub mod config; +pub mod engine; +pub mod frames; +pub mod manifest; +pub mod replay; +pub mod rng; +pub mod screen; +pub mod texts; + +pub use chains::{Activity, Chain, ChainPolicy, Phase}; +pub use clip_player::ClipPlayer; +pub use clock::{Clock, FakeClock, SystemClock}; +pub use config::{Config, ScreenshotMode, SensorsConfig}; +pub use engine::{Condition, Engine, Event, Transition}; +pub use frames::{Frame, FrameStore}; +pub use manifest::{Canvas, Clip, Manifest, Point, Rect, DEFAULT_FPS}; +pub use replay::{parse_script, print_transitions, run_script, ScriptStep}; +pub use rng::Rng; +pub use screen::{clamp_window_position, Monitor}; +pub use texts::{Message, Texts}; diff --git a/src/core/replay.rs b/src/core/replay.rs new file mode 100644 index 0000000..f6e54a9 --- /dev/null +++ b/src/core/replay.rs @@ -0,0 +1,161 @@ +use crate::core::chains::Phase; +use crate::core::engine::{Engine, Event, Transition}; +use crate::{Error, Result}; + +/// One line of a replay script: an event at an absolute time. +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub struct ScriptStep { + pub at_ms: u64, + pub event: Event, +} + +/// Parses ` ` lines. Blank lines and `#` comments are ignored. +/// +/// Commands: `key`, `drag_start`, `drag_stop`, `screenshot`, `music_on`, `music_off`. +pub fn parse_script(text: &str) -> Result> { + let mut steps: Vec = Vec::new(); + for (index, raw) in text.lines().enumerate() { + let line_no = index + 1; + let line = raw.split('#').next().unwrap_or("").trim(); + if line.is_empty() { + continue; + } + let mut parts = line.split_whitespace(); + let (Some(time), Some(command)) = (parts.next(), parts.next()) else { + return Err(Error::Script(format!( + "line {line_no}: expected ' '" + ))); + }; + if parts.next().is_some() { + return Err(Error::Script(format!( + "line {line_no}: unexpected extra arguments" + ))); + } + let at_ms: u64 = time.parse().map_err(|_| { + Error::Script(format!( + "line {line_no}: '{time}' is not a millisecond value" + )) + })?; + let event = match command { + "key" => Event::TypingActivity, + "drag_start" => Event::DragStart, + "drag_stop" => Event::DragStop, + "screenshot" => Event::ScreenshotTaken, + "music_on" => Event::MediaPlaying(true), + "music_off" => Event::MediaPlaying(false), + other => { + return Err(Error::Script(format!( + "line {line_no}: unknown command '{other}'" + ))) + } + }; + if let Some(previous) = steps.last() { + if at_ms < previous.at_ms { + return Err(Error::Script(format!( + "line {line_no}: time {at_ms} goes back in time (previous {})", + previous.at_ms + ))); + } + } + steps.push(ScriptStep { at_ms, event }); + } + Ok(steps) +} + +/// Prints one line per transition, shared by replay, headless and traced window runs. +pub fn print_transitions(transitions: &[Transition]) { + for transition in transitions { + let phase = match transition.phase { + Phase::Start => "start", + Phase::Loop => "loop", + Phase::Finish => "finish", + }; + println!( + "{:>8}ms {:<11} -> {:<12} {:<6} {}", + transition.at_ms, + transition.from.as_str(), + transition.to.as_str(), + phase, + transition.clip + ); + } +} + +/// Tick length used while replaying, close to a live 60 Hz render loop. Without it a script +/// would jump between events and the animation clock would lag behind the scripted time. +const TICK_MS: u64 = 20; + +/// Drives an engine through the script. The tail keeps running after the last event so +/// scheduled idle activities show up. +pub fn run_script(engine: &mut Engine, steps: &[ScriptStep], tail_ms: u64) -> Vec { + let mut transitions = Vec::new(); + for step in steps { + advance_to(engine, step.at_ms, &mut transitions); + engine.on_event(step.event, step.at_ms); + transitions.append(&mut engine.take_transitions()); + } + let end = steps.last().map(|step| step.at_ms).unwrap_or(0) + tail_ms; + advance_to(engine, end, &mut transitions); + transitions +} + +fn advance_to(engine: &mut Engine, target_ms: u64, transitions: &mut Vec) { + while engine.now_ms() < target_ms { + let next = (engine.now_ms() + TICK_MS).min(target_ms); + engine.update(next); + transitions.append(&mut engine.take_transitions()); + } +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn parses_events_in_order_and_ignores_comments() { + let steps = + parse_script("# demo\n0 key\n\n500 key # two presses\n1200 screenshot\n").unwrap(); + assert_eq!( + steps, + vec![ + ScriptStep { + at_ms: 0, + event: Event::TypingActivity + }, + ScriptStep { + at_ms: 500, + event: Event::TypingActivity + }, + ScriptStep { + at_ms: 1200, + event: Event::ScreenshotTaken + }, + ] + ); + } + + #[test] + fn maps_every_command() { + let steps = parse_script("0 drag_start\n1 drag_stop\n2 music_on\n3 music_off\n").unwrap(); + assert_eq!(steps[1].event, Event::DragStop); + assert_eq!(steps[2].event, Event::MediaPlaying(true)); + assert_eq!(steps[3].event, Event::MediaPlaying(false)); + } + + #[test] + fn reports_line_numbers_for_bad_input() { + let err = parse_script("0 key\nnope key").unwrap_err().to_string(); + assert!(err.contains("line 2"), "{err}"); + + let err = parse_script("0 teleport").unwrap_err().to_string(); + assert!(err.contains("unknown command"), "{err}"); + + let err = parse_script("100 key\n50 key").unwrap_err().to_string(); + assert!(err.contains("back in time"), "{err}"); + + let err = parse_script("0 key extra").unwrap_err().to_string(); + assert!(err.contains("extra arguments"), "{err}"); + + assert!(parse_script("").unwrap().is_empty()); + } +} diff --git a/src/core/rng.rs b/src/core/rng.rs new file mode 100644 index 0000000..8db0fd2 --- /dev/null +++ b/src/core/rng.rs @@ -0,0 +1,86 @@ +/// Deterministic xorshift64* generator: runs are reproducible from `Config::seed`. +pub struct Rng { + state: u64, +} + +impl Rng { + pub fn new(seed: u64) -> Self { + Rng { state: seed | 1 } + } + + pub fn next_u64(&mut self) -> u64 { + let mut x = self.state; + x ^= x >> 12; + x ^= x << 25; + x ^= x >> 27; + self.state = x; + x.wrapping_mul(0x2545_F491_4F6C_DD1D) + } + + /// Uniform in `[0, n)`. Returns 0 for `n == 0` so callers cannot panic. + pub fn below(&mut self, n: u32) -> u32 { + if n == 0 { + return 0; + } + (self.next_u64() % u64::from(n)) as u32 + } + + /// Inclusive range; a reversed range is swapped instead of panicking. + pub fn range(&mut self, lo: u64, hi: u64) -> u64 { + let (lo, hi) = if lo <= hi { (lo, hi) } else { (hi, lo) }; + lo + self.next_u64() % (hi - lo + 1) + } + + /// Picks an item by relative weight. `None` when every weight is zero. + pub fn pick_weighted(&mut self, items: &[(T, u32)]) -> Option { + let total: u64 = items.iter().map(|(_, w)| u64::from(*w)).sum(); + if total == 0 { + return None; + } + let mut roll = self.next_u64() % total; + for (item, weight) in items { + let weight = u64::from(*weight); + if roll < weight { + return Some(*item); + } + roll -= weight; + } + items.last().map(|(item, _)| *item) + } +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn same_seed_same_sequence() { + let mut a = Rng::new(7); + let mut b = Rng::new(7); + for _ in 0..32 { + assert_eq!(a.next_u64(), b.next_u64()); + } + } + + #[test] + fn stays_in_range() { + let mut rng = Rng::new(1); + for _ in 0..1000 { + assert!(rng.below(5) < 5); + assert!((10..=12).contains(&rng.range(10, 12))); + assert!((3..=7).contains(&rng.range(7, 3))); + } + assert_eq!(rng.below(0), 0); + } + + #[test] + fn weighted_pick_matches_weights() { + let mut rng = Rng::new(99); + let items = [(false, 10u32), (true, 990u32)]; + let hits = (0..10_000) + .filter(|_| rng.pick_weighted(&items) == Some(true)) + .count(); + assert!((9600..=9999).contains(&hits), "hits={hits}"); + assert_eq!(rng.pick_weighted::(&[(1, 0)]), None); + } +} diff --git a/src/core/screen.rs b/src/core/screen.rs new file mode 100644 index 0000000..4214790 --- /dev/null +++ b/src/core/screen.rs @@ -0,0 +1,126 @@ +use serde::{Deserialize, Serialize}; + +/// A monitor's usable area, in the same coordinate space as the window positions it clamps. +#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)] +pub struct Monitor { + pub x: i32, + pub y: i32, + pub width: u32, + pub height: u32, +} + +impl Monitor { + fn contains(&self, x: f64, y: f64) -> bool { + x >= f64::from(self.x) + && x < f64::from(self.x + self.width as i32) + && y >= f64::from(self.y) + && y < f64::from(self.y + self.height as i32) + } + + fn squared_distance(&self, x: f64, y: f64) -> f64 { + let cx = f64::from(self.x) + f64::from(self.width) / 2.0; + let cy = f64::from(self.y) + f64::from(self.height) / 2.0; + (x - cx).powi(2) + (y - cy).powi(2) + } +} + +/// Keeps a window inside one monitor: the one holding its centre, or the nearest one. +/// +/// A saved position can point at a screen that no longer exists, and a drag can go past the +/// desktop edge, so every placement goes through here. +pub fn clamp_window_position( + x: i32, + y: i32, + width: u32, + height: u32, + monitors: &[Monitor], +) -> (i32, i32) { + if monitors.is_empty() { + return (x, y); + } + let centre_x = f64::from(x) + f64::from(width) / 2.0; + let centre_y = f64::from(y) + f64::from(height) / 2.0; + + let target = monitors + .iter() + .find(|monitor| monitor.contains(centre_x, centre_y)) + .or_else(|| { + monitors.iter().min_by(|a, b| { + a.squared_distance(centre_x, centre_y) + .total_cmp(&b.squared_distance(centre_x, centre_y)) + }) + }) + .expect("monitors is not empty"); + + let max_x = target.x + target.width as i32 - width as i32; + let max_y = target.y + target.height as i32 - height as i32; + ( + x.clamp(target.x, max_x.max(target.x)), + y.clamp(target.y, max_y.max(target.y)), + ) +} + +#[cfg(test)] +mod tests { + use super::*; + + const PRIMARY: Monitor = Monitor { + x: 0, + y: 0, + width: 1920, + height: 1080, + }; + const LEFT: Monitor = Monitor { + x: -1280, + y: 0, + width: 1280, + height: 1024, + }; + + #[test] + fn a_position_inside_a_monitor_is_kept() { + assert_eq!( + clamp_window_position(100, 200, 200, 200, &[PRIMARY]), + (100, 200) + ); + } + + #[test] + fn a_position_past_the_bottom_right_corner_is_pulled_back() { + assert_eq!( + clamp_window_position(1900, 1000, 200, 200, &[PRIMARY]), + (1720, 880) + ); + } + + #[test] + fn negative_coordinates_on_a_secondary_monitor_are_kept() { + let monitors = [LEFT, PRIMARY]; + assert_eq!( + clamp_window_position(-1000, 300, 200, 200, &monitors), + (-1000, 300) + ); + } + + #[test] + fn a_saved_position_on_a_removed_monitor_snaps_to_the_nearest_one() { + // The left monitor is gone, so a window at x = -1000 (centre -900) belongs to PRIMARY. + assert_eq!( + clamp_window_position(-1000, 300, 200, 200, &[PRIMARY]), + (0, 300) + ); + } + + #[test] + fn a_window_larger_than_the_monitor_is_pinned_to_its_origin() { + assert_eq!( + clamp_window_position(50, 50, 4000, 4000, &[PRIMARY]), + (0, 0) + ); + } + + #[test] + fn no_monitors_leaves_the_position_alone() { + assert_eq!(clamp_window_position(-5, -6, 10, 10, &[]), (-5, -6)); + } +} diff --git a/src/core/texts.rs b/src/core/texts.rs new file mode 100644 index 0000000..497196d --- /dev/null +++ b/src/core/texts.rs @@ -0,0 +1,252 @@ +//! The wording of the startup dialog, loaded from `texts.json` next to the config so it can be +//! edited without touching code. A missing field keeps its built-in wording and a broken file falls +//! back to the built-ins with a warning: the pet always has something to say. `{name}` placeholders +//! are filled by the caller; an argument the caller does not pass stays visible on purpose, so a +//! typo in the file shows up in the dialog instead of vanishing. + +use std::path::{Path, PathBuf}; + +use serde::{Deserialize, Serialize}; + +/// One paragraph of the dialog: what is wrong and how to fix it. +#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] +pub struct Message { + pub what: String, + /// Optional: without one the paragraph carries no `=>` line. + #[serde(default)] + pub fix: String, +} + +impl Message { + pub fn render(&self, args: &[(&str, &str)]) -> (String, String) { + (fill(&self.what, args), fill(&self.fix, args)) + } +} + +/// Every sentence the pet shows when something it needs is missing. +#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] +#[serde(default, deny_unknown_fields)] +pub struct Texts { + pub title: String, + pub intro: String, + /// One paragraph per problem, filled with `{area}`, `{what}` and `{fix}`. + pub problem: String, + pub outro: String, + pub keyboard_no_input: Message, + pub keyboard_hook: Message, + pub keyboard_hook_timeout: Message, + pub screenshot_watch: Message, + pub screenshot_no_folder: Message, + pub music_no_bus: Message, + pub music_sessions: Message, + pub music_sessions_timeout: Message, +} + +impl Default for Texts { + fn default() -> Self { + Texts { + title: "Hamster pet: something is missing".to_string(), + intro: "The hamster is running, but it cannot use everything:".to_string(), + problem: "{area}: {what}\n=> {fix}".to_string(), + outro: "Nothing here is required: close this and the pet carries on.".to_string(), + keyboard_no_input: Message { + what: "{reason}, so typing and PrintScreen cannot be seen".to_string(), + fix: "enable it once with: sudo usermod -aG input $USER (log out and back in afterwards)" + .to_string(), + }, + keyboard_hook: Message { + what: "cannot install the keyboard hook ({reason})".to_string(), + fix: "run the pet as your own user; a hook cannot see keys pressed in an elevated window" + .to_string(), + }, + keyboard_hook_timeout: Message { + what: "the keyboard hook did not install in time".to_string(), + fix: "the pet runs on without it".to_string(), + }, + screenshot_watch: Message { + what: "cannot watch for new screenshot files ({reason})".to_string(), + fix: "the PrintScreen key still works; sensors.screenshot: key silences this" + .to_string(), + }, + screenshot_no_folder: Message { + what: "no screenshot folder to watch (looked at {folders})".to_string(), + fix: "create that folder, or point sensors.screenshot_dirs at the folder your screenshots land in" + .to_string(), + }, + music_no_bus: Message { + what: "no session bus, so no media player can be seen".to_string(), + fix: "run the pet as your own user inside your desktop session: root and sudo get a different bus" + .to_string(), + }, + music_sessions: Message { + what: "cannot listen to media players ({reason})".to_string(), + fix: "this needs the Windows media session manager; the pet runs on without it" + .to_string(), + }, + music_sessions_timeout: Message { + what: "the media session manager did not answer in time".to_string(), + fix: "the pet runs on without it".to_string(), + }, + } + } +} + +impl Texts { + /// File name of the wording file, read from the working directory like `config.json`. + pub const DEFAULT_FILE: &'static str = "texts.json"; + + /// Loads a wording file; every field it leaves out keeps its built-in text. + pub fn from_json_str(text: &str) -> (Texts, Vec) { + match serde_json::from_str::(text) { + Ok(texts) => (texts, Vec::new()), + Err(err) => ( + Texts::default(), + vec![format!("texts ignored, using the built in wording: {err}")], + ), + } + } + + pub fn from_file(path: &Path) -> (Texts, Vec) { + match std::fs::read_to_string(path) { + Ok(text) => Self::from_json_str(&text), + Err(err) => ( + Texts::default(), + vec![format!( + "cannot read {}: {err}, using the built in wording", + path.display() + )], + ), + } + } + + /// The wording used when `--config`-style overrides point nowhere: `texts.json` in the working + /// directory, if there is one. + pub fn default_path() -> Option { + let path = PathBuf::from(Self::DEFAULT_FILE); + path.exists().then_some(path) + } + + pub fn to_json_string(&self) -> String { + serde_json::to_string_pretty(self).unwrap_or_else(|_| "{}".to_string()) + } + + /// One problem as a dialog paragraph: `area: what` and, when the message has one, `=> fix`. + pub fn paragraph(&self, area: &str, what: &str, fix: &str) -> String { + if fix.is_empty() { + return format!("{area}: {what}"); + } + fill( + &self.problem, + &[("area", area), ("what", what), ("fix", fix)], + ) + } +} + +fn fill(text: &str, args: &[(&str, &str)]) -> String { + let mut out = text.to_string(); + for (name, value) in args { + out = out.replace(&format!("{{{name}}}"), value); + } + out +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn a_missing_file_keeps_the_built_in_wording() { + let (texts, warnings) = Texts::from_file(Path::new("/nope/texts.json")); + assert_eq!(texts, Texts::default()); + assert_eq!(warnings.len(), 1, "{warnings:?}"); + } + + #[test] + fn a_partial_file_keeps_every_other_line() { + let (texts, warnings) = + Texts::from_json_str(r#"{"title": "Oops", "music_no_bus": {"what": "no bus"}}"#); + assert!(warnings.is_empty(), "{warnings:?}"); + assert_eq!(texts.title, "Oops"); + assert_eq!(texts.music_no_bus.what, "no bus"); + assert_eq!(texts.music_no_bus.fix, "", "an omitted fix has none"); + assert_eq!(texts.outro, Texts::default().outro); + assert_eq!(texts.keyboard_hook, Texts::default().keyboard_hook); + } + + #[test] + fn a_broken_file_is_reported_and_ignored() { + let (texts, warnings) = Texts::from_json_str(r#"{"title": 3}"#); + assert_eq!(texts, Texts::default()); + assert_eq!(warnings.len(), 1); + assert!(warnings[0].contains("texts ignored"), "{warnings:?}"); + } + + #[test] + fn unknown_fields_are_reported() { + let (_, warnings) = Texts::from_json_str(r#"{"keyboard_no_inputs": {"what": "x"}}"#); + assert_eq!(warnings.len(), 1); + assert!(warnings[0].contains("keyboard_no_inputs"), "{warnings:?}"); + } + + #[test] + fn placeholders_are_filled_and_unknown_ones_stay_visible() { + let message = Message { + what: "{reason} and {typo}".to_string(), + fix: "none".to_string(), + }; + let (what, fix) = message.render(&[("reason", "no access")]); + assert_eq!(what, "no access and {typo}"); + assert_eq!(fix, "none"); + } + + #[test] + fn a_paragraph_without_a_fix_has_no_arrow_line() { + let texts = Texts::default(); + assert_eq!(texts.paragraph("music", "no bus", ""), "music: no bus"); + assert_eq!( + texts.paragraph("music", "no bus", "run as your user"), + "music: no bus\n=> run as your user" + ); + } + + #[test] + fn round_trip_through_json() { + let (texts, warnings) = Texts::from_json_str(&Texts::default().to_json_string()); + assert!(warnings.is_empty(), "{warnings:?}"); + assert_eq!(texts, Texts::default()); + } + + #[test] + fn the_shipped_wording_parses_and_covers_the_dialog() { + // The file may be edited freely; it only has to stay readable and complete, so a typo in a + // field name cannot silently drop a sentence from the dialog. + let path = std::path::Path::new(env!("CARGO_MANIFEST_DIR")).join(Texts::DEFAULT_FILE); + let (texts, warnings) = Texts::from_file(&path); + assert!(warnings.is_empty(), "{warnings:?}"); + for (name, message) in [ + ("keyboard_no_input", &texts.keyboard_no_input), + ("keyboard_hook", &texts.keyboard_hook), + ("keyboard_hook_timeout", &texts.keyboard_hook_timeout), + ("screenshot_watch", &texts.screenshot_watch), + ("screenshot_no_folder", &texts.screenshot_no_folder), + ("music_no_bus", &texts.music_no_bus), + ("music_sessions", &texts.music_sessions), + ("music_sessions_timeout", &texts.music_sessions_timeout), + ] { + assert!(!message.what.is_empty(), "{name} has no text"); + } + assert!(!texts.title.is_empty() && !texts.intro.is_empty()); + assert!( + texts.problem.contains("{what}") && texts.problem.contains("{fix}"), + "the paragraph template must place the what and the fix" + ); + } + + #[test] + fn every_key_the_code_uses_can_be_read_back() { + let (texts, _) = + Texts::from_json_str(r#"{"keyboard_no_input": {"what": "a", "fix": "b"}}"#); + let (what, fix) = texts.keyboard_no_input.render(&[]); + assert_eq!((what.as_str(), fix.as_str()), ("a", "b")); + } +} diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..2e06981 --- /dev/null +++ b/src/lib.rs @@ -0,0 +1,60 @@ +pub mod core; +pub mod platform; +pub mod sensors; + +pub use core::{ + clamp_window_position, parse_script, print_transitions, run_script, Activity, Canvas, Chain, + ChainPolicy, Clip, ClipPlayer, Clock, Condition, Config, Engine, Event, FakeClock, Frame, + FrameStore, Manifest, Message, Monitor, Phase, Point, Rect, Rng, ScreenshotMode, ScriptStep, + SensorsConfig, SystemClock, Texts, Transition, DEFAULT_FPS, +}; + +/// App-level errors with the context needed to fix them. +#[derive(Debug)] +pub enum Error { + Io(std::io::Error), + Json(serde_json::Error), + Image(image::ImageError), + Manifest(String), + MissingClip(String), + MissingFrame(std::path::PathBuf), + Script(String), + Window(String), +} + +impl std::fmt::Display for Error { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match self { + Error::Io(e) => write!(f, "io error: {e}"), + Error::Json(e) => write!(f, "invalid json: {e}"), + Error::Image(e) => write!(f, "image error: {e}"), + Error::Manifest(msg) => write!(f, "invalid manifest: {msg}"), + Error::MissingClip(name) => write!(f, "clip '{name}' is missing from the manifest"), + Error::MissingFrame(path) => write!(f, "frame file not found: {}", path.display()), + Error::Script(msg) => write!(f, "invalid replay script: {msg}"), + Error::Window(msg) => write!(f, "window error: {msg}"), + } + } +} + +impl std::error::Error for Error {} + +impl From for Error { + fn from(e: std::io::Error) -> Self { + Error::Io(e) + } +} + +impl From for Error { + fn from(e: serde_json::Error) -> Self { + Error::Json(e) + } +} + +impl From for Error { + fn from(e: image::ImageError) -> Self { + Error::Image(e) + } +} + +pub type Result = std::result::Result; diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..77dbf74 --- /dev/null +++ b/src/main.rs @@ -0,0 +1,253 @@ +use std::path::PathBuf; +use std::time::Duration; + +use hamster_pet::platform::{self, WindowOptions}; +use hamster_pet::{ + parse_script, print_transitions, run_script, Clock, Config, Engine, Error, Manifest, + SensorsConfig, SystemClock, Texts, +}; + +const USAGE: &str = "\ +hamster-pet [options] + + --assets clip directory (default: assets/animations) + --config config json (default: ./config.json) + --replay play a scripted event sequence and print the animation chain + --headless no window: run the engine and print the chain (for scripts and CI) + --trace print animation transitions while the window runs + --seed fixed rng seed; replay defaults to 0 so runs repeat + --fps-scale playback speed multiplier override + --backend auto, wayland or x11 (default: auto) + --no-sensors do not listen to the keyboard, media players or screenshots + --no-dialog do not show the startup dialog for things the pet cannot use + --seconds stop after n seconds (window mode runs until closed, headless: 20) + +Window controls: drag with the left mouse button, right click quits."; + +struct Options { + assets: PathBuf, + config: Option, + replay: Option, + headless: bool, + trace: bool, + seed: Option, + fps_scale: Option, + backend: Option, + no_sensors: bool, + no_dialog: bool, + seconds: Option, +} + +fn main() -> Result<(), Error> { + let options = match parse_args(std::env::args().skip(1)) { + Ok(Some(options)) => options, + Ok(None) => { + println!("{USAGE}"); + return Ok(()); + } + Err(message) => { + eprintln!("{message}\n\n{USAGE}"); + std::process::exit(2); + } + }; + + let config_path = options.config.clone().or_else(Config::default_path); + let (mut config, mut warnings) = match &config_path { + Some(path) if path.exists() => Config::from_file(path), + _ => (Config::default(), Vec::new()), + }; + // An explicitly named but missing config is written out with every default, so all the knobs are + // easy to find and edit; overrides are applied afterwards and never end up in the file. + if let Some(path) = &config_path { + if !path.exists() { + match config.save(path) { + Ok(()) => println!("config: wrote defaults to {}", path.display()), + Err(err) => eprintln!("warning: cannot write {}: {err}", path.display()), + } + } + } + // Command line overrides last for this run only: the file keeps what it was loaded with, so a + // `--no-sensors` or `--backend` run cannot make its settings permanent. + let saved_config = config.clone(); + if let Some(scale) = options.fps_scale { + config.fps_scale = scale; + } + if let Some(backend) = &options.backend { + config.backend = backend.clone(); + } + if options.no_sensors { + config.sensors = SensorsConfig::disabled(); + } + if options.no_dialog { + config.startup_dialog = false; + } + if options.fps_scale.is_some() + || options.backend.is_some() + || options.no_sensors + || options.no_dialog + { + // Command line overrides go through the same checks as the file. + let (sanitized, extra) = config.sanitized(); + config = sanitized; + warnings.extend(extra); + } + + // The dialog wording lives in its own file so it is edited without touching code; a missing + // file simply means the built-in wording. + let texts_path = Texts::default_path(); + let (texts, text_warnings) = match &texts_path { + Some(path) => Texts::from_file(path), + None => (Texts::default(), Vec::new()), + }; + warnings.extend(text_warnings); + + let manifest_path = options.assets.join("manifest.json"); + let manifest = Manifest::load(&manifest_path).map_err(|err| match err { + Error::Io(_) => Error::Manifest(format!( + "{} is missing - run: cargo run -p convert_frames", + manifest_path.display() + )), + other => other, + })?; + + let seed = options.seed.or(config.seed).unwrap_or_else(|| { + if options.replay.is_some() { + 0 + } else { + SystemClock.now_ms() + } + }); + + for warning in &warnings { + eprintln!("warning: {warning}"); + } + println!( + "assets: {} clips, canvas {}x{}, anchor ({}, {}), seed {seed}", + manifest.clips.len(), + manifest.canvas.width, + manifest.canvas.height, + manifest.anchor.x, + manifest.anchor.y + ); + + // A replay starts at zero so its timings are readable; live modes use the wall clock. + let start_ms = if options.replay.is_some() { + 0 + } else { + SystemClock.now_ms() + }; + let (mut engine, engine_warnings) = Engine::new(&manifest, config.clone(), seed, start_ms)?; + for warning in engine_warnings { + eprintln!("warning: {warning}"); + } + + if let Some(path) = &options.replay { + let script = std::fs::read_to_string(path)?; + let steps = parse_script(&script)?; + println!("replay: {} steps from {}", steps.len(), path.display()); + let transitions = run_script(&mut engine, &steps, 30_000); + print_transitions(&transitions); + return Ok(()); + } + + if options.headless { + let clock = SystemClock::new(); + let start = clock.now_ms(); + let end = start + options.seconds.unwrap_or(20) * 1_000; + while clock.now_ms() < end { + engine.update(clock.now_ms()); + print_transitions(&engine.take_transitions()); + std::thread::sleep(Duration::from_millis(16)); + } + let (clip, frame) = engine.visible(); + println!("done, showing {clip} frame {frame}"); + return Ok(()); + } + + if let Some(path) = &config_path { + println!("config: {}", path.display()); + } + match &texts_path { + Some(path) => println!("texts: {}", path.display()), + None => println!("texts: built in (no {})", Texts::DEFAULT_FILE), + } + platform::run( + manifest, + config, + engine, + WindowOptions { + assets: options.assets, + config_path, + seconds: options.seconds, + trace: options.trace, + saved_config, + texts, + }, + ) +} + +fn parse_args(args: impl Iterator) -> Result, String> { + let mut options = Options { + assets: PathBuf::from("assets/animations"), + config: None, + replay: None, + headless: false, + trace: false, + seed: None, + fps_scale: None, + backend: None, + no_sensors: false, + no_dialog: false, + seconds: None, + }; + let args: Vec = args.collect(); + let mut index = 0; + while index < args.len() { + let arg = args[index].as_str(); + index += 1; + match arg { + "--help" | "-h" => return Ok(None), + "--headless" => options.headless = true, + "--trace" => options.trace = true, + "--no-sensors" => options.no_sensors = true, + "--no-dialog" => options.no_dialog = true, + "--backend" => options.backend = Some(take_value(&args, &mut index, arg)?), + "--assets" => options.assets = PathBuf::from(take_value(&args, &mut index, arg)?), + "--config" => options.config = Some(PathBuf::from(take_value(&args, &mut index, arg)?)), + "--replay" => options.replay = Some(PathBuf::from(take_value(&args, &mut index, arg)?)), + "--seed" => { + let raw = take_value(&args, &mut index, arg)?; + options.seed = Some( + raw.parse() + .map_err(|_| format!("--seed: '{raw}' is not a number"))?, + ); + } + "--fps-scale" => { + let raw = take_value(&args, &mut index, arg)?; + options.fps_scale = Some( + raw.parse() + .map_err(|_| format!("--fps-scale: '{raw}' is not a number"))?, + ); + } + "--seconds" => { + let raw = take_value(&args, &mut index, arg)?; + options.seconds = Some( + raw.parse() + .map_err(|_| format!("--seconds: '{raw}' is not a number"))?, + ); + } + other => return Err(format!("unknown option '{other}'")), + } + } + Ok(Some(options)) +} + +fn take_value(args: &[String], index: &mut usize, name: &str) -> Result { + if *index < args.len() { + let value = args[*index].clone(); + *index += 1; + Ok(value) + } else { + Err(format!("{name} needs a value")) + } +} diff --git a/src/platform/compositor.rs b/src/platform/compositor.rs new file mode 100644 index 0000000..7a32aae --- /dev/null +++ b/src/platform/compositor.rs @@ -0,0 +1,430 @@ +//! Frame compositing shared by every backend: the engine hands us one cropped frame at a time, +//! the compositor keeps the whole canvas and produces premultiplied ARGB pixels for the window +//! plus the clickable rectangles of whatever is currently visible. + +use image::{imageops::FilterType, RgbaImage}; + +use crate::core::manifest::{Canvas, Rect}; + +/// Transparent border around the canvas in logical pixels. On Wayland it doubles as the slack +/// that keeps the pointer inside the surface while dragging, because a compositor only sends +/// pointer motion to the surface under the cursor. +pub const PAD: u32 = 24; +/// Pixels with a higher alpha than this receive clicks; softer ones are click-through. +pub const HIT_ALPHA: u8 = 16; + +/// Premultiplied ARGB bytes, which is what both X11 (BGRA byte order) and Wayland's +/// `ARGB8888` shared memory format expect. +pub struct Compositor { + canvas: Vec, + canvas_size: Canvas, + scale: u32, + window: (u32, u32), + offset: (i32, i32), + argb: Vec, + rects: Vec, +} + +impl Compositor { + pub fn new(canvas_size: Canvas, scale: u32) -> Self { + let scale = scale.max(1); + let window = (canvas_size.width + 2 * PAD, canvas_size.height + 2 * PAD); + let mut compositor = Compositor { + canvas: vec![0; canvas_size.width as usize * canvas_size.height as usize * 4], + canvas_size, + scale, + window, + offset: (PAD as i32, PAD as i32), + argb: Vec::new(), + rects: Vec::new(), + }; + compositor.set_window(window); + compositor + } + + /// Resizes the surface and re-centres the canvas. Backends that cannot pick their own size + /// (an xdg toplevel on Wayland) call this when the compositor decides for us. + pub fn set_window(&mut self, window: (u32, u32)) { + let window = ( + window.0.max(self.canvas_size.width), + window.1.max(self.canvas_size.height), + ); + if window == self.window && !self.argb.is_empty() { + return; + } + self.window = window; + self.offset = ( + ((window.0 - self.canvas_size.width) / 2) as i32, + ((window.1 - self.canvas_size.height) / 2) as i32, + ); + self.argb = vec![ + 0; + window.0 as usize + * self.scale as usize + * window.1 as usize + * self.scale as usize + * 4 + ]; + } + + pub fn window_size(&self) -> (u32, u32) { + self.window + } + + pub fn scale(&self) -> u32 { + self.scale + } + + pub fn clear(&mut self) { + self.canvas.iter_mut().for_each(|byte| *byte = 0); + } + + /// Copies a cropped frame into the canvas at the clip's rectangle, clipping to the canvas. + pub fn blit(&mut self, frame: &RgbaImage, rect: Rect) { + let (frame_width, frame_height) = frame.dimensions(); + let source = frame.as_raw(); + let canvas_width = self.canvas_size.width as i32; + let canvas_height = self.canvas_size.height as i32; + for y in 0..frame_height as i32 { + let canvas_y = rect.y + y; + if canvas_y < 0 || canvas_y >= canvas_height { + continue; + } + for x in 0..frame_width as i32 { + let canvas_x = rect.x + x; + if canvas_x < 0 || canvas_x >= canvas_width { + continue; + } + let from = ((y as u32 * frame_width + x as u32) * 4) as usize; + let to = + ((canvas_y as u32 * self.canvas_size.width + canvas_x as u32) * 4) as usize; + self.canvas[to..to + 4].copy_from_slice(&source[from..from + 4]); + } + } + } + + /// Scales the canvas to device pixels, premultiplies it and rebuilds the clickable area. + pub fn flush(&mut self) { + let (device_width, _) = self.device_size(); + self.argb.iter_mut().for_each(|byte| *byte = 0); + let origin = ( + self.offset.0 * self.scale as i32, + self.offset.1 * self.scale as i32, + ); + let (canvas_width, canvas_height) = (self.canvas_size.width, self.canvas_size.height); + + if self.scale == 1 { + for y in 0..canvas_height { + for x in 0..canvas_width { + let from = ((y * canvas_width + x) * 4) as usize; + let to = + (((origin.1 as u32 + y) * device_width + origin.0 as u32 + x) * 4) as usize; + premultiply(&self.canvas[from..from + 4], &mut self.argb[to..to + 4]); + } + } + } else { + // Only this branch pays for the resampling; the pet is small, so it stays cheap. + let image = RgbaImage::from_raw(canvas_width, canvas_height, self.canvas.clone()) + .expect("the canvas is exactly canvas_size pixels"); + let scaled = image::imageops::resize( + &image, + canvas_width * self.scale, + canvas_height * self.scale, + FilterType::Triangle, + ); + for y in 0..scaled.height() { + for x in 0..scaled.width() { + let from = ((y * scaled.width() + x) * 4) as usize; + let to = + (((origin.1 as u32 + y) * device_width + origin.0 as u32 + x) * 4) as usize; + premultiply(&scaled.as_raw()[from..from + 4], &mut self.argb[to..to + 4]); + } + } + } + + self.rects = opaque_runs(&self.canvas, self.canvas_size, HIT_ALPHA) + .into_iter() + .map(|rect| Rect { + x: rect.x + self.offset.0, + y: rect.y + self.offset.1, + ..rect + }) + .collect(); + } + + /// Premultiplied ARGB pixels, `device_size()` of them. + pub fn argb(&self) -> &[u8] { + &self.argb + } + + pub fn device_size(&self) -> (u32, u32) { + (self.window.0 * self.scale, self.window.1 * self.scale) + } + + /// Clickable rectangles in surface-local logical coordinates. + pub fn rects(&self) -> &[Rect] { + &self.rects + } + + /// True when the pixel at surface-local logical coordinates is part of the pet. + pub fn hit(&self, x: f64, y: f64) -> bool { + let canvas_x = (x.floor() as i32 - self.offset.0) / self.scale as i32; + let canvas_y = (y.floor() as i32 - self.offset.1) / self.scale as i32; + if canvas_x < 0 + || canvas_y < 0 + || canvas_x >= self.canvas_size.width as i32 + || canvas_y >= self.canvas_size.height as i32 + { + return false; + } + let index = ((canvas_y as u32 * self.canvas_size.width + canvas_x as u32) * 4 + 3) as usize; + self.canvas[index] > HIT_ALPHA + } +} + +fn premultiply(rgba: &[u8], out: &mut [u8]) { + let alpha = u32::from(rgba[3]); + let channel = |value: u8| ((u32::from(value) * alpha + 127) / 255) as u8; + out[0] = channel(rgba[2]); + out[1] = channel(rgba[1]); + out[2] = channel(rgba[0]); + out[3] = rgba[3]; +} + +/// Clickable rectangles for the canvas: rows sharing the same spans are merged into blocks. +pub fn opaque_runs(rgba: &[u8], canvas: Canvas, threshold: u8) -> Vec { + let mut rects: Vec = Vec::new(); + let mut previous: Vec<(u16, u16)> = Vec::new(); + for y in 0..canvas.height { + let mut spans: Vec<(u16, u16)> = Vec::new(); + let mut start: Option = None; + for x in 0..canvas.width { + let opaque = rgba[((y * canvas.width + x) * 4 + 3) as usize] > threshold; + match (opaque, start) { + (true, None) => start = Some(x as u16), + (false, Some(from)) => { + spans.push((from, x as u16)); + start = None; + } + _ => {} + } + } + if let Some(from) = start { + spans.push((from, canvas.width as u16)); + } + if spans.is_empty() { + previous.clear(); + continue; + } + if spans == previous { + if let Some(last) = rects.last_mut() { + last.height += 1; + } + continue; + } + for (from, to) in &spans { + rects.push(Rect { + x: i32::from(*from), + y: i32::from(y as u16), + width: u32::from(to - from), + height: 1, + }); + } + previous = spans; + } + rects +} + +#[cfg(test)] +mod tests { + use super::*; + use image::Rgba; + + const CANVAS: Canvas = Canvas { + width: 4, + height: 4, + }; + + fn canvas_with(alpha: u8) -> Vec { + let mut rgba = vec![0; CANVAS.width as usize * CANVAS.height as usize * 4]; + for pixel in rgba.chunks_mut(4) { + pixel[0] = 255; + pixel[1] = 128; + pixel[2] = 0; + pixel[3] = alpha; + } + rgba + } + + #[test] + fn premultiply_rounds_to_nearest() { + let mut out = [0u8; 4]; + premultiply(&[255, 128, 0, 128], &mut out); + // 255 * 128 / 255 = 128, 128 * 128 / 255 = 64.25 -> 64, blue stays 0. + assert_eq!(out, [0, 64, 128, 128]); + } + + #[test] + fn premultiply_keeps_transparent_pixels_empty() { + let mut out = [9u8; 4]; + premultiply(&[255, 255, 255, 0], &mut out); + assert_eq!(out, [0, 0, 0, 0]); + } + + #[test] + fn the_window_keeps_a_border_around_the_canvas() { + let compositor = Compositor::new(CANVAS, 1); + assert_eq!(compositor.window_size(), (4 + 2 * PAD, 4 + 2 * PAD)); + assert_eq!(compositor.device_size(), compositor.window_size()); + } + + #[test] + fn a_hidpi_surface_is_scaled_from_the_same_canvas() { + let mut compositor = Compositor::new(CANVAS, 2); + compositor.clear(); + assert_eq!( + compositor.device_size(), + ((4 + 2 * PAD) * 2, (4 + 2 * PAD) * 2) + ); + compositor.flush(); + assert_eq!( + compositor.argb().len(), + compositor.device_size().0 as usize * compositor.device_size().1 as usize * 4 + ); + } + + #[test] + fn flush_places_the_canvas_after_the_border() { + let mut compositor = Compositor::new(CANVAS, 1); + compositor.clear(); + let frame = RgbaImage::from_pixel(4, 4, Rgba([255, 128, 0, 128])); + compositor.blit( + &frame, + Rect { + x: 0, + y: 0, + width: 4, + height: 4, + }, + ); + compositor.flush(); + let (width, _) = compositor.device_size(); + let corner = 0; + assert_eq!( + &compositor.argb()[corner..corner + 4], + &[0, 0, 0, 0], + "the border stays clear" + ); + let inside = ((PAD as usize * width as usize) + PAD as usize) * 4; + assert_eq!(&compositor.argb()[inside..inside + 4], &[0, 64, 128, 128]); + } + + #[test] + fn the_clickable_area_follows_the_visible_pixels() { + let mut compositor = Compositor::new(CANVAS, 1); + compositor.clear(); + compositor.flush(); + assert!( + compositor.rects().is_empty(), + "an empty canvas has nothing to click" + ); + + let frame = RgbaImage::from_pixel(2, 2, Rgba([255, 255, 255, 255])); + compositor.blit( + &frame, + Rect { + x: 1, + y: 1, + width: 2, + height: 2, + }, + ); + compositor.flush(); + assert_eq!( + compositor.rects(), + &[Rect { + x: PAD as i32 + 1, + y: PAD as i32 + 1, + width: 2, + height: 2 + }] + ); + assert!(compositor.hit(f64::from(PAD + 1), f64::from(PAD + 1))); + assert!( + !compositor.hit(0.0, 0.0), + "the transparent border is not clickable" + ); + assert!(!compositor.hit(f64::from(PAD + 3), f64::from(PAD + 3))); + } + + #[test] + fn opaque_runs_merge_rows_with_the_same_spans() { + let mut rgba = vec![0u8; (CANVAS.width * CANVAS.height * 4) as usize]; + for y in 0..2u32 { + for x in 1..3u32 { + rgba[((y * CANVAS.width + x) * 4 + 3) as usize] = 255; + } + } + rgba[((2 * CANVAS.width + 3) * 4 + 3) as usize] = 255; + assert_eq!( + opaque_runs(&rgba, CANVAS, HIT_ALPHA), + vec![ + Rect { + x: 1, + y: 0, + width: 2, + height: 2 + }, + Rect { + x: 3, + y: 2, + width: 1, + height: 1 + } + ] + ); + } + + #[test] + fn opaque_runs_ignore_nearly_transparent_fringes() { + assert!(opaque_runs(&canvas_with(HIT_ALPHA), CANVAS, HIT_ALPHA).is_empty()); + assert_eq!( + opaque_runs(&canvas_with(HIT_ALPHA + 1), CANVAS, HIT_ALPHA).len(), + 1 + ); + } + + #[test] + fn a_smaller_window_is_grown_to_fit_the_canvas() { + let mut compositor = Compositor::new(CANVAS, 1); + compositor.set_window((1, 1)); + assert_eq!(compositor.window_size(), (CANVAS.width, CANVAS.height)); + } + + #[test] + fn a_larger_window_centres_the_canvas() { + let mut compositor = Compositor::new(CANVAS, 1); + compositor.clear(); + compositor.set_window((20, 20)); + let frame = RgbaImage::from_pixel(4, 4, Rgba([255, 255, 255, 255])); + compositor.blit( + &frame, + Rect { + x: 0, + y: 0, + width: 4, + height: 4, + }, + ); + compositor.flush(); + assert_eq!( + compositor.rects(), + &[Rect { + x: 8, + y: 8, + width: 4, + height: 4 + }] + ); + } +} diff --git a/src/platform/dialog.rs b/src/platform/dialog.rs new file mode 100644 index 0000000..72754da --- /dev/null +++ b/src/platform/dialog.rs @@ -0,0 +1,177 @@ +//! Startup dialog for anything the pet cannot use. It has no toolkit of its own, so on Linux it +//! asks the desktop for its own dialog tool and on Windows it uses the native message box. Either +//! way it gets out of the way: the pet runs on once the dialog is dismissed. Without such a tool +//! the startup notes say the same. Every sentence it shows comes from `Texts`, which is read from +//! `texts.json`, so the wording is edited in a file instead of in here. + +#[cfg(target_os = "linux")] +use std::process::{Child, Command}; +#[cfg(target_os = "linux")] +use std::sync::Mutex; + +use crate::core::texts::Texts; +use crate::sensors::SensorProblem; + +/// The dialog that is up, so it can be taken down with the pet instead of lingering behind it. +#[cfg(target_os = "linux")] +static DIALOG: Mutex> = Mutex::new(None); + +/// Shows the fixes in a dialog of the desktop. Nothing waits for it: it is a separate window and the +/// pet runs on behind it, so closing the dialog is all it takes to ignore the advice. +pub fn show(problems: &[SensorProblem], texts: &Texts) { + let text = message(problems, texts); + #[cfg(target_os = "linux")] + { + for mut dialog in candidates(&texts.title, &text) { + match dialog.spawn() { + Ok(child) => { + *lock() = Some(child); + return; + } + // Missing tool, or one that refuses to start: try the next. + Err(_) => continue, + } + } + } + #[cfg(target_os = "windows")] + { + // A modal message box blocks its own thread, so it runs on a thread of its own and the pet + // keeps drawing; the process exit takes the box down with it. + let heading = texts.title.clone(); + std::thread::spawn(move || { + let title = wide(&heading); + let body = wide(&text); + // SAFETY: both strings are NUL terminated and outlive the call. + unsafe { + windows::Win32::UI::WindowsAndMessaging::MessageBoxW( + None, + windows::core::PCWSTR(body.as_ptr()), + windows::core::PCWSTR(title.as_ptr()), + windows::Win32::UI::WindowsAndMessaging::MB_OK + | windows::Win32::UI::WindowsAndMessaging::MB_ICONINFORMATION + | windows::Win32::UI::WindowsAndMessaging::MB_SETFOREGROUND, + ); + } + }); + } + #[cfg(not(any(target_os = "linux", target_os = "windows")))] + { + let _ = text; + } +} + +/// Takes an undismissed dialog down when the pet exits. +pub fn close() { + #[cfg(target_os = "linux")] + { + let mut slot = lock(); + if let Some(mut child) = slot.take() { + if matches!(child.try_wait(), Ok(None)) { + let _ = child.kill(); + } + } + } +} + +/// A poisoned lock only means the dialog thread panicked; the handle is still usable. +#[cfg(target_os = "linux")] +fn lock() -> std::sync::MutexGuard<'static, Option> { + DIALOG.lock().unwrap_or_else(|err| err.into_inner()) +} + +/// The dialog body: one paragraph per problem, what is wrong and what to do about it. +fn message(problems: &[SensorProblem], texts: &Texts) -> String { + let mut text = texts.intro.clone(); + for problem in problems { + text.push_str("\n\n"); + text.push_str(&texts.paragraph(problem.area, &problem.what, &problem.fix)); + } + text.push_str("\n\n"); + text.push_str(&texts.outro); + text +} + +#[cfg(target_os = "windows")] +fn wide(text: &str) -> Vec { + text.encode_utf16().chain(std::iter::once(0)).collect() +} + +/// The desktop's own dialog tools, best first. Only Linux ships them; macOS brings its own dialog +/// with its milestone, and until then the startup notes stand in for it. +#[cfg(target_os = "linux")] +fn candidates(title: &str, text: &str) -> Vec { + vec![ + command("kdialog", &["--title", title, "--msgbox", text]), + command( + "zenity", + &["--info", "--no-markup", "--title", title, "--text", text], + ), + command("yad", &["--title", title, "--text", text, "--button=OK:0"]), + ] +} + +#[cfg(target_os = "linux")] +fn command(program: &str, args: &[&str]) -> Command { + let mut command = Command::new(program); + command.args(args); + command +} + +#[cfg(test)] +mod tests { + use super::*; + + fn problem(area: &'static str, what: &str, fix: &str) -> SensorProblem { + SensorProblem { + area, + what: what.to_string(), + fix: fix.to_string(), + } + } + + #[test] + fn the_message_carries_every_fix() { + let text = message( + &[ + problem( + "keyboard", + "no access to /dev/input", + "add yourself to input", + ), + problem("music", "no session bus", "run it as your own user"), + ], + &Texts::default(), + ); + for expected in [ + "The hamster is running", + "keyboard: no access to /dev/input", + "add yourself to input", + "music: no session bus", + "run it as your own user", + "carries on", + ] { + assert!(text.contains(expected), "{expected} missing from {text:?}"); + } + } + + #[test] + fn the_message_follows_the_wording_file() { + let texts = Texts { + intro: "Hej:".to_string(), + outro: "Koniec.".to_string(), + ..Texts::default() + }; + let text = message(&[problem("music", "no bus", "")], &texts); + assert_eq!(text, "Hej:\n\nmusic: no bus\n\nKoniec."); + } + + #[cfg(target_os = "linux")] + #[test] + fn linux_offers_the_desktop_dialog_tools_in_order() { + let programs: Vec = candidates("title", "body") + .iter() + .map(|dialog| dialog.get_program().to_string_lossy().into_owned()) + .collect(); + assert_eq!(programs, vec!["kdialog", "zenity", "yad"]); + } +} diff --git a/src/platform/mod.rs b/src/platform/mod.rs new file mode 100644 index 0000000..be65f64 --- /dev/null +++ b/src/platform/mod.rs @@ -0,0 +1,419 @@ +//! The pet window: a transparent, always on top surface that draws the engine's frames and feeds +//! pointer input back to it. Window plumbing lives here; `x11`, `wayland` and `windows` talk to the +//! display server and only differ in how they position, present and hit-test the surface. +//! +//! Nothing in the frame loop blocks on the display server: backends report what happened and the +//! loop keeps its own timing, which is what keeps the animation running while the pet is dragged. + +mod compositor; +mod dialog; +#[cfg(target_os = "linux")] +mod wayland; +#[cfg(target_os = "windows")] +mod windows; +#[cfg(target_os = "linux")] +mod x11; + +pub use compositor::{Compositor, HIT_ALPHA, PAD}; + +use std::path::PathBuf; +use std::time::{Duration, Instant}; + +use crate::core::clock::Clock; +use crate::core::manifest::{Manifest, Point, Rect}; +use crate::core::replay::print_transitions; + +use crate::core::texts::Texts; +use crate::sensors::{SensorEvent, Sensors}; +#[cfg(not(target_os = "windows"))] +use crate::Error; +use crate::{Config, Engine, Event, FrameStore, Result, SystemClock}; + +/// Pointer and lifecycle events, in surface-local logical coordinates. +#[derive(Debug, Clone, Copy, PartialEq)] +pub enum InputEvent { + Press { + x: f64, + y: f64, + }, + Motion { + x: f64, + y: f64, + }, + /// The pointer came back to the surface; no movement is applied, the drag re-anchors instead. + Enter { + x: f64, + y: f64, + }, + Leave, + Release, + Quit, +} + +/// What the frame loop needs from a display server. +pub trait Backend { + fn name(&self) -> &'static str; + /// Device pixels per logical pixel. + fn scale(&self) -> u32; + /// Logical surface size; an xdg toplevel is sized by the compositor, so this can change. + fn window_size(&self) -> (u32, u32); + /// Waits for input until `deadline`, then returns whatever arrived. + fn pump(&mut self, deadline: Instant) -> Result>; + /// Shows premultiplied ARGB pixels of `window_size() * scale`. False means the backend could + /// not take the frame yet (all of its buffers are busy) and it should be offered again. + fn present(&mut self, argb: &[u8]) -> Result; + /// False when the compositor decides where the surface sits; drags then cannot position it. + fn can_position(&self) -> bool { + true + } + /// Click-through mask: rectangles in surface-local logical pixels. + fn set_input_rects(&mut self, rects: &[Rect]) -> Result<()>; + /// Places the surface so its top left corner sits at this position. + fn move_to(&mut self, x: i32, y: i32) -> Result<()>; + fn position(&self) -> (i32, i32); + /// True once when the surface lost its contents (for example after being uncovered). + fn needs_redraw(&mut self) -> bool; +} + +pub struct WindowOptions { + pub assets: PathBuf, + pub config_path: Option, + /// Stop after this many seconds; used by the automated checks. + pub seconds: Option, + /// Print every animation transition, like `--replay` does. + pub trace: bool, + /// The config the file held, without command line overrides. Only this one is written back, + /// so an override never turns into a permanent setting. + pub saved_config: Config, + /// The dialog wording, from `texts.json` or its built-in defaults. + pub texts: Texts, +} + +/// Runs the pet until the window is closed or the pet is asked to quit. +pub fn run( + manifest: Manifest, + config: Config, + engine: Engine, + options: WindowOptions, +) -> Result<()> { + let mut backend = create_backend(&config, &manifest)?; + println!( + "window: {} · {}x{} logical, scale {}", + backend.name(), + backend.window_size().0, + backend.window_size().1, + backend.scale() + ); + let sensors = Sensors::spawn(&config, &options.texts); + for note in sensors.notes() { + println!("sensors: {note}"); + } + // Anything the user can fix gets a dialog too: the pet runs on, so ignoring it is allowed. + if config.startup_dialog && !sensors.problems().is_empty() { + dialog::show(sensors.problems(), &options.texts); + } + let mut pet = Pet::new(manifest, engine, options, backend.scale()); + pet.position = backend.position(); + let result = pet.run(&mut *backend, sensors); + // A startup dialog the user never dismissed goes away with the pet. + dialog::close(); + result +} + +/// Picks a backend: the configured one, or the session that is actually present. +fn create_backend(config: &Config, manifest: &Manifest) -> Result> { + #[cfg(target_os = "linux")] + { + let wayland_session = std::env::var_os("WAYLAND_DISPLAY").is_some_and(|v| !v.is_empty()); + let x11_session = std::env::var_os("DISPLAY").is_some_and(|v| !v.is_empty()); + let wanted = match config.backend.as_str() { + "wayland" => "wayland", + "x11" => "x11", + _ if wayland_session => "wayland", + _ if x11_session => "x11", + _ => { + return Err(Error::Window( + "no display found: set DISPLAY or WAYLAND_DISPLAY, or run with --headless" + .into(), + )) + } + }; + if wanted == "wayland" { + match wayland::WaylandBackend::new(config, manifest) { + Ok(backend) => return Ok(Box::new(backend)), + Err(err) if config.backend == "auto" && x11_session => { + eprintln!("warning: wayland window failed ({err}), falling back to x11"); + } + Err(err) => return Err(err), + } + } + return Ok(Box::new(x11::X11Backend::new(config, manifest)?)); + } + #[cfg(target_os = "windows")] + { + return Ok(Box::new(windows::WindowsBackend::new(config, manifest)?)); + } + #[cfg(not(any(target_os = "linux", target_os = "windows")))] + { + let _ = (config, manifest); + Err(Error::Window( + "the pet window is implemented for Linux (X11, Wayland) and Windows; \ + see docs/PLAN.md for the macOS milestone" + .into(), + )) + } +} + +struct Drag { + /// Pointer position inside the surface when the drag started. Keeping this offset constant is + /// what makes the pet follow the pointer: window-local coordinates are measured against the + /// surface itself, so adding plain local deltas would only move the window half the distance. + grab: (f64, f64), +} + +struct Pet { + manifest: Manifest, + engine: Engine, + store: FrameStore, + compositor: Compositor, + options: WindowOptions, + position: (i32, i32), + drag: Option, + last_pointer: Instant, + /// The frame currently in the canvas and the one already on screen, so both a new frame and + /// a repaint of the same frame (after an expose) can be told apart. + composed: Option<(String, u32)>, + drawn: Option<(String, u32)>, + frame_dirty: bool, + mask_dirty: bool, + exit_at: Option, + quit: bool, +} + +impl Pet { + fn new(manifest: Manifest, engine: Engine, options: WindowOptions, scale: u32) -> Self { + let compositor = Compositor::new(manifest.canvas, scale); + let store = FrameStore::new(options.assets.clone(), manifest.clone(), 240); + Pet { + manifest, + engine, + store, + compositor, + options, + position: (0, 0), + drag: None, + last_pointer: Instant::now(), + drawn: None, + composed: None, + frame_dirty: true, + mask_dirty: true, + exit_at: None, + quit: false, + } + } + + fn run(&mut self, backend: &mut dyn Backend, sensors: Sensors) -> Result<()> { + self.exit_at = self + .options + .seconds + .map(|seconds| Instant::now() + Duration::from_secs(seconds)); + loop { + if self.quit { + break; + } + let now = Instant::now(); + if self.exit_at.is_some_and(|at| now >= at) { + break; + } + let deadline = now + Duration::from_millis(self.pump_ms()); + for event in backend.pump(deadline)? { + self.on_input(event, backend)?; + if self.quit { + break; + } + } + if self.quit { + break; + } + while let Some(event) = sensors.try_recv() { + self.on_sensor(event); + } + self.tick(backend)?; + // A release that never arrives (the compositor moved the pointer away mid-drag) must + // not leave the hamster carried forever. + if self.drag.is_some() && self.last_pointer.elapsed() > Duration::from_secs(30) { + eprintln!("warning: ending a drag that stopped reporting the pointer"); + self.end_drag(backend)?; + } + } + self.save_position(backend); + Ok(()) + } + + /// Polls a little faster than the clip's own rate so a new frame is shown promptly. + fn pump_ms(&self) -> u64 { + self.engine.frame_duration_ms().clamp(4.0, 16.0) as u64 + } + + fn tick(&mut self, backend: &mut dyn Backend) -> Result<()> { + // The backend knows where the surface really is (a window manager may have moved it); + // drags are computed from this position, so keep it in step. + self.position = backend.position(); + self.engine.update(SystemClock.now_ms()); + let transitions = self.engine.take_transitions(); + if self.options.trace { + print_transitions(&transitions); + } + + let window = backend.window_size(); + if window != self.compositor.window_size() { + self.compositor.set_window(window); + self.drawn = None; + } + + let (clip, index) = self.engine.visible(); + let changed = self + .composed + .as_ref() + .is_none_or(|(name, shown)| name != clip || *shown != index); + if changed { + let clip = clip.to_string(); + self.compose(&clip, index); + } + if self.mask_dirty { + self.apply_mask(backend)?; + } + if self.frame_dirty || backend.needs_redraw() { + if backend.present(self.compositor.argb())? { + self.frame_dirty = false; + self.drawn = self.composed.clone(); + } + } + Ok(()) + } + + /// Draws one frame of a clip into the canvas and refreshes the ARGB pixels. + fn compose(&mut self, clip: &str, index: u32) { + let frame = match self.store.get(clip, index) { + Ok(frame) => frame, + Err(err) => { + // A broken clip keeps the last good frame on screen instead of flashing empty. + eprintln!("warning: cannot load {clip} frame {index}: {err}"); + return; + } + }; + let rect = match self.manifest.clip(clip) { + Ok(clip) => clip.rect, + Err(err) => { + eprintln!("warning: {err}"); + return; + } + }; + self.compositor.clear(); + self.compositor.blit(&frame, rect); + self.compositor.flush(); + self.composed = Some((clip.to_string(), index)); + self.frame_dirty = true; + self.mask_dirty = true; + } + + /// While dragging the whole surface stays clickable, so the pointer cannot slip out of the + /// window and stop the drag. + fn apply_mask(&mut self, backend: &mut dyn Backend) -> Result<()> { + let rects = if self.drag.is_some() { + let (width, height) = self.compositor.window_size(); + vec![Rect { + x: 0, + y: 0, + width, + height, + }] + } else { + self.compositor.rects().to_vec() + }; + backend.set_input_rects(&rects)?; + self.mask_dirty = false; + Ok(()) + } + + fn on_input(&mut self, event: InputEvent, backend: &mut dyn Backend) -> Result<()> { + match event { + InputEvent::Press { x, y } => { + if !self.compositor.hit(x, y) { + return Ok(()); + } + self.drag = Some(Drag { grab: (x, y) }); + self.last_pointer = Instant::now(); + self.mask_dirty = true; + self.engine.on_event(Event::DragStart, SystemClock.now_ms()); + } + // Enter matters as much as motion: after the pointer slipped out of the surface (it can + // outrun the window for a frame) coming back re-aims the window at the pointer. + InputEvent::Motion { x, y } | InputEvent::Enter { x, y } => { + self.last_pointer = Instant::now(); + let Some(drag) = self.drag.as_ref() else { + return Ok(()); + }; + let wanted = ( + (f64::from(self.position.0) + x - drag.grab.0).round() as i32, + (f64::from(self.position.1) + y - drag.grab.1).round() as i32, + ); + if wanted == self.position { + return Ok(()); + } + // Dragging is not clamped: the pet may hang over a screen edge, and only a + // position that starts off every monitor is pulled back on screen. + backend.move_to(wanted.0, wanted.1)?; + self.position = wanted; + } + InputEvent::Leave => self.last_pointer = Instant::now(), + InputEvent::Release => { + if self.drag.is_some() { + self.end_drag(backend)?; + } + } + InputEvent::Quit => self.quit = true, + } + Ok(()) + } + + fn end_drag(&mut self, backend: &mut dyn Backend) -> Result<()> { + self.drag = None; + self.last_pointer = Instant::now(); + self.mask_dirty = true; + self.engine.on_event(Event::DragStop, SystemClock.now_ms()); + self.apply_mask(backend)?; + self.save_position(backend); + Ok(()) + } + + fn on_sensor(&mut self, event: SensorEvent) { + let now = SystemClock.now_ms(); + match event { + SensorEvent::Typing => self.engine.on_event(Event::TypingActivity, now), + SensorEvent::Music(playing) => self.engine.on_event(Event::MediaPlaying(playing), now), + SensorEvent::Screenshot => self.engine.on_event(Event::ScreenshotTaken, now), + } + } + + /// Remembers the pet's anchor point on screen, so the next run starts where this one ended. + fn save_position(&mut self, backend: &dyn Backend) { + if !backend.can_position() { + return; + } + let anchor = self.manifest.anchor; + let point = Point { + x: self.position.0 + PAD as i32 + anchor.x, + y: self.position.1 + PAD as i32 + anchor.y, + }; + if self.options.saved_config.position == Some(point) { + return; + } + self.options.saved_config.position = Some(point); + if let Some(path) = &self.options.config_path { + if let Err(err) = self.options.saved_config.save(path) { + eprintln!("warning: cannot save {}: {err}", path.display()); + } + } + } +} diff --git a/src/platform/wayland.rs b/src/platform/wayland.rs new file mode 100644 index 0000000..42ba1ea --- /dev/null +++ b/src/platform/wayland.rs @@ -0,0 +1,997 @@ +//! Wayland backend. On a compositor with `wlr-layer-shell` the pet lives on a top layer surface: +//! always above normal windows, absent from the taskbar, never focused, and positioned by the +//! client through margins. Everything is driven by our own frame loop: a drag only rewrites those +//! margins, so nothing can stall the animation while the hamster is carried. +//! +//! Without layer shell (GNOME, for example) the pet falls back to a plain xdg toplevel: the +//! compositor decides where it sits, and a drag hands the pointer to the compositor's own move. +//! +//! Pixels are premultiplied ARGB in a shared memory pool, so transparent pixels really are +//! transparent, and the pointer only sees the pet through a `wl_region` input mask. + +use std::fs::File; +use std::os::fd::{AsFd, AsRawFd, BorrowedFd, FromRawFd, RawFd}; +use std::time::{Duration, Instant}; + +use wayland_client::delegate_noop; +use wayland_client::protocol::{ + wl_buffer, wl_compositor, wl_output, wl_pointer, wl_region, wl_registry, wl_seat, wl_shm, + wl_shm_pool, wl_surface, +}; +use wayland_client::{Connection, Dispatch, EventQueue, Proxy, QueueHandle, WEnum}; +use wayland_protocols::xdg::shell::client::{xdg_surface, xdg_toplevel, xdg_wm_base}; +use wayland_protocols_wlr::layer_shell::v1::client::{zwlr_layer_shell_v1, zwlr_layer_surface_v1}; + +use super::{Backend, InputEvent, PAD}; +use crate::core::manifest::{Manifest, Rect}; +use crate::core::screen::{clamp_window_position, Monitor}; +use crate::core::Point; +use crate::{Config, Error, Result}; + +/// Gap between the pet and the corner of the screen on a first start. +const SPAWN_MARGIN: i32 = 24; +/// Shared memory buffers in flight: one on screen, one being drawn, one spare. +const SLOT_COUNT: usize = 3; +const BTN_LEFT: u32 = 0x110; +const BTN_RIGHT: u32 = 0x111; + +/// Per output user data, so events can be matched back to the output they came from. +#[derive(Debug, Clone, Copy)] +struct OutputIndex(usize); + +struct OutputInfo { + output: wl_output::WlOutput, + name: String, + /// Top left corner in the compositor's global coordinate space. + x: i32, + y: i32, + width: u32, + height: u32, + scale: u32, + has_mode: bool, +} + +impl OutputInfo { + fn logical_width(&self) -> u32 { + self.width / self.scale.max(1) + } + + fn logical_height(&self) -> u32 { + self.height / self.scale.max(1) + } + + fn contains(&self, x: i32, y: i32) -> bool { + x >= self.x + && x < self.x + self.logical_width() as i32 + && y >= self.y + && y < self.y + self.logical_height() as i32 + } + + fn monitor(&self) -> Monitor { + Monitor { + x: self.x, + y: self.y, + width: self.logical_width(), + height: self.logical_height(), + } + } +} + +/// A shared memory pool with a few buffers, so a frame can be drawn while another is on screen. +struct ShmPool { + pool: wl_shm_pool::WlShmPool, + slots: Vec, + /// Kept alive: the shared memory the buffers point at. + _file: File, + map: Mapping, + width: i32, + height: i32, +} + +struct Slot { + buffer: wl_buffer::WlBuffer, + offset: usize, + busy: bool, +} + +struct Mapping { + ptr: *mut u8, + len: usize, +} + +impl Mapping { + fn new(fd: RawFd, len: usize) -> Result { + // SAFETY: a shared anonymous mapping of `len` bytes the fd is long enough for. + let ptr = unsafe { + libc::mmap( + std::ptr::null_mut(), + len, + libc::PROT_READ | libc::PROT_WRITE, + libc::MAP_SHARED, + fd, + 0, + ) + }; + if ptr == libc::MAP_FAILED { + return Err(Error::Window(format!( + "cannot map {} bytes of shared memory: {}", + len, + std::io::Error::last_os_error() + ))); + } + Ok(Mapping { + ptr: ptr.cast(), + len, + }) + } + + fn as_mut_slice(&mut self) -> &mut [u8] { + // SAFETY: the mapping is owned here and `len` bytes are valid for its lifetime. + unsafe { std::slice::from_raw_parts_mut(self.ptr, self.len) } + } +} + +impl Drop for Mapping { + fn drop(&mut self) { + // SAFETY: unmapping exactly what `new` mapped. + unsafe { libc::munmap(self.ptr.cast(), self.len) }; + } +} + +impl ShmPool { + fn create( + shm: &wl_shm::WlShm, + qh: &QueueHandle, + width: i32, + height: i32, + ) -> Result { + let stride = width * 4; + let slot_len = (stride * height) as usize; + let total = slot_len * SLOT_COUNT; + let file = anonymous_file(total)?; + let mut map = Mapping::new(file.as_raw_fd(), total)?; + let pool = shm.create_pool(file.as_fd(), total as i32, qh, ()); + let mut slots = Vec::with_capacity(SLOT_COUNT); + for index in 0..SLOT_COUNT { + let offset = index * slot_len; + let buffer = pool.create_buffer( + offset as i32, + width, + height, + stride, + wl_shm::Format::Argb8888, + qh, + (), + ); + slots.push(Slot { + buffer, + offset, + busy: false, + }); + } + // Zero it once: a buffer with garbage would show up as colour noise if it ever raced ahead. + map.as_mut_slice().iter_mut().for_each(|byte| *byte = 0); + Ok(ShmPool { + pool, + slots, + _file: file, + map, + width, + height, + }) + } + + fn byte_len(&self) -> usize { + (self.width * 4 * self.height) as usize + } + + fn free_slot(&self) -> Option { + self.slots.iter().position(|slot| !slot.busy) + } + + fn write(&mut self, index: usize, pixels: &[u8]) -> Result<()> { + let offset = self.slots[index].offset; + let target = &mut self.map.as_mut_slice()[offset..offset + pixels.len()]; + target.copy_from_slice(pixels); + Ok(()) + } + + /// Hands out the buffer and marks it busy until the compositor releases it. + fn take(&mut self, index: usize) -> wl_buffer::WlBuffer { + self.slots[index].busy = true; + self.slots[index].buffer.clone() + } + + fn release(&mut self, buffer: &wl_buffer::WlBuffer) { + for slot in &mut self.slots { + if slot.buffer.id() == buffer.id() { + slot.busy = false; + } + } + } +} + +impl Drop for ShmPool { + fn drop(&mut self) { + for slot in &self.slots { + slot.buffer.destroy(); + } + self.pool.destroy(); + } +} + +/// A memfd, which is the usual way to share pixels with a Wayland compositor. +fn anonymous_file(len: usize) -> Result { + let name = std::ffi::CString::new("hamster-pet").expect("no interior nul"); + // SAFETY: a plain syscall with a valid name. + let fd = unsafe { libc::memfd_create(name.as_ptr(), libc::MFD_CLOEXEC) }; + if fd < 0 { + return Err(Error::Window(format!( + "cannot create shared memory: {}", + std::io::Error::last_os_error() + ))); + } + // SAFETY: `fd` is a fresh descriptor this process owns. + let file = unsafe { File::from_raw_fd(fd) }; + file.set_len(len as u64)?; + Ok(file) +} + +enum Role { + Layer { + layer: zwlr_layer_surface_v1::ZwlrLayerSurfaceV1, + }, + Toplevel { + /// Held so the role stays alive even though only the toplevel is talked to. + _surface: xdg_surface::XdgSurface, + toplevel: xdg_toplevel::XdgToplevel, + }, +} + +pub struct WaylandState { + queue_handle: QueueHandle, + compositor: Option, + shm: Option, + layer_shell: Option, + wm_base: Option, + seat: Option, + outputs: Vec>, + surface: Option, + role: Option, + configured: bool, + pool: Option, + events: Vec, + pointer: (f64, f64), + quit: bool, + scale: u32, + window: (u32, u32), + position: (i32, i32), + rects: Vec, + monitors: Vec, + chosen: usize, + /// Global origin of the output the surface is bound to: layer margins are measured from it. + origin: (i32, i32), +} + +pub struct WaylandBackend { + connection: Connection, + queue: EventQueue, + state: WaylandState, +} + +impl WaylandBackend { + pub fn new(config: &Config, manifest: &Manifest) -> Result { + let connection = Connection::connect_to_env().map_err(|err| { + Error::Window(format!("cannot connect to the Wayland display: {err}")) + })?; + let mut queue = connection.new_event_queue::(); + let queue_handle = queue.handle(); + let mut state = WaylandState::new(queue_handle); + connection.display().get_registry(&state.queue_handle, ()); + // Globals are bound while their own events are being dispatched, so the output modes and + // scales arrive over the next round trip or two. + for _ in 0..5 { + queue.roundtrip(&mut state).map_err(window_error)?; + if state.has_usable_output() { + break; + } + } + + state.validate()?; + state.choose_output(config)?; + state.create_surface(manifest)?; + // The first configure tells us the surface size the compositor agreed to. + for _ in 0..10 { + queue.roundtrip(&mut state).map_err(window_error)?; + if state.configured { + break; + } + } + if !state.configured { + return Err(Error::Window( + "the compositor never sent a configure event".to_string(), + )); + } + state.create_pool()?; + state.place(config, manifest)?; + + Ok(WaylandBackend { + connection, + queue, + state, + }) + } + + fn poll(&mut self, deadline: Instant) -> Result<()> { + let WaylandBackend { + connection, + queue, + state, + } = self; + loop { + queue.dispatch_pending(state).map_err(window_error)?; + if !state.events.is_empty() || state.quit || Instant::now() >= deadline { + return Ok(()); + } + // Wait for the socket, bounded by the frame deadline: the animation never waits on the + // compositor, it just sleeps until its next frame. + let Some(guard) = queue.prepare_read() else { + continue; + }; + let timeout = deadline.saturating_duration_since(Instant::now()); + if readable(guard.connection_fd(), timeout) { + guard.read().map_err(window_error)?; + } + connection.flush().map_err(window_error)?; + } + } +} + +impl WaylandState { + fn new(queue_handle: QueueHandle) -> WaylandState { + WaylandState { + queue_handle, + compositor: None, + shm: None, + layer_shell: None, + wm_base: None, + seat: None, + outputs: Vec::new(), + surface: None, + role: None, + configured: false, + pool: None, + events: Vec::new(), + pointer: (0.0, 0.0), + quit: false, + scale: 1, + window: (1, 1), + position: (0, 0), + rects: Vec::new(), + monitors: Vec::new(), + chosen: 0, + origin: (0, 0), + } + } + + fn validate(&self) -> Result<()> { + if self.compositor.is_none() { + return Err(Error::Window( + "the compositor offers no wl_compositor".to_string(), + )); + } + if self.shm.is_none() { + return Err(Error::Window("the compositor offers no wl_shm".to_string())); + } + if self.layer_shell.is_none() && self.wm_base.is_none() { + return Err(Error::Window( + "neither wlr-layer-shell nor xdg-shell is available".to_string(), + )); + } + Ok(()) + } + + fn has_usable_output(&self) -> bool { + self.outputs.iter().flatten().any(|output| output.has_mode) + } + + /// Picks the output the surface is bound to: the configured name, the one holding the saved + /// position, otherwise the largest. This output's origin is what turns global positions into + /// layer margins, so the pet starts with small margins whenever it can. + fn choose_output(&mut self, config: &Config) -> Result<()> { + let usable: Vec = (0..self.outputs.len()) + .filter(|index| { + self.outputs[*index] + .as_ref() + .is_some_and(|output| output.has_mode) + }) + .collect(); + let named = config.output.as_deref().and_then(|wanted| { + usable.iter().copied().find(|index| { + self.outputs[*index] + .as_ref() + .is_some_and(|output| output.name == wanted) + }) + }); + if let Some(wanted) = config.output.as_deref() { + if named.is_none() { + eprintln!( + "warning: output '{wanted}' is not connected ({}), picking by position", + self.output_names() + ); + } + } + let holding = config.position.and_then(|Point { x, y }| { + usable.iter().copied().find(|index| { + self.outputs[*index] + .as_ref() + .is_some_and(|output| output.contains(x, y)) + }) + }); + let largest = usable.iter().copied().max_by_key(|index| { + let output = self.outputs[*index].as_ref().expect("filtered for some"); + output.width * output.height + }); + self.chosen = named + .or(holding) + .or(largest) + .ok_or_else(|| Error::Window("no Wayland output with a mode".to_string()))?; + + let output = self.outputs[self.chosen].as_ref().expect("chosen above"); + self.scale = output.scale.max(1); + self.origin = (output.x, output.y); + // Every output, in the compositor's global coordinates, so a drag can clamp on all of them. + self.monitors = self + .outputs + .iter() + .flatten() + .filter(|output| output.has_mode) + .map(OutputInfo::monitor) + .collect(); + Ok(()) + } + + fn output_names(&self) -> String { + self.outputs + .iter() + .flatten() + .map(|output| { + format!( + "{} {}x{} at scale {}", + output.name, output.width, output.height, output.scale + ) + }) + .collect::>() + .join(", ") + } + + fn create_surface(&mut self, manifest: &Manifest) -> Result<()> { + let compositor = self + .compositor + .clone() + .ok_or_else(|| Error::Window("no wl_compositor".to_string()))?; + let surface = compositor.create_surface(&self.queue_handle, ()); + let (width, height) = ( + manifest.canvas.width + 2 * PAD, + manifest.canvas.height + 2 * PAD, + ); + self.window = (width, height); + surface.set_buffer_scale(self.scale as i32); + + if let Some(layer_shell) = self.layer_shell.clone() { + let output = self.outputs[self.chosen] + .as_ref() + .expect("chosen in choose_output") + .output + .clone(); + let layer = layer_shell.get_layer_surface( + &surface, + Some(&output), + zwlr_layer_shell_v1::Layer::Top, + "hamster-pet".to_string(), + &self.queue_handle, + (), + ); + layer.set_anchor( + zwlr_layer_surface_v1::Anchor::Top | zwlr_layer_surface_v1::Anchor::Left, + ); + layer.set_size(width, height); + layer.set_exclusive_zone(0); + layer.set_keyboard_interactivity(zwlr_layer_surface_v1::KeyboardInteractivity::None); + self.role = Some(Role::Layer { layer }); + } else if let Some(wm_base) = self.wm_base.clone() { + let xdg_surface = wm_base.get_xdg_surface(&surface, &self.queue_handle, ()); + let toplevel = xdg_surface.get_toplevel(&self.queue_handle, ()); + toplevel.set_title("Hamster Pet".to_string()); + toplevel.set_app_id("hamster-pet".to_string()); + toplevel.set_min_size(width as i32, height as i32); + toplevel.set_max_size(width as i32, height as i32); + xdg_surface.set_window_geometry(0, 0, width as i32, height as i32); + self.role = Some(Role::Toplevel { + _surface: xdg_surface, + toplevel, + }); + } + self.surface = Some(surface.clone()); + // Committing without a buffer asks the compositor for a configure event. + surface.commit(); + Ok(()) + } + + fn create_pool(&mut self) -> Result<()> { + let shm = self + .shm + .clone() + .ok_or_else(|| Error::Window("no wl_shm".to_string()))?; + let (width, height) = self.device_size(); + self.pool = Some(ShmPool::create( + &shm, + &self.queue_handle, + width as i32, + height as i32, + )?); + Ok(()) + } + + fn device_size(&self) -> (u32, u32) { + (self.window.0 * self.scale, self.window.1 * self.scale) + } + + /// First placement: the remembered anchor point, otherwise the bottom right corner of the + /// chosen output. Positions are global, so the margins get shifted by the output's origin. + fn place(&mut self, config: &Config, manifest: &Manifest) -> Result<()> { + let (width, height) = self.window; + let monitor = self + .monitors + .iter() + .find(|monitor| (monitor.x, monitor.y) == self.origin) + .or_else(|| self.monitors.first()) + .copied() + .unwrap_or(Monitor { + x: 0, + y: 0, + width, + height, + }); + let (x, y) = match config.position { + Some(Point { x, y }) => ( + x - manifest.anchor.x - PAD as i32, + y - manifest.anchor.y - PAD as i32, + ), + None => ( + monitor.x + monitor.width as i32 - width as i32 - SPAWN_MARGIN, + monitor.y + monitor.height as i32 - height as i32 - SPAWN_MARGIN, + ), + }; + let (x, y) = clamp_window_position(x, y, width, height, &self.monitors); + self.move_surface(x, y); + Ok(()) + } + + /// Rewrites the layer margins, which is all it takes to move a layer surface. Margins are + /// measured from the edges of the bound output, so global positions are shifted by its origin. + fn move_surface(&mut self, x: i32, y: i32) { + self.position = (x, y); + let (Some(surface), Some(Role::Layer { layer, .. })) = (&self.surface, &self.role) else { + return; + }; + layer.set_margin(y - self.origin.1, 0, 0, x - self.origin.0); + surface.commit(); + } + + fn present(&mut self, argb: &[u8]) -> Result { + let (device_width, device_height) = self.device_size(); + let expected = device_width as usize * device_height as usize * 4; + if argb.len() != expected { + return Err(Error::Window(format!( + "frame has {} bytes, the surface needs {expected}", + argb.len() + ))); + } + // A toplevel can be resized by the compositor, which means a new pool. + if self + .pool + .as_ref() + .is_none_or(|pool| pool.byte_len() != argb.len()) + { + self.create_pool()?; + } + let Some(pool) = self.pool.as_mut() else { + return Ok(false); + }; + let Some(index) = pool.free_slot() else { + // Every buffer is still with the compositor; the next tick retries. + return Ok(false); + }; + pool.write(index, argb)?; + let buffer = pool.take(index); + let Some(surface) = self.surface.clone() else { + return Ok(false); + }; + surface.attach(Some(&buffer), 0, 0); + surface.damage(0, 0, self.window.0 as i32, self.window.1 as i32); + surface.commit(); + Ok(true) + } + + fn set_input_rects(&mut self, rects: &[Rect]) -> Result<()> { + let (Some(compositor), Some(surface)) = (self.compositor.clone(), self.surface.clone()) + else { + return Ok(()); + }; + let region = compositor.create_region(&self.queue_handle, ()); + for rect in rects { + region.add(rect.x, rect.y, rect.width as i32, rect.height as i32); + } + surface.set_input_region(Some(®ion)); + region.destroy(); + // Region changes only take effect with the next commit. + surface.commit(); + Ok(()) + } +} + +impl Backend for WaylandBackend { + fn name(&self) -> &'static str { + match self.state.role { + Some(Role::Layer { .. }) => "wayland-layer-shell", + Some(Role::Toplevel { .. }) => "wayland-xdg", + None => "wayland", + } + } + + fn scale(&self) -> u32 { + self.state.scale + } + + fn window_size(&self) -> (u32, u32) { + self.state.window + } + + fn pump(&mut self, deadline: Instant) -> Result> { + self.poll(deadline)?; + self.connection.flush().map_err(window_error)?; + Ok(std::mem::take(&mut self.state.events)) + } + + fn present(&mut self, argb: &[u8]) -> Result { + let presented = self.state.present(argb)?; + self.connection.flush().map_err(window_error)?; + Ok(presented) + } + + fn set_input_rects(&mut self, rects: &[Rect]) -> Result<()> { + if rects == self.state.rects.as_slice() { + return Ok(()); + } + self.state.rects = rects.to_vec(); + self.state.set_input_rects(rects)?; + self.connection.flush().map_err(window_error)?; + Ok(()) + } + + fn move_to(&mut self, x: i32, y: i32) -> Result<()> { + if (x, y) == self.state.position { + return Ok(()); + } + self.state.move_surface(x, y); + self.connection.flush().map_err(window_error)?; + Ok(()) + } + + fn position(&self) -> (i32, i32) { + self.state.position + } + + fn needs_redraw(&mut self) -> bool { + // A Wayland surface keeps its buffer, so it never needs a repaint for its own sake. + false + } + + fn can_position(&self) -> bool { + matches!(self.state.role, Some(Role::Layer { .. })) + } +} + +/// `poll` on the Wayland socket; a timeout or an error simply means "no events yet". +fn readable(fd: BorrowedFd<'_>, timeout: Duration) -> bool { + let mut poll_fd = libc::pollfd { + fd: fd.as_raw_fd(), + events: libc::POLLIN, + revents: 0, + }; + let millis = timeout.as_millis().min(i32::MAX as u128) as i32; + // SAFETY: one initialized pollfd entry. + unsafe { libc::poll(&mut poll_fd, 1, millis) > 0 } +} + +impl Dispatch for WaylandState { + fn event( + state: &mut Self, + registry: &wl_registry::WlRegistry, + event: wl_registry::Event, + _: &(), + _: &Connection, + _: &QueueHandle, + ) { + let wl_registry::Event::Global { + name, + interface, + version, + } = event + else { + return; + }; + let queue_handle = state.queue_handle.clone(); + match interface.as_str() { + "wl_compositor" => { + state.compositor = Some(registry.bind(name, version.min(4), &queue_handle, ())); + } + "wl_shm" => state.shm = Some(registry.bind(name, 1, &queue_handle, ())), + "wl_seat" => state.seat = Some(registry.bind(name, version.min(7), &queue_handle, ())), + "wl_output" => { + let index = state.outputs.len(); + let output = registry.bind::( + name, + version.min(4), + &queue_handle, + OutputIndex(index), + ); + state.outputs.push(Some(OutputInfo { + output, + name: format!("output{index}"), + x: 0, + y: 0, + width: 0, + height: 0, + scale: 1, + has_mode: false, + })); + } + "zwlr_layer_shell_v1" => { + state.layer_shell = Some(registry.bind(name, version.min(4), &queue_handle, ())); + } + "xdg_wm_base" => { + state.wm_base = Some(registry.bind(name, version.min(2), &queue_handle, ())); + } + _ => {} + } + } +} + +impl Dispatch for WaylandState { + fn event( + state: &mut Self, + output: &wl_output::WlOutput, + event: wl_output::Event, + data: &OutputIndex, + _: &Connection, + _: &QueueHandle, + ) { + let _ = output; + let Some(Some(info)) = state.outputs.get_mut(data.0) else { + return; + }; + match event { + wl_output::Event::Name { name } => info.name = name, + wl_output::Event::Geometry { x, y, .. } => { + info.x = x; + info.y = y; + } + wl_output::Event::Mode { + width, + height, + flags, + .. + } => { + if matches!(flags, WEnum::Value(flags) if flags.contains(wl_output::Mode::Current)) + { + info.width = width as u32; + info.height = height as u32; + info.has_mode = true; + } + } + wl_output::Event::Scale { factor } => info.scale = factor.max(1) as u32, + _ => {} + } + } +} + +impl Dispatch for WaylandState { + fn event( + state: &mut Self, + seat: &wl_seat::WlSeat, + event: wl_seat::Event, + _: &(), + _: &Connection, + _: &QueueHandle, + ) { + let wl_seat::Event::Capabilities { + capabilities: WEnum::Value(capabilities), + } = event + else { + return; + }; + if capabilities.contains(wl_seat::Capability::Pointer) { + let queue_handle = state.queue_handle.clone(); + seat.get_pointer(&queue_handle, ()); + } + } +} + +impl Dispatch for WaylandState { + fn event( + state: &mut Self, + _: &wl_pointer::WlPointer, + event: wl_pointer::Event, + _: &(), + _: &Connection, + _: &QueueHandle, + ) { + match event { + wl_pointer::Event::Enter { + surface_x, + surface_y, + .. + } => { + state.pointer = (surface_x, surface_y); + state.events.push(InputEvent::Enter { + x: surface_x, + y: surface_y, + }); + } + wl_pointer::Event::Motion { + surface_x, + surface_y, + .. + } => { + state.pointer = (surface_x, surface_y); + state.events.push(InputEvent::Motion { + x: surface_x, + y: surface_y, + }); + } + wl_pointer::Event::Leave { .. } => state.events.push(InputEvent::Leave), + wl_pointer::Event::Button { + serial, + button, + state: button_state, + .. + } => { + if button != BTN_LEFT && button != BTN_RIGHT { + return; + } + let pressed = + matches!(button_state, WEnum::Value(wl_pointer::ButtonState::Pressed)); + if !pressed { + state.events.push(InputEvent::Release); + return; + } + if button == BTN_RIGHT { + state.events.push(InputEvent::Quit); + return; + } + // Without a grab the compositor moves the window during a drag; layer surfaces + // are moved by our own margins instead. + if let (Some(Role::Toplevel { toplevel, .. }), Some(seat)) = + (&state.role, &state.seat) + { + toplevel._move(seat, serial); + } + state.events.push(InputEvent::Press { + x: state.pointer.0, + y: state.pointer.1, + }); + } + _ => {} + } + } +} + +impl Dispatch for WaylandState { + fn event( + state: &mut Self, + buffer: &wl_buffer::WlBuffer, + event: wl_buffer::Event, + _: &(), + _: &Connection, + _: &QueueHandle, + ) { + if let wl_buffer::Event::Release = event { + if let Some(pool) = state.pool.as_mut() { + pool.release(buffer); + } + } + } +} + +impl Dispatch for WaylandState { + fn event( + state: &mut Self, + layer: &zwlr_layer_surface_v1::ZwlrLayerSurfaceV1, + event: zwlr_layer_surface_v1::Event, + _: &(), + _: &Connection, + _: &QueueHandle, + ) { + match event { + zwlr_layer_surface_v1::Event::Configure { + serial, + width, + height, + } => { + layer.ack_configure(serial); + if width > 0 && height > 0 { + state.window = (width, height); + } + state.configured = true; + } + zwlr_layer_surface_v1::Event::Closed => state.quit = true, + _ => {} + } + } +} + +impl Dispatch for WaylandState { + fn event( + _: &mut Self, + wm_base: &xdg_wm_base::XdgWmBase, + event: xdg_wm_base::Event, + _: &(), + _: &Connection, + _: &QueueHandle, + ) { + if let xdg_wm_base::Event::Ping { serial } = event { + wm_base.pong(serial); + } + } +} + +impl Dispatch for WaylandState { + fn event( + state: &mut Self, + surface: &xdg_surface::XdgSurface, + event: xdg_surface::Event, + _: &(), + _: &Connection, + _: &QueueHandle, + ) { + if let xdg_surface::Event::Configure { serial } = event { + surface.ack_configure(serial); + state.configured = true; + } + } +} + +impl Dispatch for WaylandState { + fn event( + state: &mut Self, + _: &xdg_toplevel::XdgToplevel, + event: xdg_toplevel::Event, + _: &(), + _: &Connection, + _: &QueueHandle, + ) { + match event { + xdg_toplevel::Event::Configure { width, height, .. } => { + // The compositor decides the size for a toplevel; it usually agrees with ours. + if width > 0 && height > 0 { + state.window = (width as u32, height as u32); + } + } + xdg_toplevel::Event::Close => state.quit = true, + _ => {} + } + } +} + +delegate_noop!(WaylandState: ignore wl_compositor::WlCompositor); +delegate_noop!(WaylandState: ignore wl_shm::WlShm); +delegate_noop!(WaylandState: ignore wl_shm_pool::WlShmPool); +delegate_noop!(WaylandState: ignore wl_region::WlRegion); +delegate_noop!(WaylandState: ignore wl_surface::WlSurface); +delegate_noop!(WaylandState: ignore zwlr_layer_shell_v1::ZwlrLayerShellV1); + +fn window_error(err: impl std::fmt::Display) -> Error { + Error::Window(err.to_string()) +} diff --git a/src/platform/windows.rs b/src/platform/windows.rs new file mode 100644 index 0000000..e62d1d8 --- /dev/null +++ b/src/platform/windows.rs @@ -0,0 +1,527 @@ +//! Windows backend: a layered popup with per pixel alpha. `UpdateLayeredWindow` takes the +//! premultiplied BGRA frame, and a layered window hit tests its own alpha, so transparent pixels +//! let clicks through to whatever is below. A drag holds the mouse capture instead of running a +//! move loop, so pointer motion keeps arriving and the frame loop keeps ticking while the pet is +//! carried. +//! +//! The window procedure never touches the backend: it drops input into a thread local queue that +//! `pump` drains, so a message dispatched from inside `present` or `move_to` cannot alias it. + +use std::cell::{Cell, RefCell}; +use std::ffi::c_void; +use std::mem::size_of; +use std::ptr; +use std::sync::OnceLock; +use std::time::{Duration, Instant}; + +use windows::core::{w, BOOL, PCWSTR}; +use windows::Win32::Foundation::{ + COLORREF, HINSTANCE, HWND, LPARAM, LRESULT, POINT, RECT, SIZE, WPARAM, +}; +use windows::Win32::Graphics::Gdi::ScreenToClient; +use windows::Win32::Graphics::Gdi::{ + CreateCompatibleDC, CreateDIBSection, DeleteDC, DeleteObject, EnumDisplayMonitors, + GetMonitorInfoW, SelectObject, ValidateRect, AC_SRC_ALPHA, AC_SRC_OVER, BITMAPINFO, + BITMAPINFOHEADER, BI_RGB, BLENDFUNCTION, DIB_RGB_COLORS, HDC, HGDIOBJ, HMONITOR, MONITORINFO, +}; +use windows::Win32::System::LibraryLoader::GetModuleHandleW; +use windows::Win32::UI::HiDpi::{ + GetDpiForWindow, SetProcessDpiAwarenessContext, DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2, +}; +use windows::Win32::UI::Input::KeyboardAndMouse::{ReleaseCapture, SetCapture}; +use windows::Win32::UI::WindowsAndMessaging::{ + CreateWindowExW, DefWindowProcW, DestroyWindow, DispatchMessageW, GetCursorPos, GetWindowRect, + LoadCursorW, MsgWaitForMultipleObjects, PeekMessageW, RegisterClassW, SetWindowPos, ShowWindow, + TranslateMessage, UpdateLayeredWindow, IDC_ARROW, MONITORINFOF_PRIMARY, MSG, PM_REMOVE, + QS_ALLINPUT, SWP_NOACTIVATE, SWP_NOSIZE, SWP_NOZORDER, SW_SHOWNOACTIVATE, ULW_ALPHA, + WM_DESTROY, WM_DISPLAYCHANGE, WM_LBUTTONDOWN, WM_LBUTTONUP, WM_MOUSEMOVE, WM_PAINT, + WM_RBUTTONUP, WNDCLASSW, WS_EX_LAYERED, WS_EX_NOACTIVATE, WS_EX_TOOLWINDOW, WS_EX_TOPMOST, + WS_POPUP, +}; + +use super::{Backend, InputEvent, PAD}; +use crate::core::manifest::{Manifest, Rect}; +use crate::core::screen::{clamp_window_position, Monitor}; +use crate::core::Point; +use crate::{Config, Error, Result}; + +/// Gap between the pet and the corner of the screen on a first start. +const SPAWN_MARGIN: i32 = 24; +/// Windows scales the desktop by at least 100%, and a bigger factor than this is not a real setup. +const MAX_SCALE: u32 = 4; +const CLASS_NAME: PCWSTR = w!("HamsterPetWindow"); + +thread_local! { + /// Input collected by the window procedure, drained once per `pump`. + static EVENTS: RefCell> = const { RefCell::new(Vec::new()) }; + /// Set when Windows wants the frame again: an expose or a display change. + static REDRAW: Cell = const { Cell::new(true) }; + /// Device pixels per logical pixel of this thread's window, for the window procedure. + static SCALE: Cell = const { Cell::new(1) }; +} + +pub struct WindowsBackend { + window: HWND, + scale: u32, + /// Logical surface size; the physical window is `scale` times this. + size: (u32, u32), + /// Logical top left position, in the same space the drag arithmetic works in. + position: (i32, i32), + bitmap: Option, + quit: bool, +} + +impl WindowsBackend { + pub fn new(config: &Config, manifest: &Manifest) -> Result { + // Per monitor awareness keeps Windows from scaling a window the pet draws itself. + // SAFETY: called before any window of this process exists. + unsafe { + let _ = SetProcessDpiAwarenessContext(DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2); + } + register_class()?; + + let size = ( + manifest.canvas.width + 2 * PAD, + manifest.canvas.height + 2 * PAD, + ); + let monitors = read_monitors(); + // The first placement only has to land on the right monitor: its DPI gives the real scale. + let (x, y) = initial_position(config, manifest, size, &monitors, 1); + let instance = unsafe { GetModuleHandleW(None) }.map_err(window_error)?; + // SAFETY: the class is registered and every argument is a plain value. + let window = unsafe { + CreateWindowExW( + WS_EX_LAYERED | WS_EX_TOOLWINDOW | WS_EX_NOACTIVATE | WS_EX_TOPMOST, + CLASS_NAME, + w!("Hamster Pet"), + WS_POPUP, + x, + y, + size.0 as i32, + size.1 as i32, + None, + None, + Some(HINSTANCE(instance.0)), + None, + ) + } + .map_err(window_error)?; + + let scale = scale_of(window); + SCALE.with(|cell| cell.set(scale)); + let (x, y) = initial_position(config, manifest, size, &monitors, scale); + // SAFETY: a window created above, sized and placed once before it is shown. + unsafe { + SetWindowPos( + window, + None, + x * scale as i32, + y * scale as i32, + (size.0 * scale) as i32, + (size.1 * scale) as i32, + SWP_NOACTIVATE | SWP_NOZORDER, + ) + .map_err(window_error)?; + let _ = ShowWindow(window, SW_SHOWNOACTIVATE); + } + + Ok(WindowsBackend { + window, + scale, + size, + position: (x, y), + bitmap: None, + quit: false, + }) + } + + /// Reads whatever the window procedure queued and dispatches it. + fn drain(&mut self, input: &mut Vec) { + let mut message = MSG::default(); + // SAFETY: a peek loop on this thread's message queue. + while unsafe { PeekMessageW(&mut message, None, 0, 0, PM_REMOVE) }.as_bool() { + unsafe { + let _ = TranslateMessage(&message); + DispatchMessageW(&message); + } + } + EVENTS.with(|events| input.append(&mut events.borrow_mut())); + if input.iter().any(|event| matches!(event, InputEvent::Quit)) { + self.quit = true; + } + } +} + +impl Backend for WindowsBackend { + fn name(&self) -> &'static str { + "windows" + } + + fn scale(&self) -> u32 { + self.scale + } + + fn window_size(&self) -> (u32, u32) { + self.size + } + + fn pump(&mut self, deadline: Instant) -> Result> { + let mut input = Vec::new(); + loop { + self.drain(&mut input); + if !input.is_empty() || self.quit { + return Ok(input); + } + let now = Instant::now(); + if now >= deadline { + return Ok(input); + } + let wait = (deadline - now).min(Duration::from_millis(16)); + // SAFETY: waiting on this thread's message queue with no handles. + unsafe { + MsgWaitForMultipleObjects(None, false, wait.as_millis() as u32, QS_ALLINPUT); + } + } + } + + fn present(&mut self, argb: &[u8]) -> Result { + let device = (self.size.0 * self.scale, self.size.1 * self.scale); + let expected = (device.0 as usize) * (device.1 as usize) * 4; + if argb.len() != expected { + return Err(Error::Window(format!( + "frame has {} bytes, the window needs {expected}", + argb.len() + ))); + } + if self.bitmap.as_ref().map(|bitmap| bitmap.size) != Some(device) { + self.bitmap = Some(Bitmap::new(device.0, device.1)?); + } + let bitmap = self.bitmap.as_mut().expect("a bitmap was just created"); + bitmap.copy(argb); + + let blend = BLENDFUNCTION { + BlendOp: AC_SRC_OVER as u8, + BlendFlags: 0, + SourceConstantAlpha: 255, + AlphaFormat: AC_SRC_ALPHA as u8, + }; + let destination = POINT { + x: self.position.0 * self.scale as i32, + y: self.position.1 * self.scale as i32, + }; + let window_size = SIZE { + cx: device.0 as i32, + cy: device.1 as i32, + }; + let source = POINT { x: 0, y: 0 }; + // SAFETY: the bitmap is an ARGB DIB of exactly `device` pixels, selected into its memory DC. + unsafe { + UpdateLayeredWindow( + self.window, + None, + Some(&destination), + Some(&window_size), + Some(bitmap.dc), + Some(&source), + COLORREF(0), + Some(&blend), + ULW_ALPHA, + ) + .map_err(window_error)?; + } + Ok(true) + } + + /// A layered window already hit tests its alpha, so a transparent pixel lets the click through + /// without an input region; the mouse capture keeps the pointer reporting during a drag. + fn set_input_rects(&mut self, _rects: &[Rect]) -> Result<()> { + Ok(()) + } + + fn move_to(&mut self, x: i32, y: i32) -> Result<()> { + if (x, y) == self.position { + return Ok(()); + } + let scale = self.scale as i32; + // SAFETY: moving this backend's own window, without touching its size or z-order. + unsafe { + SetWindowPos( + self.window, + None, + x * scale, + y * scale, + 0, + 0, + SWP_NOSIZE | SWP_NOZORDER | SWP_NOACTIVATE, + ) + .map_err(window_error)?; + } + self.position = (x, y); + Ok(()) + } + + fn position(&self) -> (i32, i32) { + // Reading it back catches a display change that moved the window; a failure keeps the last + // known spot rather than snapping the pet to the origin. + let mut rect = RECT::default(); + if unsafe { GetWindowRect(self.window, &mut rect) }.is_err() { + return self.position; + } + let scale = f64::from(self.scale); + ( + (f64::from(rect.left) / scale).round() as i32, + (f64::from(rect.top) / scale).round() as i32, + ) + } + + fn needs_redraw(&mut self) -> bool { + REDRAW.with(|flag| flag.replace(false)) + } +} + +impl Drop for WindowsBackend { + fn drop(&mut self) { + self.bitmap = None; + // SAFETY: the window was created for this backend and is destroyed once. + unsafe { + let _ = DestroyWindow(self.window); + } + } +} + +/// A 32 bit top down DIB with an alpha channel, which is the layout `UpdateLayeredWindow` wants and +/// the one the compositor already produces. +struct Bitmap { + dc: HDC, + handle: HGDIOBJ, + bits: *mut u8, + size: (u32, u32), +} + +impl Bitmap { + fn new(width: u32, height: u32) -> Result { + let info = BITMAPINFO { + bmiHeader: BITMAPINFOHEADER { + biSize: size_of::() as u32, + biWidth: width as i32, + // A negative height makes the rows run top to bottom, like the compositor's buffer. + biHeight: -(height as i32), + biPlanes: 1, + biBitCount: 32, + biCompression: BI_RGB.0, + ..Default::default() + }, + ..Default::default() + }; + // SAFETY: a plain DIB section and a memory context; both handles are cleaned up in drop. + unsafe { + let dc = CreateCompatibleDC(None); + if dc.is_invalid() { + return Err(Error::Window( + "cannot create a memory device context".to_string(), + )); + } + let mut bits: *mut c_void = ptr::null_mut(); + let handle = match CreateDIBSection(None, &info, DIB_RGB_COLORS, &mut bits, None, 0) { + Ok(handle) => handle, + Err(err) => { + let _ = DeleteDC(dc); + return Err(window_error(err)); + } + }; + SelectObject(dc, HGDIOBJ(handle.0)); + Ok(Bitmap { + dc, + handle: HGDIOBJ(handle.0), + bits: bits.cast(), + size: (width, height), + }) + } + } + + fn copy(&mut self, pixels: &[u8]) { + let length = (self.size.0 * self.size.1 * 4) as usize; + debug_assert_eq!(pixels.len(), length); + // SAFETY: the DIB section owns a buffer of exactly this length. + unsafe { ptr::copy_nonoverlapping(pixels.as_ptr(), self.bits, length) }; + } +} + +impl Drop for Bitmap { + fn drop(&mut self) { + // SAFETY: the device context is released before the bitmap it holds. + unsafe { + let _ = DeleteDC(self.dc); + let _ = DeleteObject(self.handle); + } + } +} + +/// Registers the window class once per process; the class lives as long as the process does. +fn register_class() -> Result<()> { + static CLASS: OnceLock> = OnceLock::new(); + let registered = CLASS.get_or_init(|| { + let instance = unsafe { GetModuleHandleW(None) }.map_err(|err| err.to_string())?; + let class = WNDCLASSW { + lpfnWndProc: Some(wndproc), + hInstance: HINSTANCE(instance.0), + hCursor: unsafe { LoadCursorW(None, IDC_ARROW) }.unwrap_or_default(), + lpszClassName: CLASS_NAME, + ..Default::default() + }; + // SAFETY: the class is a plain value with a static class name. + let atom = unsafe { RegisterClassW(&class) }; + if atom == 0 { + return Err("RegisterClassW refused the window class".to_string()); + } + Ok(()) + }); + registered + .as_ref() + .map(|_| ()) + .map_err(|reason| Error::Window(format!("cannot register the pet window: {reason}"))) +} + +fn scale_of(window: HWND) -> u32 { + // SAFETY: a window created by this backend. + let dpi = unsafe { GetDpiForWindow(window) }; + ((f64::from(dpi) / 96.0).round() as u32).clamp(1, MAX_SCALE) +} + +/// The saved spot, otherwise the bottom right corner of the primary monitor. Positions are logical, +/// the monitor list is in device pixels, so both are brought into the same space here. +fn initial_position( + config: &Config, + manifest: &Manifest, + size: (u32, u32), + monitors: &[Monitor], + scale: u32, +) -> (i32, i32) { + let scale = scale as i32; + let monitors: Vec = monitors + .iter() + .map(|monitor| Monitor { + x: monitor.x / scale, + y: monitor.y / scale, + width: monitor.width / scale as u32, + height: monitor.height / scale as u32, + }) + .collect(); + let (x, y) = match config.position { + Some(Point { x, y }) => ( + x - manifest.anchor.x - PAD as i32, + y - manifest.anchor.y - PAD as i32, + ), + None => match monitors.first() { + Some(monitor) => ( + monitor.x + monitor.width as i32 - size.0 as i32 - SPAWN_MARGIN, + monitor.y + monitor.height as i32 - size.1 as i32 - SPAWN_MARGIN, + ), + None => (0, 0), + }, + }; + clamp_window_position(x, y, size.0, size.1, &monitors) +} + +/// Every monitor, primary first, so a first start lands on the main screen. +fn read_monitors() -> Vec { + let mut found: Vec<(bool, Monitor)> = Vec::new(); + // SAFETY: the callback appends to the vector whose pointer travels in `data`. + unsafe { + let _ = EnumDisplayMonitors( + None, + None, + Some(collect_monitor), + LPARAM(&mut found as *mut Vec<(bool, Monitor)> as isize), + ); + } + found.sort_by_key(|(primary, _)| !*primary); + found.into_iter().map(|(_, monitor)| monitor).collect() +} + +unsafe extern "system" fn collect_monitor( + monitor: HMONITOR, + _dc: HDC, + _rect: *mut RECT, + data: LPARAM, +) -> BOOL { + let found = unsafe { &mut *(data.0 as *mut Vec<(bool, Monitor)>) }; + let mut info = MONITORINFO { + cbSize: size_of::() as u32, + ..Default::default() + }; + // SAFETY: the handle comes from the enumeration and the struct is sized above. + if unsafe { GetMonitorInfoW(monitor, &mut info) }.as_bool() { + let rect = info.rcMonitor; + found.push(( + info.dwFlags & MONITORINFOF_PRIMARY != 0, + Monitor { + x: rect.left, + y: rect.top, + width: (rect.right - rect.left) as u32, + height: (rect.bottom - rect.top) as u32, + }, + )); + } + BOOL(1) +} + +/// The pointer position in surface coordinates. It is read from the system rather than from the +/// message, so a message that arrives after the window already moved still reports where the +/// pointer is now: that is what keeps a dragged window under the pointer. +fn live_point(window: HWND) -> Option<(f64, f64)> { + let mut point = POINT::default(); + // SAFETY: reading the cursor and converting it into this window's space. + unsafe { + GetCursorPos(&mut point).ok()?; + let _ = ScreenToClient(window, &mut point); + } + let scale = f64::from(SCALE.with(Cell::get)); + Some((f64::from(point.x) / scale, f64::from(point.y) / scale)) +} + +fn push(event: InputEvent) { + EVENTS.with(|events| events.borrow_mut().push(event)); +} + +unsafe extern "system" fn wndproc( + window: HWND, + message: u32, + wparam: WPARAM, + lparam: LPARAM, +) -> LRESULT { + match message { + WM_LBUTTONDOWN => { + // SAFETY: capturing the mouse for this backend's own window. + unsafe { SetCapture(window) }; + if let Some((x, y)) = live_point(window) { + push(InputEvent::Press { x, y }); + } + } + WM_MOUSEMOVE => { + if let Some((x, y)) = live_point(window) { + push(InputEvent::Motion { x, y }); + } + } + WM_LBUTTONUP => { + // SAFETY: releasing the capture taken on press. + let _ = unsafe { ReleaseCapture() }; + push(InputEvent::Release); + } + WM_RBUTTONUP => push(InputEvent::Quit), + WM_PAINT => { + REDRAW.with(|flag| flag.set(true)); + // SAFETY: validating this window's update region. + let _ = unsafe { ValidateRect(Some(window), None) }; + } + WM_DISPLAYCHANGE => REDRAW.with(|flag| flag.set(true)), + WM_DESTROY => push(InputEvent::Quit), + _ => {} + } + // SAFETY: every message has to be passed on. + unsafe { DefWindowProcW(window, message, wparam, lparam) } +} + +fn window_error(err: impl std::fmt::Display) -> Error { + Error::Window(err.to_string()) +} diff --git a/src/platform/x11.rs b/src/platform/x11.rs new file mode 100644 index 0000000..e9fbfac --- /dev/null +++ b/src/platform/x11.rs @@ -0,0 +1,602 @@ +//! X11 backend. The window is a 32 bit ARGB dock: the window manager keeps it above normal +//! windows, out of the taskbar and out of the focus chain, which is what a desktop pet wants. +//! Transparent pixels are cut out of the input shape so clicks reach whatever is below, and a +//! drag grabs the pointer instead of running a move loop, so the frame loop keeps ticking while +//! the hamster is carried. +//! +//! Where X11 cannot deliver transparency (no ARGB visual, or no compositor) the same mask is +//! applied as a bounding shape: the pet is hard edged rather than a black rectangle. + +use std::time::{Duration, Instant}; + +use x11rb::connection::Connection; +use x11rb::protocol::randr::{self, NotifyMask}; +use x11rb::protocol::shape::{self, SK, SO}; +use x11rb::protocol::xproto::{ + AtomEnum, ClipOrdering, ColormapAlloc, ConfigureWindowAux, ConnectionExt, CreateGCAux, + CreateWindowAux, EventMask, Gcontext, GrabMode, ImageFormat, PropMode, Rectangle, + Window as X11Window, WindowClass, +}; +use x11rb::protocol::Event; +use x11rb::rust_connection::RustConnection; +use x11rb::wrapper::ConnectionExt as WrapperExt; +use x11rb::{CURRENT_TIME, NONE}; + +use super::{Backend, InputEvent, PAD}; +use crate::core::manifest::{Manifest, Rect}; +use crate::core::screen::{clamp_window_position, Monitor}; +use crate::core::Point; +use crate::{Config, Error, Result}; + +/// Gap between the pet and the corner of the screen on a first start. +const SPAWN_MARGIN: i32 = 24; +/// Nothing pending means the pet is idle; polling this often keeps input latency invisible. +const IDLE_SLEEP_MS: u64 = 2; +const BUTTON_LEFT: u8 = 1; +const BUTTON_RIGHT: u8 = 3; + +struct Atoms { + window_type: u32, + window_type_dock: u32, + state: u32, + state_above: u32, + state_skip_taskbar: u32, + state_skip_pager: u32, + state_sticky: u32, + net_wm_name: u32, + utf8_string: u32, + net_wm_cm: u32, + wm_protocols: u32, + wm_delete_window: u32, + size_hints: u32, + net_wm_pid: u32, +} + +impl Atoms { + fn intern(connection: &RustConnection, screen: usize) -> Result { + let intern = |name: &str| -> Result { + Ok(connection + .intern_atom(false, name.as_bytes()) + .map_err(window_error)? + .reply() + .map_err(window_error)? + .atom) + }; + Ok(Atoms { + window_type: intern("_NET_WM_WINDOW_TYPE")?, + window_type_dock: intern("_NET_WM_WINDOW_TYPE_DOCK")?, + state: intern("_NET_WM_STATE")?, + state_above: intern("_NET_WM_STATE_ABOVE")?, + state_skip_taskbar: intern("_NET_WM_STATE_SKIP_TASKBAR")?, + state_skip_pager: intern("_NET_WM_STATE_SKIP_PAGER")?, + state_sticky: intern("_NET_WM_STATE_STICKY")?, + net_wm_name: intern("_NET_WM_NAME")?, + utf8_string: intern("UTF8_STRING")?, + net_wm_cm: intern(&format!("_NET_WM_CM_S{screen}"))?, + wm_protocols: intern("WM_PROTOCOLS")?, + wm_delete_window: intern("WM_DELETE_WINDOW")?, + size_hints: intern("WM_SIZE_HINTS")?, + net_wm_pid: intern("_NET_WM_PID")?, + }) + } +} + +pub struct X11Backend { + connection: RustConnection, + root: X11Window, + window: X11Window, + gc: Gcontext, + atoms: Atoms, + depth: u8, + /// False when transparency cannot work, which is when the bounding shape has to. + argb: bool, + size: (u32, u32), + position: (i32, i32), + monitors: Vec, + /// Frame pixels with the alpha divided out, reused by the shape masked fallback. + straight: Vec, + rects: Vec, + redraw: bool, + quit: bool, +} + +impl X11Backend { + pub fn new(config: &Config, manifest: &Manifest) -> Result { + let (connection, screen_number) = RustConnection::connect(None) + .map_err(|err| Error::Window(format!("cannot open the X display: {err}")))?; + let screen = connection + .setup() + .roots + .get(screen_number) + .ok_or_else(|| Error::Window("the X display has no screen".to_string()))? + .clone(); + + let argb_visual = screen + .allowed_depths + .iter() + .find(|depth| depth.depth == 32) + .and_then(|depth| depth.visuals.first()) + .map(|visual| visual.visual_id); + let atoms = Atoms::intern(&connection, screen_number)?; + let composited = connection + .get_selection_owner(atoms.net_wm_cm) + .map_err(window_error)? + .reply() + .map_err(window_error)? + .owner + != NONE; + if !composited { + eprintln!( + "warning: no compositor found on this X display; the pet falls back to a hard edged mask" + ); + } + // Depth and visual have to match or the server rejects the window. Without a compositor + // an alpha visual cannot be seen, so the root visual is the only usable one. + let (depth, visual_id, colormap) = match argb_visual.filter(|_| composited) { + Some(visual) => { + let colormap = connection.generate_id().map_err(window_error)?; + connection + .create_colormap(ColormapAlloc::NONE, colormap, screen.root, visual) + .map_err(window_error)?; + (32, visual, colormap) + } + None => ( + screen.root_depth, + screen.root_visual, + screen.default_colormap, + ), + }; + let argb = depth == 32; + + let (width, height) = ( + manifest.canvas.width + 2 * PAD, + manifest.canvas.height + 2 * PAD, + ); + let monitors = Self::read_monitors(&connection, screen.root); + let (x, y) = Self::initial_position(config, manifest, width, height, &monitors); + + let window = connection.generate_id().map_err(window_error)?; + connection + .create_window( + depth, + window, + screen.root, + x as i16, + y as i16, + width as u16, + height as u16, + 0, + WindowClass::INPUT_OUTPUT, + visual_id, + &CreateWindowAux::new() + .background_pixel(0) + .border_pixel(0) + .colormap(colormap) + .event_mask( + EventMask::EXPOSURE + | EventMask::BUTTON_PRESS + | EventMask::BUTTON_RELEASE + | EventMask::POINTER_MOTION + | EventMask::ENTER_WINDOW + | EventMask::LEAVE_WINDOW + | EventMask::STRUCTURE_NOTIFY, + ), + ) + .map_err(window_error)? + // A void request hides a rejected window, which would leave the pet invisible. + .check() + .map_err(|err| window_error(format!("cannot create the pet window: {err}")))?; + + let gc = connection.generate_id().map_err(window_error)?; + connection + .create_gc(gc, window, &CreateGCAux::new()) + .map_err(window_error)?; + + // Dock type plus the state list: above normal windows, absent from the taskbar and pager. + connection + .change_property32( + PropMode::REPLACE, + window, + atoms.window_type, + AtomEnum::ATOM, + &[atoms.window_type_dock], + ) + .map_err(window_error)?; + connection + .change_property32( + PropMode::REPLACE, + window, + atoms.state, + AtomEnum::ATOM, + &[ + atoms.state_above, + atoms.state_skip_taskbar, + atoms.state_skip_pager, + atoms.state_sticky, + ], + ) + .map_err(window_error)?; + connection + .change_property8( + PropMode::REPLACE, + window, + AtomEnum::WM_CLASS, + AtomEnum::STRING, + b"hamster-pet\0HamsterPet\0", + ) + .map_err(window_error)?; + connection + .change_property8( + PropMode::REPLACE, + window, + atoms.net_wm_name, + atoms.utf8_string, + b"Hamster Pet", + ) + .map_err(window_error)?; + connection + .change_property32( + PropMode::REPLACE, + window, + atoms.wm_protocols, + AtomEnum::ATOM, + &[atoms.wm_delete_window], + ) + .map_err(window_error)?; + // ICCCM hints: without USPosition a window manager is free to place the window wherever + // it likes, which would ignore both the remembered spot and the bottom right corner. + const US_POSITION: u32 = 1 << 0; + const US_SIZE: u32 = 1 << 1; + const P_MIN_SIZE: u32 = 1 << 4; + const P_MAX_SIZE: u32 = 1 << 5; + let hints: [u32; 16] = [ + US_POSITION | US_SIZE | P_MIN_SIZE | P_MAX_SIZE, + x as u32, + y as u32, + width, + height, + width, + height, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ]; + connection + .change_property32( + PropMode::REPLACE, + window, + AtomEnum::WM_NORMAL_HINTS, + atoms.size_hints, + &hints, + ) + .map_err(window_error)?; + connection + .change_property32( + PropMode::REPLACE, + window, + atoms.net_wm_pid, + AtomEnum::CARDINAL, + &[std::process::id()], + ) + .map_err(window_error)?; + connection.map_window(window).map_err(window_error)?; + let _ = randr::select_input(&connection, screen.root, NotifyMask::SCREEN_CHANGE); + connection.flush().map_err(window_error)?; + + Ok(X11Backend { + connection, + root: screen.root, + window, + gc, + atoms, + depth, + argb, + size: (width, height), + position: (x, y), + monitors, + straight: Vec::new(), + rects: Vec::new(), + redraw: true, + quit: false, + }) + } + + /// The saved spot, otherwise the bottom right corner of the first monitor. + fn initial_position( + config: &Config, + manifest: &Manifest, + width: u32, + height: u32, + monitors: &[Monitor], + ) -> (i32, i32) { + let (x, y) = match config.position { + Some(Point { x, y }) => ( + x - manifest.anchor.x - PAD as i32, + y - manifest.anchor.y - PAD as i32, + ), + None => match monitors.first() { + Some(monitor) => ( + monitor.x + monitor.width as i32 - width as i32 - SPAWN_MARGIN, + monitor.y + monitor.height as i32 - height as i32 - SPAWN_MARGIN, + ), + None => (0, 0), + }, + }; + clamp_window_position(x, y, width, height, monitors) + } + + /// RandR 1.5 monitors, with the root window as the fallback for servers without them. + fn read_monitors(connection: &RustConnection, root: X11Window) -> Vec { + if let Ok(cookie) = randr::get_monitors(connection, root, true) { + if let Ok(reply) = cookie.reply() { + let monitors: Vec = reply + .monitors + .iter() + .map(|monitor| Monitor { + x: i32::from(monitor.x), + y: i32::from(monitor.y), + width: u32::from(monitor.width), + height: u32::from(monitor.height), + }) + .collect(); + if !monitors.is_empty() { + return monitors; + } + } + } + if let Ok(cookie) = connection.get_geometry(root) { + if let Ok(geometry) = cookie.reply() { + return vec![Monitor { + x: i32::from(geometry.x), + y: i32::from(geometry.y), + width: u32::from(geometry.width), + height: u32::from(geometry.height), + }]; + } + } + Vec::new() + } + + fn handle(&mut self, event: Event, input: &mut Vec) { + match event { + Event::Expose(_) => self.redraw = true, + Event::ConfigureNotify(configure) => { + // Docks are placed by their owner, but a window manager may still nudge us. + if configure.window == self.window { + self.position = (i32::from(configure.x), i32::from(configure.y)); + } + } + Event::EnterNotify(enter) => input.push(InputEvent::Enter { + x: f64::from(enter.event_x), + y: f64::from(enter.event_y), + }), + Event::LeaveNotify(_) => input.push(InputEvent::Leave), + Event::MotionNotify(motion) => input.push(InputEvent::Motion { + x: f64::from(motion.event_x), + y: f64::from(motion.event_y), + }), + Event::ButtonPress(press) => match press.detail { + BUTTON_LEFT => { + self.grab_pointer(); + input.push(InputEvent::Press { + x: f64::from(press.event_x), + y: f64::from(press.event_y), + }); + } + BUTTON_RIGHT => input.push(InputEvent::Quit), + _ => {} + }, + Event::ButtonRelease(release) if release.detail == BUTTON_LEFT => { + self.ungrab_pointer(); + input.push(InputEvent::Release); + } + Event::ClientMessage(message) => { + if message.type_ == self.atoms.wm_protocols + && message.data.as_data32()[0] == self.atoms.wm_delete_window + { + input.push(InputEvent::Quit); + } + } + Event::RandrScreenChangeNotify(_) => { + self.monitors = Self::read_monitors(&self.connection, self.root); + } + _ => {} + } + } + + /// The pointer is grabbed for the whole drag: motion keeps arriving outside the window and + /// the press cannot be stolen by another window. + fn grab_pointer(&mut self) { + let _ = self.connection.grab_pointer( + false, + self.window, + EventMask::BUTTON_PRESS | EventMask::BUTTON_RELEASE | EventMask::POINTER_MOTION, + GrabMode::ASYNC, + GrabMode::ASYNC, + NONE, + NONE, + CURRENT_TIME, + ); + } + + fn ungrab_pointer(&mut self) { + let _ = self.connection.ungrab_pointer(CURRENT_TIME); + } + + fn apply_shape(&self, kind: SK, rectangles: &[Rectangle]) -> Result<()> { + if rectangles.is_empty() { + // An empty rectangle list would hide the window, so no shape at all means "everything". + shape::mask(&self.connection, SO::SET, kind, self.window, 0, 0, NONE) + .map_err(window_error)?; + } else { + shape::rectangles( + &self.connection, + SO::SET, + kind, + ClipOrdering::UNSORTED, + self.window, + 0, + 0, + rectangles, + ) + .map_err(window_error)?; + } + Ok(()) + } +} + +impl Backend for X11Backend { + fn name(&self) -> &'static str { + "x11" + } + + fn scale(&self) -> u32 { + 1 + } + + fn window_size(&self) -> (u32, u32) { + self.size + } + + fn pump(&mut self, deadline: Instant) -> Result> { + let mut input = Vec::new(); + loop { + while let Some(event) = self.connection.poll_for_event().map_err(window_error)? { + self.handle(event, &mut input); + } + self.connection.flush().map_err(window_error)?; + if !input.is_empty() || self.quit || Instant::now() >= deadline { + return Ok(input); + } + std::thread::sleep(Duration::from_millis(IDLE_SLEEP_MS)); + } + } + + fn present(&mut self, argb: &[u8]) -> Result { + let (width, height) = self.size; + let expected = width as usize * height as usize * 4; + if argb.len() != expected { + return Err(Error::Window(format!( + "frame has {} bytes, the window needs {expected}", + argb.len() + ))); + } + let pixels = if self.argb { + argb + } else { + straight(argb, &mut self.straight); + &self.straight + }; + self.connection + .put_image( + ImageFormat::Z_PIXMAP, + self.window, + self.gc, + width as u16, + height as u16, + 0, + 0, + 0, + self.depth, + pixels, + ) + .map_err(window_error)?; + self.connection.flush().map_err(window_error)?; + Ok(true) + } + + fn set_input_rects(&mut self, rects: &[Rect]) -> Result<()> { + if rects == self.rects.as_slice() { + return Ok(()); + } + self.rects = rects.to_vec(); + let rectangles: Vec = rects + .iter() + .map(|rect| Rectangle { + x: rect.x as i16, + y: rect.y as i16, + width: rect.width as u16, + height: rect.height as u16, + }) + .collect(); + self.apply_shape(SK::INPUT, &rectangles)?; + if !self.argb { + self.apply_shape(SK::BOUNDING, &rectangles)?; + } + self.connection.flush().map_err(window_error)?; + Ok(()) + } + + fn move_to(&mut self, x: i32, y: i32) -> Result<()> { + if (x, y) == self.position { + return Ok(()); + } + self.connection + .configure_window(self.window, &ConfigureWindowAux::new().x(x).y(y)) + .map_err(window_error)?; + self.position = (x, y); + Ok(()) + } + + fn position(&self) -> (i32, i32) { + self.position + } + + fn needs_redraw(&mut self) -> bool { + std::mem::take(&mut self.redraw) + } +} + +fn window_error(err: impl std::fmt::Display) -> Error { + Error::Window(err.to_string()) +} + +/// A window without an alpha channel ignores the alpha byte, so premultiplied colours would look +/// dark along every soft edge. The bounding mask already cuts the transparency, so divide it back. +fn straight(src: &[u8], out: &mut Vec) { + out.clear(); + out.reserve(src.len()); + for pixel in src.chunks_exact(4) { + let alpha = u32::from(pixel[3]); + if alpha == 0 || alpha == 255 { + out.extend_from_slice(pixel); + continue; + } + let channel = |value: u8| ((u32::from(value) * 255 + alpha / 2) / alpha).min(255) as u8; + out.extend_from_slice(&[ + channel(pixel[0]), + channel(pixel[1]), + channel(pixel[2]), + pixel[3], + ]); + } +} + +#[cfg(test)] +mod tests { + use super::straight; + + #[test] + fn premultiplied_pixels_become_straight() { + let src = [64, 32, 0, 128, 255, 255, 255, 255, 0, 0, 0, 0]; + let mut out = Vec::new(); + straight(&src, &mut out); + assert_eq!(&out[..4], &[128, 64, 0, 128]); + assert_eq!(&out[4..8], &[255, 255, 255, 255]); + assert_eq!(&out[8..], &[0, 0, 0, 0]); + } + + #[test] + fn a_very_transparent_pixel_cannot_overflow() { + let src = [255, 200, 100, 1]; + let mut out = Vec::new(); + straight(&src, &mut out); + assert_eq!(&out[..3], &[255, 255, 255]); + } +} diff --git a/src/sensors/evdev.rs b/src/sensors/evdev.rs new file mode 100644 index 0000000..a2ec6f9 --- /dev/null +++ b/src/sensors/evdev.rs @@ -0,0 +1,405 @@ +//! Keyboard detection through evdev, so it works on X11 and Wayland alike (a compositor never +//! hands global key events to clients). Two facts come from the same reader: that keys are being +//! pressed, and that the PrintScreen key was pressed, which is the one screenshot signal that also +//! covers a shot the user never saves. The keyboard is read only to notice these: key codes are +//! never logged, stored or sent anywhere. Needs read access to /dev/input/event*, which the `input` +//! group grants. + +use std::collections::HashSet; +use std::fs::File; +use std::io; +use std::os::fd::{AsRawFd, RawFd}; +use std::path::{Path, PathBuf}; +use std::sync::mpsc::Sender; +use std::time::{Duration, Instant}; + +use super::{KeyScreenshot, SensorEvent, SensorReport}; +use crate::core::config::SensorsConfig; +use crate::core::texts::Texts; + +/// Device types and key codes from linux/input-event-codes.h. +const EV_KEY: u16 = 0x01; +const KEY_A: u16 = 30; +const KEY_SPACE: u16 = 57; +/// PrintScreen, which every desktop binds to its screenshot tool by default. +const KEY_SYSRQ: u16 = 99; +const KEY_BYTES: usize = 96; +const EVENT_TYPES_BYTES: usize = 8; + +const POLL_MS: i32 = 200; +const RESCAN_MS: u64 = 5_000; +const MAX_EVENTS_PER_READ: usize = 64; + +/// Mirrors `struct input_event`; `timeval` keeps the right size on 32 and 64 bit targets. +#[repr(C)] +#[derive(Clone, Copy)] +struct LinuxInputEvent { + time: libc::timeval, + kind: u16, + code: u16, + value: i32, +} + +struct Keyboard { + path: PathBuf, + name: String, + file: File, +} + +/// What the pet cares about in key events; both facts share one reader. +#[derive(Debug, Clone, Copy)] +struct Keys { + typing: bool, + screenshot: bool, +} + +/// What a single event means to the pet. +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +enum KeyPress { + Typing, + Screenshot, + Ignored, +} + +/// Value 1 is a press, 2 the auto repeat of a held key and 0 a release: only presses count. +fn classify(kind: u16, code: u16, value: i32) -> KeyPress { + if kind != EV_KEY || value != 1 { + return KeyPress::Ignored; + } + if code == KEY_SYSRQ { + // A screenshot key is not typing, however many times it is pressed. + KeyPress::Screenshot + } else { + KeyPress::Typing + } +} + +impl Keyboard { + /// `Ok(None)` means the device is readable but not a keyboard. + fn open(path: &Path) -> io::Result> { + let file = File::open(path)?; + set_non_blocking(file.as_raw_fd())?; + if !looks_like_keyboard(file.as_raw_fd())? { + return Ok(None); + } + let name = device_name(file.as_raw_fd()); + Ok(Some(Keyboard { + path: path.to_path_buf(), + name, + file, + })) + } +} + +pub fn spawn( + sensors: &SensorsConfig, + texts: &Texts, + sender: Sender, + key_screenshot: KeyScreenshot, +) -> SensorReport { + let mut report = SensorReport::default(); + let keys = Keys { + typing: sensors.typing != "off", + screenshot: sensors.screenshot.uses_key(), + }; + if !keys.typing && !keys.screenshot { + report.note("keyboard: off"); + return report; + } + let devices = match scan() { + Ok(devices) => devices, + Err(reason) => { + let (what, fix) = texts.keyboard_no_input.render(&[("reason", reason)]); + report.problem("keyboard", what, fix); + return report; + } + }; + if devices.is_empty() { + report.note("keyboard: no keyboard found in /dev/input"); + } else { + let mut wanted = Vec::new(); + if keys.typing { + wanted.push("typing"); + } + if keys.screenshot { + wanted.push("PrintScreen"); + } + report.note(format!( + "keyboard: {} device(s): {} ({})", + devices.len(), + devices + .iter() + .map(|keyboard| keyboard.name.as_str()) + .collect::>() + .join(", "), + wanted.join(" + ") + )); + } + let thread = std::thread::Builder::new() + .name("keyboard-sensor".to_string()) + .spawn(move || run(devices, sender, keys, key_screenshot)); + if let Err(err) = thread { + report.note(format!( + "keyboard: off (cannot start the sensor thread: {err})" + )); + } + report +} + +fn run( + mut devices: Vec, + sender: Sender, + keys: Keys, + key_screenshot: KeyScreenshot, +) { + let mut last_scan = Instant::now(); + loop { + if last_scan.elapsed() >= Duration::from_millis(RESCAN_MS) { + last_scan = Instant::now(); + rescan(&mut devices); + } + if devices.is_empty() { + std::thread::sleep(Duration::from_millis(RESCAN_MS)); + continue; + } + + let mut poll_fds: Vec = devices + .iter() + .map(|keyboard| libc::pollfd { + fd: keyboard.file.as_raw_fd(), + events: libc::POLLIN, + revents: 0, + }) + .collect(); + // SAFETY: the array has exactly `poll_fds.len()` initialized entries. + let ready = unsafe { + libc::poll( + poll_fds.as_mut_ptr(), + poll_fds.len() as libc::nfds_t, + POLL_MS, + ) + }; + if ready <= 0 { + continue; + } + + let mut buffer = [0u8; std::mem::size_of::() * MAX_EVENTS_PER_READ]; + let mut presses = 0usize; + let mut shots = 0usize; + let mut gone: Vec = Vec::new(); + for (index, keyboard) in devices.iter().enumerate() { + let revents = poll_fds[index].revents; + if revents == 0 { + continue; + } + if revents & (libc::POLLERR | libc::POLLHUP | libc::POLLNVAL) != 0 { + gone.push(index); + continue; + } + match read_events(&keyboard.file, &mut buffer) { + Ok(events) => { + // Every press is reported; how many of them make a typing burst is the + // engine's decision. + for event in &events { + match classify(event.kind, event.code, event.value) { + KeyPress::Typing => presses += 1, + KeyPress::Screenshot => shots += 1, + KeyPress::Ignored => {} + } + } + } + Err(err) if err.kind() == io::ErrorKind::WouldBlock => {} + Err(_) => gone.push(index), + } + } + for index in gone.into_iter().rev() { + devices.remove(index); + } + if keys.typing { + for _ in 0..presses { + if sender.send(SensorEvent::Typing).is_err() { + return; + } + } + } + if keys.screenshot && shots > 0 { + key_screenshot.note(); + for _ in 0..shots { + if sender.send(SensorEvent::Screenshot).is_err() { + return; + } + } + } + } +} + +fn read_events(file: &File, buffer: &mut [u8]) -> io::Result> { + // SAFETY: reading into a buffer this function owns. + let count = unsafe { libc::read(file.as_raw_fd(), buffer.as_mut_ptr().cast(), buffer.len()) }; + if count < 0 { + return Err(io::Error::last_os_error()); + } + let size = std::mem::size_of::(); + Ok(buffer[..count as usize] + .chunks_exact(size) + .map(|chunk| { + // SAFETY: the kernel writes `struct input_event` records, mirrored above. The buffer + // has no alignment guarantee, hence the unaligned read. + unsafe { std::ptr::read_unaligned(chunk.as_ptr().cast::()) } + }) + .collect()) +} + +fn rescan(devices: &mut Vec) { + let known: HashSet = devices + .iter() + .map(|keyboard| keyboard.path.clone()) + .collect(); + if let Ok(found) = scan() { + for keyboard in found { + if !known.contains(&keyboard.path) { + devices.push(keyboard); + } + } + } +} + +/// Opens every readable keyboard; a device count of zero with a permission error is reported +/// separately so the user knows it is a group problem rather than a missing keyboard. +fn scan() -> Result, &'static str> { + let entries = std::fs::read_dir("/dev/input").map_err(|_| "cannot list /dev/input")?; + let mut devices = Vec::new(); + let mut denied = false; + for entry in entries.flatten() { + let path = entry.path(); + let is_event_device = entry.file_name().to_string_lossy().starts_with("event"); + if !is_event_device { + continue; + } + match Keyboard::open(&path) { + Ok(Some(keyboard)) => devices.push(keyboard), + Ok(None) => {} + Err(err) if err.kind() == io::ErrorKind::PermissionDenied => denied = true, + Err(_) => {} + } + } + if devices.is_empty() && denied { + return Err("permission denied for /dev/input/event*"); + } + Ok(devices) +} + +fn looks_like_keyboard(fd: RawFd) -> io::Result { + let mut event_types = [0u8; EVENT_TYPES_BYTES]; + ioctl(fd, eviocgbit(0, EVENT_TYPES_BYTES), &mut event_types)?; + if !bit(&event_types, EV_KEY) { + return Ok(false); + } + let mut keys = [0u8; KEY_BYTES]; + ioctl(fd, eviocgbit(EV_KEY as u8, KEY_BYTES), &mut keys)?; + // Letters and the space bar: mice and power buttons report keys too, keyboards have these. + Ok(bit(&keys, KEY_A) && bit(&keys, KEY_SPACE)) +} + +fn device_name(fd: RawFd) -> String { + const NAME_BYTES: usize = 128; + let mut name = [0u8; NAME_BYTES]; + if ioctl(fd, eviocgname(NAME_BYTES), &mut name).is_err() { + return "unknown".to_string(); + } + let end = name + .iter() + .position(|byte| *byte == 0) + .unwrap_or(NAME_BYTES); + String::from_utf8_lossy(&name[..end]).trim().to_string() +} + +fn bit(bits: &[u8], code: u16) -> bool { + bits.get(code as usize / 8) + .is_some_and(|byte| byte & (1 << (code % 8)) != 0) +} + +fn ioctl(fd: RawFd, request: libc::c_ulong, buffer: &mut [u8]) -> io::Result<()> { + // SAFETY: the buffer is a plain byte slice the kernel fills in for this request. + if unsafe { libc::ioctl(fd, request, buffer.as_mut_ptr()) } < 0 { + return Err(io::Error::last_os_error()); + } + Ok(()) +} + +fn set_non_blocking(fd: RawFd) -> io::Result<()> { + // SAFETY: plain fcntl calls on a descriptor this process owns. + let flags = unsafe { libc::fcntl(fd, libc::F_GETFL) }; + if flags < 0 { + return Err(io::Error::last_os_error()); + } + if unsafe { libc::fcntl(fd, libc::F_SETFL, flags | libc::O_NONBLOCK) } < 0 { + return Err(io::Error::last_os_error()); + } + Ok(()) +} + +/// `_IOC` from asm-generic/ioctl.h, direction 2 being `_IOC_READ`. +const fn ioc(direction: u32, kind: u8, number: u8, size: usize) -> libc::c_ulong { + ((direction as libc::c_ulong) << 30) + | (((size as libc::c_ulong) & 0x3fff) << 16) + | ((kind as libc::c_ulong) << 8) + | number as libc::c_ulong +} + +const fn eviocgbit(event_type: u8, size: usize) -> libc::c_ulong { + ioc(2, b'E', 0x20 + event_type, size) +} + +const fn eviocgname(size: usize) -> libc::c_ulong { + ioc(2, b'E', 0x06, size) +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn presses_are_split_into_typing_and_screenshots() { + assert_eq!(classify(EV_KEY, KEY_A, 1), KeyPress::Typing); + assert_eq!(classify(EV_KEY, KEY_SYSRQ, 1), KeyPress::Screenshot); + assert_eq!( + classify(EV_KEY, KEY_SYSRQ, 2), + KeyPress::Ignored, + "auto repeat" + ); + assert_eq!(classify(EV_KEY, KEY_A, 0), KeyPress::Ignored, "release"); + assert_eq!( + classify(0x02, KEY_A, 1), + KeyPress::Ignored, + "not a key event" + ); + } + + #[test] + fn ioctl_requests_match_the_kernel_headers() { + // EVIOCGBIT(0, 8) and EVIOCGNAME(128) as the C macros build them. + assert_eq!(eviocgbit(0, 8), 0x8008_4520); + assert_eq!(eviocgbit(1, 96), 0x8060_4521); + assert_eq!(eviocgname(128), 0x8080_4506); + } + + #[test] + fn capability_bits_are_read_in_little_endian_order() { + let mut bits = [0u8; 8]; + bits[EV_KEY as usize / 8] |= 1 << (EV_KEY % 8); + assert!(bit(&bits, EV_KEY)); + assert!(!bit(&bits, KEY_A)); + assert!(!bit(&bits, 900), "codes past the buffer are not set"); + } + + #[test] + fn the_event_struct_matches_the_kernel_layout() { + let expected = if cfg!(target_pointer_width = "64") { + 24 + } else { + 16 + }; + assert_eq!(std::mem::size_of::(), expected); + } +} diff --git a/src/sensors/mod.rs b/src/sensors/mod.rs new file mode 100644 index 0000000..3312da0 --- /dev/null +++ b/src/sensors/mod.rs @@ -0,0 +1,219 @@ +//! Global signals that drive the pet: the keyboard, music players and screenshot folders. +//! Every sensor is a small thread that only reports raw facts; all timing lives in the engine. + +#[cfg(target_os = "linux")] +mod evdev; +#[cfg(target_os = "linux")] +mod mpris; +#[cfg(any(target_os = "linux", target_os = "windows"))] +mod screenshot; +#[cfg(target_os = "windows")] +mod win_keyboard; +#[cfg(target_os = "windows")] +mod win_music; + +#[cfg(target_os = "linux")] +use evdev::spawn as spawn_keyboard; +#[cfg(target_os = "linux")] +use mpris::spawn as spawn_music; +#[cfg(target_os = "windows")] +use win_keyboard::spawn as spawn_keyboard; +#[cfg(target_os = "windows")] +use win_music::spawn as spawn_music; + +use std::sync::mpsc::{channel, Receiver, TryRecvError}; +#[cfg(any(target_os = "linux", target_os = "windows"))] +use std::sync::{Arc, Mutex}; +#[cfg(any(target_os = "linux", target_os = "windows"))] +use std::time::{Duration, Instant}; + +use crate::core::config::Config; +use crate::core::texts::Texts; + +/// What a sensor noticed. The pet turns these into engine events. +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum SensorEvent { + /// A key was pressed anywhere in the session. + Typing, + /// Whether any media player is playing right now. + Music(bool), + /// A new image appeared in one of the screenshot folders. + Screenshot, +} + +/// Something the pet cannot use and the user can fix: shown as a startup dialog, so each half has +/// to read as a sentence on its own. +#[derive(Debug, Clone, PartialEq, Eq)] +pub struct SensorProblem { + /// Which part of the pet is affected, e.g. `keyboard`. + pub area: &'static str, + pub what: String, + pub fix: String, +} + +/// What one sensor has to say at startup: lines for the terminal, problems worth a dialog. +#[derive(Debug, Default)] +pub struct SensorReport { + notes: Vec, + problems: Vec, +} + +impl SensorReport { + pub fn note(&mut self, line: impl Into) { + self.notes.push(line.into()); + } + + /// A problem is also a note, so the terminal says everything the dialog will say. A message + /// without a fix (a wording file may drop it) prints without the empty brackets. + pub fn problem(&mut self, area: &'static str, what: impl Into, fix: impl Into) { + let problem = SensorProblem { + area, + what: what.into(), + fix: fix.into(), + }; + if problem.fix.is_empty() { + self.notes.push(format!("{area}: {}", problem.what)); + } else { + self.notes + .push(format!("{area}: {} ({})", problem.what, problem.fix)); + } + self.problems.push(problem); + } + + #[cfg(any(target_os = "linux", target_os = "windows"))] + fn merge(&mut self, other: SensorReport) { + self.notes.extend(other.notes); + self.problems.extend(other.problems); + } +} + +pub struct Sensors { + receiver: Receiver, + notes: Vec, + problems: Vec, + /// Holding the watcher keeps the screenshot folders watched. + #[cfg(any(target_os = "linux", target_os = "windows"))] + _watcher: Option>, +} + +/// When the PrintScreen key was last seen. An image that lands in a watched folder right after one +/// is that same screenshot, which the keyboard sensor already reported. +#[cfg(any(target_os = "linux", target_os = "windows"))] +#[derive(Clone, Default)] +pub struct KeyScreenshot { + at: Arc>>, +} + +#[cfg(any(target_os = "linux", target_os = "windows"))] +impl KeyScreenshot { + pub fn note(&self) { + *self.lock() = Some(Instant::now()); + } + + /// True when the key was pressed no longer than `window` ago. + pub fn within(&self, window: Duration) -> bool { + self.lock().is_some_and(|at| at.elapsed() < window) + } + + /// A poisoned lock only means the other sensor thread panicked; the time is still readable. + fn lock(&self) -> std::sync::MutexGuard<'_, Option> { + self.at.lock().unwrap_or_else(|err| err.into_inner()) + } +} + +impl Sensors { + /// Starts whatever the config asks for. Failures are reported as notes, never fatal: the pet + /// still runs without sensors. + pub fn spawn(config: &Config, texts: &Texts) -> Sensors { + let (sender, receiver) = channel(); + #[cfg(any(target_os = "linux", target_os = "windows"))] + { + let key_screenshot = KeyScreenshot::default(); + let mut report = spawn_keyboard( + &config.sensors, + texts, + sender.clone(), + key_screenshot.clone(), + ); + report.merge(spawn_music(&config.sensors, texts, sender.clone())); + let (watcher, watcher_report) = + screenshot::spawn(&config.sensors, texts, sender.clone(), key_screenshot); + report.merge(watcher_report); + Sensors { + receiver, + notes: report.notes, + problems: report.problems, + _watcher: watcher, + } + } + #[cfg(not(any(target_os = "linux", target_os = "windows")))] + { + let _ = (config, texts, sender); + let mut report = SensorReport::default(); + report.note("none on this platform yet"); + Sensors { + receiver, + notes: report.notes, + problems: report.problems, + } + } + } + + pub fn notes(&self) -> &[String] { + &self.notes + } + + /// Everything the user could fix, for the startup dialog. + pub fn problems(&self) -> &[SensorProblem] { + &self.problems + } + + /// Non-blocking: the frame loop drains this once per tick. + pub fn try_recv(&self) -> Option { + match self.receiver.try_recv() { + Ok(event) => Some(event), + Err(TryRecvError::Empty | TryRecvError::Disconnected) => None, + } + } +} + +#[cfg(all(test, any(target_os = "linux", target_os = "windows")))] +mod tests { + use super::*; + + #[test] + fn a_problem_is_a_problem_and_a_note() { + let mut report = SensorReport::default(); + report.problem("keyboard", "no access", "add yourself to input"); + report.note("music: fine"); + assert_eq!(report.problems.len(), 1); + assert_eq!(report.problems[0].area, "keyboard"); + assert_eq!( + report.notes, + vec![ + "keyboard: no access (add yourself to input)".to_string(), + "music: fine".to_string() + ] + ); + } + + #[test] + fn a_problem_without_a_fix_has_no_empty_brackets() { + let mut report = SensorReport::default(); + report.problem("music", "no bus", ""); + assert_eq!(report.notes, vec!["music: no bus".to_string()]); + assert_eq!(report.problems[0].fix, ""); + } + + #[test] + fn a_key_press_claims_a_file_that_appears_shortly_after() { + let screenshot = KeyScreenshot::default(); + assert!( + !screenshot.within(Duration::from_secs(8)), + "nothing seen yet" + ); + screenshot.note(); + assert!(screenshot.within(Duration::from_secs(8))); + assert!(!screenshot.within(Duration::ZERO), "an expired claim"); + } +} diff --git a/src/sensors/mpris.rs b/src/sensors/mpris.rs new file mode 100644 index 0000000..6f7652e --- /dev/null +++ b/src/sensors/mpris.rs @@ -0,0 +1,136 @@ +//! Music detection over MPRIS: any player on the session bus that reports `Playing`. Polling the +//! handful of player names once a second is far less code than subscribing to every player's +//! signals, and a second of latency is invisible for a pet. + +use std::sync::mpsc::Sender; +use std::time::Duration; + +use zbus::blocking::connection::Builder; +use zbus::blocking::{Connection, Proxy}; + +use super::{SensorEvent, SensorReport}; +use crate::core::config::SensorsConfig; +use crate::core::texts::Texts; + +const POLL_MS: u64 = 1_000; +/// A wedged player must not stall the sensor forever. +const CALL_TIMEOUT_MS: u64 = 800; +const BUS_NAME: &str = "org.freedesktop.DBus"; +const BUS_PATH: &str = "/org/freedesktop/DBus"; +const PLAYER_PREFIX: &str = "org.mpris.MediaPlayer2."; +const PLAYER_PATH: &str = "/org/mpris/MediaPlayer2"; +const PLAYER_INTERFACE: &str = "org.mpris.MediaPlayer2.Player"; + +pub fn spawn(sensors: &SensorsConfig, texts: &Texts, sender: Sender) -> SensorReport { + let mut report = SensorReport::default(); + if !sensors.music { + report.note("music: off"); + return report; + } + // Root has no session bus, which is the usual reason a player is never noticed: say so up + // front instead of leaving the user with a silent sensor. + if connect().is_none() { + let (what, fix) = texts.music_no_bus.render(&[]); + report.problem("music", what, fix); + } else { + report.note("music: MPRIS players on the session bus"); + } + let thread = std::thread::Builder::new() + .name("music-sensor".to_string()) + .spawn(move || run(sender)); + if let Err(err) = thread { + report.note(format!( + "music: off (cannot start the sensor thread: {err})" + )); + } + report +} + +fn run(sender: Sender) { + let mut playing = false; + let mut connection: Option = None; + let mut reported_failure = false; + loop { + if connection.is_none() { + connection = connect(); + } + let status = match &connection { + Some(connection) => playing_now(connection), + None => Err(zbus::Error::Failure("no session bus".to_string())), + }; + match status { + Ok(now) => { + reported_failure = false; + if now != playing { + playing = now; + if sender.send(SensorEvent::Music(now)).is_err() { + return; + } + } + } + Err(err) => { + // A closed or restarted bus recovers on the next round. + if !reported_failure { + eprintln!("warning: music sensor: {err}"); + reported_failure = true; + } + connection = None; + } + } + std::thread::sleep(Duration::from_millis(POLL_MS)); + } +} + +fn connect() -> Option { + Builder::session() + .ok()? + .method_timeout(Duration::from_millis(CALL_TIMEOUT_MS)) + .build() + .ok() +} + +fn playing_now(connection: &Connection) -> zbus::Result { + let reply = + connection.call_method(Some(BUS_NAME), BUS_PATH, Some(BUS_NAME), "ListNames", &())?; + let names: Vec = reply.body().deserialize()?; + for name in names.iter().filter(|name| name.starts_with(PLAYER_PREFIX)) { + let proxy = match Proxy::new(connection, name.as_str(), PLAYER_PATH, PLAYER_INTERFACE) { + Ok(proxy) => proxy, + Err(_) => continue, + }; + // A player that is gone or wedged counts as "not playing"; the next poll retries. + let status: Option = proxy.get_property("PlaybackStatus").ok(); + if status.as_deref() == Some("Playing") { + return Ok(true); + } + } + Ok(false) +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn only_real_player_names_are_treated_as_players() { + let names = [ + "org.freedesktop.DBus", + "org.mpris.MediaPlayer2.spotify", + "org.mpris.MediaPlayer2.chromium.instance1", + "org.mpris", + ]; + let players: Vec<&str> = names + .iter() + .copied() + .filter(|name| name.starts_with(PLAYER_PREFIX)) + .collect(); + assert_eq!(players.len(), 2, "{players:?}"); + assert!(players[0].ends_with("spotify")); + } + + #[test] + fn the_property_path_and_interface_match_the_mpris_spec() { + assert_eq!(PLAYER_PATH, "/org/mpris/MediaPlayer2"); + assert_eq!(PLAYER_INTERFACE, "org.mpris.MediaPlayer2.Player"); + } +} diff --git a/src/sensors/screenshot.rs b/src/sensors/screenshot.rs new file mode 100644 index 0000000..c96dac8 --- /dev/null +++ b/src/sensors/screenshot.rs @@ -0,0 +1,197 @@ +//! Screenshot folders: every tool that saves to disk drops an image into the pictures folder, so +//! watching there covers shots from tools bound to a key other than PrintScreen. A shot that is +//! never saved is caught by the key instead (see `evdev.rs`), which is why a file saved right after +//! that key press is treated as the same screenshot rather than a second one. `sensors.screenshot: +//! key` turns this watcher off entirely. + +use std::collections::HashMap; +use std::path::{Path, PathBuf}; +use std::sync::mpsc::Sender; +use std::time::{Duration, Instant}; + +use notify::{EventKind, RecursiveMode, Watcher}; + +use super::{KeyScreenshot, SensorEvent, SensorReport}; +use crate::core::config::{ScreenshotMode, SensorsConfig}; +use crate::core::texts::Texts; + +const IMAGE_EXTENSIONS: [&str; 7] = ["png", "jpg", "jpeg", "webp", "bmp", "tiff", "heic"]; +/// Writing one screenshot produces several filesystem events; only the first one counts. +const DEDUPE_MS: u64 = 1_000; +/// How long after a PrintScreen press a saved image still counts as that screenshot. Longer than +/// any capture UI takes to save, short enough that a separate shot is still its own reaction. +const KEY_CLAIM: Duration = Duration::from_millis(8_000); + +pub fn spawn( + sensors: &SensorsConfig, + texts: &Texts, + sender: Sender, + key_screenshot: KeyScreenshot, +) -> (Option>, SensorReport) { + let mut report = SensorReport::default(); + if !sensors.screenshot.uses_files() { + report.note(match sensors.screenshot { + ScreenshotMode::Key => "screenshot: PrintScreen key only, no folder watched", + _ => "screenshot: off", + }); + return (None, report); + } + let mut seen: HashMap = HashMap::new(); + let handler = move |result: notify::Result| { + let Ok(event) = result else { + return; + }; + if !matches!(event.kind, EventKind::Create(_) | EventKind::Modify(_)) { + return; + } + if key_screenshot.within(KEY_CLAIM) { + return; + } + let now = Instant::now(); + seen.retain(|_, at| now.duration_since(*at) < Duration::from_millis(DEDUPE_MS)); + for path in event.paths { + if !is_image(&path) || seen.contains_key(&path) { + continue; + } + seen.insert(path, now); + if sender.send(SensorEvent::Screenshot).is_err() { + return; + } + } + }; + let mut watcher = match notify::recommended_watcher(handler) { + Ok(watcher) => watcher, + Err(err) => { + let (what, fix) = texts + .screenshot_watch + .render(&[("reason", &err.to_string())]); + report.problem("screenshot", what, fix); + return (None, report); + } + }; + + let wanted = if sensors.screenshot_dirs.is_empty() { + default_dirs() + } else { + sensors.screenshot_dirs.clone() + }; + let mut watched: Vec = Vec::new(); + for dir in &wanted { + if !dir.is_dir() { + continue; + } + match watcher.watch(dir, RecursiveMode::Recursive) { + Ok(()) => watched.push(dir.display().to_string()), + Err(err) => report.note(format!("screenshot: cannot watch {}: {err}", dir.display())), + } + } + if watched.is_empty() { + let folders = wanted + .iter() + .map(|dir| dir.display().to_string()) + .collect::>() + .join(", "); + let (what, fix) = texts.screenshot_no_folder.render(&[("folders", &folders)]); + report.problem("screenshot", what, fix); + } else { + let key = if sensors.screenshot.uses_key() { + "PrintScreen key + new images in " + } else { + "new images in " + }; + report.note(format!("screenshot: {key}{}", watched.join(", "))); + } + (Some(Box::new(watcher)), report) +} + +fn is_image(path: &Path) -> bool { + path.extension() + .and_then(|extension| extension.to_str()) + .map(|extension| extension.to_ascii_lowercase()) + .is_some_and(|extension| IMAGE_EXTENSIONS.contains(&extension.as_str())) +} + +/// The folders a screenshot could land in: the XDG pictures folder on Linux, the profile's +/// Pictures folder on Windows, usually with a `Screenshots` subfolder the recursive watch covers. +fn default_dirs() -> Vec { + #[cfg(target_os = "windows")] + { + std::env::var_os("USERPROFILE") + .map(|home| PathBuf::from(home).join("Pictures")) + .into_iter() + .collect() + } + #[cfg(not(target_os = "windows"))] + { + let home = std::env::var_os("HOME").map(PathBuf::from); + if let Some(dir) = std::env::var_os("XDG_PICTURES_DIR") { + return vec![PathBuf::from(dir)]; + } + if let Some(home) = &home { + if let Some(dir) = user_dir(home, "XDG_PICTURES_DIR") { + return vec![dir]; + } + } + home.map(|home| home.join("Pictures")).into_iter().collect() + } +} + +/// Reads one `XDG_*_DIR` entry from ~/.config/user-dirs.dirs, where shell style values live. +#[cfg(target_os = "linux")] +fn user_dir(home: &Path, key: &str) -> Option { + let text = std::fs::read_to_string(home.join(".config/user-dirs.dirs")).ok()?; + for line in text.lines() { + let Some((name, value)) = line.split_once('=') else { + continue; + }; + if name.trim() != key { + continue; + } + let value = value.trim().trim_matches('"'); + let path = if let Some(rest) = value.strip_prefix("$HOME") { + home.join(rest.trim_start_matches('/')) + } else { + PathBuf::from(value) + }; + if path.is_absolute() { + return Some(path); + } + } + None +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn only_image_extensions_count() { + assert!(is_image(Path::new("/tmp/Screenshot_20260101.PNG"))); + assert!(is_image(Path::new("/tmp/shot.jpeg"))); + assert!(!is_image(Path::new("/tmp/shot.txt"))); + assert!(!is_image(Path::new("/tmp/shot"))); + } + + #[cfg(target_os = "linux")] + #[test] + fn a_user_dirs_entry_is_expanded() { + let dir = std::env::temp_dir().join(format!("hamster-pet-xdg-{}", std::process::id())); + let config = dir.join(".config"); + std::fs::create_dir_all(&config).unwrap(); + std::fs::write( + config.join("user-dirs.dirs"), + "XDG_DESKTOP_DIR=\"$HOME/Desktop\"\nXDG_PICTURES_DIR=\"$HOME/Obrazy\"\n", + ) + .unwrap(); + assert_eq!(user_dir(&dir, "XDG_PICTURES_DIR"), Some(dir.join("Obrazy"))); + assert_eq!(user_dir(&dir, "XDG_VIDEOS_DIR"), None); + let _ = std::fs::remove_dir_all(&dir); + } + + #[cfg(target_os = "linux")] + #[test] + fn a_missing_user_dirs_file_is_not_an_error() { + let missing = std::env::temp_dir().join("hamster-pet-not-here"); + assert_eq!(user_dir(&missing, "XDG_PICTURES_DIR"), None); + } +} diff --git a/src/sensors/win_keyboard.rs b/src/sensors/win_keyboard.rs new file mode 100644 index 0000000..1b6dba5 --- /dev/null +++ b/src/sensors/win_keyboard.rs @@ -0,0 +1,179 @@ +//! Keyboard detection through a low level keyboard hook, the only way to see keys pressed in other +//! applications on Windows. Two facts come from the same hook: that keys are being pressed, and +//! that the PrintScreen key was pressed, which is the one screenshot signal that also covers a shot +//! taken without saving a file. The keyboard is read only to notice these: key codes are never +//! logged, stored or sent anywhere. A hook cannot see keys pressed in an elevated window. + +use std::sync::atomic::{AtomicU32, Ordering}; +use std::sync::mpsc::{channel, Sender}; +use std::sync::OnceLock; +use std::time::Duration; + +use windows::Win32::Foundation::{HINSTANCE, LPARAM, LRESULT, WPARAM}; +use windows::Win32::System::LibraryLoader::GetModuleHandleW; +use windows::Win32::UI::Input::KeyboardAndMouse::VK_SNAPSHOT; +use windows::Win32::UI::WindowsAndMessaging::{ + CallNextHookEx, DispatchMessageW, GetMessageW, SetWindowsHookExW, TranslateMessage, + UnhookWindowsHookEx, KBDLLHOOKSTRUCT, MSG, WH_KEYBOARD_LL, WM_KEYDOWN, WM_KEYUP, WM_SYSKEYDOWN, + WM_SYSKEYUP, +}; + +use super::{KeyScreenshot, SensorEvent, SensorReport}; +use crate::core::config::SensorsConfig; +use crate::core::texts::Texts; + +/// How long the hook thread gets to install its hook before the pet stops waiting for it. +const INSTALL_TIMEOUT: Duration = Duration::from_secs(5); + +/// What the pet cares about in key events; both facts share one hook. +#[derive(Debug, Clone, Copy)] +struct Keys { + typing: bool, + screenshot: bool, +} + +struct Hooked { + sender: Sender, + key_screenshot: KeyScreenshot, + keys: Keys, +} + +static HOOK: OnceLock = OnceLock::new(); +/// The key that is currently held down, so its auto repeats are not counted as new presses. +static HELD: AtomicU32 = AtomicU32::new(0); + +pub fn spawn( + sensors: &SensorsConfig, + texts: &Texts, + sender: Sender, + key_screenshot: KeyScreenshot, +) -> SensorReport { + let mut report = SensorReport::default(); + let keys = Keys { + typing: sensors.typing != "off", + screenshot: sensors.screenshot.uses_key(), + }; + if !keys.typing && !keys.screenshot { + report.note("keyboard: off"); + return report; + } + + let (ready, installed) = channel(); + let thread = std::thread::Builder::new() + .name("keyboard-hook".to_string()) + .spawn(move || run(sender, key_screenshot, keys, ready)); + if let Err(err) = thread { + report.note(format!( + "keyboard: off (cannot start the hook thread: {err})" + )); + return report; + } + + match installed.recv_timeout(INSTALL_TIMEOUT) { + Ok(Ok(())) => { + let mut wanted = Vec::new(); + if keys.typing { + wanted.push("typing"); + } + if keys.screenshot { + wanted.push("PrintScreen"); + } + report.note(format!( + "keyboard: session wide hook ({})", + wanted.join(" + ") + )); + } + Ok(Err(reason)) => { + let (what, fix) = texts.keyboard_hook.render(&[("reason", &reason)]); + report.problem("keyboard", what, fix); + } + Err(_) => { + let (what, fix) = texts.keyboard_hook_timeout.render(&[]); + report.problem("keyboard", what, fix); + } + } + report +} + +/// Installs the hook and pumps the messages it needs; a low level hook only delivers while its own +/// thread is reading messages. +fn run( + sender: Sender, + key_screenshot: KeyScreenshot, + keys: Keys, + ready: Sender>, +) { + if HOOK + .set(Hooked { + sender, + key_screenshot, + keys, + }) + .is_err() + { + let _ = ready.send(Err("the hook is already installed".to_string())); + return; + } + // SAFETY: the module handle of this process, which lives for the whole run. + let module = unsafe { GetModuleHandleW(None) } + .ok() + .map(|module| HINSTANCE(module.0)); + // SAFETY: the hook procedure is a static function of this process and lives for the whole run. + let hook = unsafe { SetWindowsHookExW(WH_KEYBOARD_LL, Some(hook_proc), module, 0) }; + let hook = match hook { + Ok(hook) => hook, + Err(err) => { + let _ = ready.send(Err(err.to_string())); + return; + } + }; + let _ = ready.send(Ok(())); + + let mut message = MSG::default(); + // GetMessageW returns -1 on error, which must end the loop rather than repeat forever. + // SAFETY: a message loop for this thread's windows and hooks. + while unsafe { GetMessageW(&mut message, None, 0, 0) }.0 > 0 { + unsafe { + let _ = TranslateMessage(&message); + DispatchMessageW(&message); + } + } + let _ = unsafe { UnhookWindowsHookEx(hook) }; +} + +/// Runs for every key press in the session, so it only classifies and sends; the timing rules live +/// in the engine, exactly as they do for the evdev reader on Linux. +unsafe extern "system" fn hook_proc(code: i32, wparam: WPARAM, lparam: LPARAM) -> LRESULT { + if code >= 0 && lparam.0 != 0 { + if let Some(hooked) = HOOK.get() { + let message = wparam.0 as u32; + // SAFETY: the system hands a KBDLLHOOKSTRUCT to a WH_KEYBOARD_LL hook. + let event = unsafe { &*(lparam.0 as *const KBDLLHOOKSTRUCT) }; + match message { + WM_KEYUP | WM_SYSKEYUP => { + let _ = HELD.compare_exchange( + event.vkCode, + 0, + Ordering::Relaxed, + Ordering::Relaxed, + ); + } + WM_KEYDOWN | WM_SYSKEYDOWN => { + // A held key repeats WM_KEYDOWN; only the first press counts. + let repeat = HELD.swap(event.vkCode, Ordering::Relaxed) == event.vkCode; + if !repeat { + if hooked.keys.screenshot && event.vkCode == u32::from(VK_SNAPSHOT.0) { + hooked.key_screenshot.note(); + let _ = hooked.sender.send(SensorEvent::Screenshot); + } else if hooked.keys.typing { + let _ = hooked.sender.send(SensorEvent::Typing); + } + } + } + _ => {} + } + } + } + // SAFETY: every hook has to pass the event on. + unsafe { CallNextHookEx(None, code, wparam, lparam) } +} diff --git a/src/sensors/win_music.rs b/src/sensors/win_music.rs new file mode 100644 index 0000000..72f7153 --- /dev/null +++ b/src/sensors/win_music.rs @@ -0,0 +1,114 @@ +//! Music detection through the Windows session manager (SMTC), the player list the shell and the +//! volume flyout show: any session that reports `Playing`. It is polled once a second, which is +//! cheap and survives players that appear, close or change state without notice. + +use std::sync::mpsc::{channel, Sender}; +use std::time::{Duration, Instant}; + +use windows::Media::Control::{ + GlobalSystemMediaTransportControlsSessionManager as SessionManager, + GlobalSystemMediaTransportControlsSessionPlaybackStatus as PlaybackStatus, +}; +use windows::Win32::System::WinRT::{RoInitialize, RO_INIT_MULTITHREADED}; +use windows_future::AsyncStatus; + +use super::{SensorEvent, SensorReport}; +use crate::core::config::SensorsConfig; +use crate::core::texts::Texts; + +const POLL: Duration = Duration::from_secs(1); +/// How long the session manager gets to answer before the pet gives up on music. +const READY_TIMEOUT: Duration = Duration::from_secs(5); + +pub fn spawn(sensors: &SensorsConfig, texts: &Texts, sender: Sender) -> SensorReport { + let mut report = SensorReport::default(); + if !sensors.music { + report.note("music: off"); + return report; + } + + let (ready, started) = channel(); + let thread = std::thread::Builder::new() + .name("music-sensor".to_string()) + .spawn(move || match manager() { + Ok(manager) => { + let _ = ready.send(Ok(())); + poll(&manager, sender); + } + Err(reason) => { + let _ = ready.send(Err(reason)); + } + }); + if let Err(err) = thread { + report.note(format!( + "music: off (cannot start the sensor thread: {err})" + )); + return report; + } + + match started.recv_timeout(READY_TIMEOUT) { + Ok(Ok(())) => report.note("music: session manager connected"), + Ok(Err(reason)) => { + let (what, fix) = texts.music_sessions.render(&[("reason", &reason)]); + report.problem("music", what, fix); + } + Err(_) => { + let (what, fix) = texts.music_sessions_timeout.render(&[]); + report.problem("music", what, fix); + } + } + report +} + +/// Waits for the session manager; the wait is bounded so a broken WinRT cannot hold the pet back. +fn manager() -> Result { + // SAFETY: initialising this thread's apartment is what the session manager needs. + unsafe { + let _ = RoInitialize(RO_INIT_MULTITHREADED); + } + let operation = SessionManager::RequestAsync().map_err(|err| err.to_string())?; + let deadline = Instant::now() + READY_TIMEOUT; + while operation.Status().map_err(|err| err.to_string())? == AsyncStatus::Started { + if Instant::now() >= deadline { + return Err("the session manager is not available".to_string()); + } + std::thread::sleep(Duration::from_millis(20)); + } + operation.GetResults().map_err(|err| err.to_string()) +} + +fn poll(manager: &SessionManager, sender: Sender) { + let mut playing = false; + loop { + let now = is_playing(manager); + if now != playing { + playing = now; + if sender.send(SensorEvent::Music(now)).is_err() { + return; + } + } + std::thread::sleep(POLL); + } +} + +/// A player that cannot be queried (it closed between the two calls) simply does not count. +fn is_playing(manager: &SessionManager) -> bool { + let Ok(sessions) = manager.GetSessions() else { + return false; + }; + let Ok(count) = sessions.Size() else { + return false; + }; + for index in 0..count { + let Ok(session) = sessions.GetAt(index) else { + continue; + }; + let Ok(info) = session.GetPlaybackInfo() else { + continue; + }; + if info.PlaybackStatus().ok() == Some(PlaybackStatus::Playing) { + return true; + } + } + false +} diff --git a/tests/assets.rs b/tests/assets.rs new file mode 100644 index 0000000..d2f361b --- /dev/null +++ b/tests/assets.rs @@ -0,0 +1,127 @@ +//! Checks the generated asset set against its manifest. Run the converter first: +//! `cargo run -p convert_frames -- --in frames --out assets/animations` + +use std::collections::BTreeSet; +use std::path::PathBuf; + +use hamster_pet::core::chains::required_clips; +use hamster_pet::core::manifest::{frame_file_name, MANIFEST_VERSION}; +use hamster_pet::{Config, Engine, FrameStore, Manifest}; + +fn assets_root() -> PathBuf { + PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("assets/animations") +} + +fn manifest() -> Manifest { + Manifest::load(&assets_root().join("manifest.json")).unwrap_or_else(|err| { + panic!("cannot read the generated manifest ({err}); run: cargo run -p convert_frames") + }) +} + +#[test] +fn every_clip_has_exactly_the_frames_the_manifest_promises() { + let manifest = manifest(); + manifest.validate().expect("generated manifest is valid"); + let store = FrameStore::new(assets_root(), manifest.clone(), 8); + + for (name, clip) in &manifest.clips { + let dir = assets_root().join(name); + let mut on_disk = BTreeSet::new(); + for entry in std::fs::read_dir(&dir) + .unwrap_or_else(|err| panic!("cannot list {}: {err}", dir.display())) + { + on_disk.insert(entry.unwrap().file_name().to_string_lossy().into_owned()); + } + let expected: BTreeSet = (0..clip.frames).map(frame_file_name).collect(); + assert_eq!( + on_disk, expected, + "clip '{name}' does not match the manifest" + ); + + // Decode the edges and the middle of each clip: dimensions must match the rect. + for index in [0, clip.frames / 2, clip.frames - 1] { + let frame = store + .get(name, index) + .unwrap_or_else(|err| panic!("{name} frame {index}: {err}")); + assert_eq!( + frame.dimensions(), + (clip.rect.width, clip.rect.height), + "clip '{name}' frame {index} size" + ); + } + } +} + +#[test] +fn the_asset_set_covers_every_clip_the_engine_can_play() { + let manifest = manifest(); + for name in required_clips() { + assert!(manifest.clips.contains_key(name), "missing clip '{name}'"); + } +} + +#[test] +fn engine_starts_on_the_real_asset_set() { + let manifest = manifest(); + let (engine, warnings) = + Engine::new(&manifest, Config::default(), 7, 0).expect("engine starts"); + assert!(warnings.is_empty(), "{warnings:?}"); + assert_eq!(engine.visible().0, "idle_main"); +} + +#[test] +fn resting_frame_keeps_dark_details_opaque() { + // Golden pixels of idle_main frame 0: the background is transparent, the fur and the + // very dark pixels under the belly stay fully opaque (luminance-as-alpha loses that). + let manifest = manifest(); + let store = FrameStore::new(assets_root(), manifest.clone(), 4); + let frame = store.get("idle_main", 0).unwrap(); + let (width, height) = frame.dimensions(); + + for corner in [ + (0, 0), + (width - 1, 0), + (0, height - 1), + (width - 1, height - 1), + ] { + assert_eq!( + frame.get_pixel(corner.0, corner.1).0[3], + 0, + "corner {corner:?} is transparent" + ); + } + for (x, y, expected) in [ + (42, 50, [160, 148, 126, 255]), + (40, 95, [107, 94, 85, 255]), + (30, 60, [119, 80, 75, 255]), + ] { + assert_eq!(frame.get_pixel(x, y).0, expected, "pixel ({x},{y}) changed"); + } +} + +#[test] +fn anchor_sits_on_the_bottom_of_the_resting_silhouette() { + let manifest = manifest(); + let store = FrameStore::new(assets_root(), manifest.clone(), 4); + let frame = store.get("idle_main", 0).unwrap(); + let clip = manifest.clip("idle_main").unwrap(); + + let last_opaque_row = (0..clip.rect.height) + .rev() + .find(|y| (0..clip.rect.width).any(|x| frame.get_pixel(x, *y).0[3] > 0)) + .expect("idle_main is not empty"); + + assert_eq!( + manifest.anchor.y as u32, + clip.rect.y as u32 + last_opaque_row + 1, + "anchor must sit on the bottom edge of the silhouette" + ); + assert!( + manifest.anchor.x > clip.rect.x && manifest.anchor.x < clip.rect.x + clip.rect.width as i32 + ); +} + +#[test] +fn manifest_uses_the_supported_version() { + assert_eq!(manifest().version, MANIFEST_VERSION); +} diff --git a/texts.json b/texts.json new file mode 100644 index 0000000..a6e4805 --- /dev/null +++ b/texts.json @@ -0,0 +1,38 @@ +{ + "title": "Desktop Chomik: something is missing", + "intro": "Chomik is running, but it cannot use everything:", + "problem": "{area}: {what}\n-> {fix}", + "outro": "Nothing here is required: close this and the pet carries on.", + "keyboard_no_input": { + "what": "{reason}, so typing and PrintScreen cannot be seen", + "fix": "enable it once with: sudo usermod -aG input $USER (relog/restart required)" + }, + "keyboard_hook": { + "what": "cannot install the keyboard hook ({reason})", + "fix": "run the pet as your own user; a hook cannot see keys pressed in an elevated window" + }, + "keyboard_hook_timeout": { + "what": "the keyboard hook did not install in time", + "fix": "the pet runs on without it" + }, + "screenshot_watch": { + "what": "cannot watch for new screenshot files ({reason})", + "fix": "the PrintScreen key still works; sensors.screenshot: key silences this" + }, + "screenshot_no_folder": { + "what": "no screenshot folder to watch (looked at {folders})", + "fix": "create that folder, or point sensors.screenshot_dirs at the folder your screenshots land in" + }, + "music_no_bus": { + "what": "no session bus, so no media player can be seen", + "fix": "run the pet as your own user inside your desktop session: root and sudo get a different bus" + }, + "music_sessions": { + "what": "cannot listen to media players ({reason})", + "fix": "this needs the Windows media session manager; the pet runs on without it" + }, + "music_sessions_timeout": { + "what": "the media session manager did not answer in time", + "fix": "the pet runs on without it" + } +} diff --git a/tools/convert_frames/Cargo.toml b/tools/convert_frames/Cargo.toml new file mode 100644 index 0000000..10902e3 --- /dev/null +++ b/tools/convert_frames/Cargo.toml @@ -0,0 +1,15 @@ +[package] +name = "convert_frames" +version = "0.1.0" +edition = "2021" +description = "Converts frames/ JPEG clips into transparent lossless WebP assets + manifest.json" +license = "MIT" + +[[bin]] +name = "convert_frames" +path = "src/main.rs" + +[dependencies] +hamster-pet = { path = "../.." } +image = { version = "0.25", default-features = false, features = ["jpeg", "webp"] } +serde_json = "1" diff --git a/tools/convert_frames/src/clips.rs b/tools/convert_frames/src/clips.rs new file mode 100644 index 0000000..eacd1f2 --- /dev/null +++ b/tools/convert_frames/src/clips.rs @@ -0,0 +1,146 @@ +use std::path::{Path, PathBuf}; + +use hamster_pet::DEFAULT_FPS; + +/// One output clip: a contiguous run of source frames. +/// +/// Ranges are spelled out instead of "everything in the folder" because the source folders +/// contain a stray neutral frame and several clips whose frame numbering restarts. +pub struct ClipSpec { + pub name: &'static str, + pub source: &'static str, + pub first: u32, + pub last: u32, + pub looping: bool, + pub fps: u32, +} + +const fn clip(name: &'static str, source: &'static str, first: u32, last: u32) -> ClipSpec { + ClipSpec { + name, + source, + first, + last, + looping: false, + fps: DEFAULT_FPS, + } +} + +const fn looping(name: &'static str, source: &'static str, first: u32, last: u32) -> ClipSpec { + ClipSpec { + name, + source, + first, + last, + looping: true, + fps: DEFAULT_FPS, + } +} + +pub const CLIPS: &[ClipSpec] = &[ + looping("idle_main", "pacmainidle", 60, 60), + clip("idle_blink", "pacidle0", 60, 79), + clip("idle_look_around", "pacidle1", 1560, 1639), + clip("idle_nose_rub", "pacidle2", 0, 59), + clip("idle_yawn", "pacidle3", 220, 279), + clip("idle_rock", "pacidle4", 120, 149), + clip("idle_peek", "pacidle5", 80, 119), + clip("idle_yawn_second", "pacidle6", 150, 219), + clip("idle_dig", "pacidle7", 1640, 1779), + clip("idle_squint", "pacidle8", 420, 489), + clip("idle_paper_plane", "pacidle9", 1780, 1999), + clip("idle_activity_newspaper_start", "pacidlestart1", 1380, 1419), + looping("idle_activity_newspaper_loop", "pacidlestart1", 1420, 1519), + clip( + "idle_activity_newspaper_finish", + "pacidlestart1", + 1520, + 1559, + ), + clip("idle_activity_book_start", "pacidlestart2", 1190, 1229), + looping("idle_activity_book_loop", "pacidlestart2", 1230, 1329), + clip("idle_activity_book_finish", "pacidlestart2", 1330, 1379), + clip("idle_activity_sleep_start", "pacidlestart3", 490, 559), + looping("idle_activity_sleep_loop", "pacidlestart3", 560, 599), + clip("idle_activity_sleep_finish", "pacidlestart3", 600, 679), + clip("typing_start", "pactyping", 680, 719), + looping("typing", "pactyping", 720, 779), + clip("typing_stop", "pactyping", 780, 819), + clip("screenshot", "pacscreenshot", 280, 419), + // The source music animation is one 130 frame take: it puts the headphones on, listens and + // takes them off again. Split into the three phases the engine plays so listening loops in the + // middle (1044..1057 is one bob, verified seamless) and the take off only happens when the + // music stops. + clip("music_start", "pacmusic", 990, 1043), + looping("music", "pacmusic", 1044, 1057), + clip("music_stop", "pacmusic", 1058, 1119), + clip("drag_start", "paccharacter", 1120, 1124), + looping("drag_loop", "paccharacter", 1145, 1174), + clip("drag_end", "paccharacter", 1175, 1189), +]; + +pub fn source_frame_path(frames_root: &Path, source: &str, number: u32) -> PathBuf { + frames_root + .join(source) + .join("jpeg") + .join(format!("hamster_{number:04}.p.jpg")) +} + +pub fn frame_count(clip: &ClipSpec) -> usize { + (clip.last - clip.first + 1) as usize +} + +#[cfg(test)] +mod tests { + use super::*; + use std::collections::BTreeSet; + + #[test] + fn clip_names_are_unique() { + let mut names: Vec<&str> = CLIPS.iter().map(|clip| clip.name).collect(); + let count = names.len(); + names.sort_unstable(); + names.dedup(); + assert_eq!(names.len(), count); + } + + #[test] + fn clip_names_exist_in_the_engine_vocabulary() { + let vocabulary: BTreeSet<&str> = hamster_pet::core::chains::required_clips() + .into_iter() + .collect(); + for clip in CLIPS { + assert!( + vocabulary.contains(clip.name), + "{} is not used by the engine", + clip.name + ); + } + for name in &vocabulary { + assert!( + CLIPS.iter().any(|clip| clip.name == *name), + "{name} has no source clip" + ); + } + } + + #[test] + fn ranges_are_ordered_and_non_empty() { + for clip in CLIPS { + assert!(clip.first <= clip.last, "{}", clip.name); + assert!(clip.fps > 0, "{}", clip.name); + } + } + + #[test] + fn frame_paths_follow_the_source_naming() { + let path = source_frame_path(Path::new("frames"), "pacidle0", 60); + assert_eq!(path, Path::new("frames/pacidle0/jpeg/hamster_0060.p.jpg")); + } + + #[test] + fn total_frames_match_the_source_set_minus_the_unused_neutral_frame() { + let total: usize = CLIPS.iter().map(frame_count).sum(); + assert_eq!(total, 1811); + } +} diff --git a/tools/convert_frames/src/main.rs b/tools/convert_frames/src/main.rs new file mode 100644 index 0000000..be2fbad --- /dev/null +++ b/tools/convert_frames/src/main.rs @@ -0,0 +1,427 @@ +//! Converts the source JPEG clips in `frames/` into transparent lossless WebP clips plus +//! `manifest.json`. Deterministic: the same input always produces byte-identical output. + +mod clips; +mod matte; + +use std::collections::{BTreeMap, BTreeSet}; +use std::error::Error; +use std::fs; +use std::io::BufWriter; +use std::path::{Path, PathBuf}; + +use hamster_pet::core::manifest::{clip_dir, frame_file_name, MANIFEST_VERSION}; +use hamster_pet::{Canvas, Clip, Manifest, Point, Rect}; +use image::{ImageEncoder, RgbImage, RgbaImage}; +use matte::Shadow; + +/// Transparent padding kept around each clip so smooth edges survive scaling. +const MARGIN: u32 = 2; +const USAGE: &str = "\ +convert_frames [options] + + --in source frames (default: frames) + --out generated clip set + manifest (default: assets/animations) + --shadow keep | drop the baked drop shadow (default: keep) + --force overwrite a non-empty --out directory + --help"; + +struct Options { + frames: PathBuf, + out: PathBuf, + shadow: Shadow, + force: bool, +} + +struct ResolvedClip { + spec: &'static clips::ClipSpec, + paths: Vec, +} + +/// Inclusive pixel rectangle in source coordinates. +#[derive(Clone, Copy, Debug)] +struct Bounds { + x0: u32, + y0: u32, + x1: u32, + y1: u32, +} + +impl Bounds { + fn width(self) -> u32 { + self.x1 - self.x0 + 1 + } + + fn height(self) -> u32 { + self.y1 - self.y0 + 1 + } + + fn union(self, other: Bounds) -> Bounds { + Bounds { + x0: self.x0.min(other.x0), + y0: self.y0.min(other.y0), + x1: self.x1.max(other.x1), + y1: self.y1.max(other.y1), + } + } + + fn padded(self, margin: u32, frame: (u32, u32)) -> Bounds { + Bounds { + x0: self.x0.saturating_sub(margin), + y0: self.y0.saturating_sub(margin), + x1: (self.x1 + margin).min(frame.0 - 1), + y1: (self.y1 + margin).min(frame.1 - 1), + } + } + + fn clamp_inside(self, outer: Bounds) -> Bounds { + Bounds { + x0: self.x0.max(outer.x0), + y0: self.y0.max(outer.y0), + x1: self.x1.min(outer.x1), + y1: self.y1.min(outer.y1), + } + } + + fn to_rect(self, origin: Bounds) -> Rect { + Rect { + x: (self.x0 - origin.x0) as i32, + y: (self.y0 - origin.y0) as i32, + width: self.width(), + height: self.height(), + } + } +} + +fn main() { + if let Err(err) = run() { + eprintln!("error: {err}"); + std::process::exit(1); + } +} + +fn run() -> Result<(), Box> { + let options = match parse_args(std::env::args().skip(1)) { + Ok(Some(options)) => options, + Ok(None) => { + println!("{USAGE}"); + return Ok(()); + } + Err(message) => { + eprintln!("{message}\n\n{USAGE}"); + std::process::exit(2); + } + }; + + let resolved = resolve_sources(&options)?; + prepare_output_dir(&options)?; + + let (canvas, clip_bounds) = measure(&resolved, options.shadow)?; + let anchor = anchor_from(clip_bounds["idle_main"], canvas); + + let mut manifest_clips = BTreeMap::new(); + let mut total_bytes = 0u64; + for clip in &resolved { + let bounds = clip_bounds[clip.spec.name].clamp_inside(canvas); + let rect = bounds.to_rect(canvas); + write_clip(clip, bounds, options.shadow, &options.out, &mut total_bytes)?; + manifest_clips.insert( + clip.spec.name.to_string(), + Clip { + frames: clip.paths.len() as u32, + fps: clip.spec.fps, + looping: clip.spec.looping, + rect, + }, + ); + println!( + "{:<36} {:>4} frames {:>3}x{:<3} at {:>3},{:<3}", + clip.spec.name, + clip.paths.len(), + rect.width, + rect.height, + rect.x, + rect.y + ); + } + + let manifest = Manifest { + version: MANIFEST_VERSION, + canvas: Canvas { + width: canvas.width(), + height: canvas.height(), + }, + anchor: Point { + x: anchor.0 as i32, + y: anchor.1 as i32, + }, + clips: manifest_clips, + }; + manifest.validate()?; + let manifest_path = options.out.join("manifest.json"); + fs::write(&manifest_path, serde_json::to_string_pretty(&manifest)?)?; + + report_unused_sources(&resolved, &options.frames)?; + println!( + "\n{} clips, {} frames, canvas {}x{}, anchor ({}, {}), {:.1} MB on disk", + manifest.clips.len(), + manifest.clips.values().map(|clip| clip.frames).sum::(), + manifest.canvas.width, + manifest.canvas.height, + manifest.anchor.x, + manifest.anchor.y, + total_bytes as f64 / 1_000_000.0 + ); + println!("wrote {}", manifest_path.display()); + Ok(()) +} + +fn resolve_sources(options: &Options) -> Result, Box> { + let mut resolved = Vec::new(); + let mut missing = Vec::new(); + for spec in clips::CLIPS { + let mut paths = Vec::with_capacity(clips::frame_count(spec)); + for number in spec.first..=spec.last { + let path = clips::source_frame_path(&options.frames, spec.source, number); + if !path.is_file() { + missing.push(path.clone()); + } + paths.push(path); + } + resolved.push(ResolvedClip { spec, paths }); + } + if !missing.is_empty() { + return Err(format!( + "{} source frames are missing, first: {}", + missing.len(), + missing[0].display() + ) + .into()); + } + Ok(resolved) +} + +fn prepare_output_dir(options: &Options) -> Result<(), Box> { + if options.out.exists() { + let generated = options.out.join("manifest.json").is_file(); + let empty = fs::read_dir(&options.out)?.next().is_none(); + if !empty && !generated && !options.force { + return Err(format!( + "{} is not empty and does not look generated; pass --force to overwrite", + options.out.display() + ) + .into()); + } + fs::remove_dir_all(&options.out)?; + } + fs::create_dir_all(&options.out)?; + Ok(()) +} + +/// First pass: matting bounds, so crops and the canvas are known before anything is written. +fn measure( + resolved: &[ResolvedClip], + shadow: Shadow, +) -> Result<(Bounds, BTreeMap<&'static str, Bounds>), Box> { + let mut frame_size: Option<(u32, u32)> = None; + let mut global: Option = None; + let mut clip_bounds: BTreeMap<&'static str, Bounds> = BTreeMap::new(); + + for clip in resolved { + let mut bounds: Option = None; + for path in &clip.paths { + let rgb = load_rgb(path)?; + check_size(&mut frame_size, &rgb, path)?; + let matted = matte::apply(&rgb, shadow); + let content = matte::content_bbox(&matted).ok_or_else(|| { + format!( + "{} is fully transparent after matting: {}", + clip.spec.name, + path.display() + ) + })?; + let content = bounds_of(content); + bounds = Some(bounds.map_or(content, |current| current.union(content))); + global = Some(global.map_or(content, |current| current.union(content))); + } + clip_bounds.insert( + clip.spec.name, + bounds.expect("every clip has at least one frame"), + ); + } + + let frame_size = frame_size.expect("the clip table is not empty"); + let canvas = global + .expect("the clip table is not empty") + .padded(MARGIN, frame_size); + Ok((canvas, clip_bounds)) +} + +fn bounds_of((x0, y0, x1, y1): (u32, u32, u32, u32)) -> Bounds { + Bounds { x0, y0, x1, y1 } +} + +fn write_clip( + clip: &ResolvedClip, + bounds: Bounds, + shadow: Shadow, + out: &Path, + total_bytes: &mut u64, +) -> Result<(), Box> { + let dir = clip_dir(out, clip.spec.name); + fs::create_dir_all(&dir)?; + + for (index, path) in clip.paths.iter().enumerate() { + let rgb = load_rgb(path)?; + let matted = matte::apply(&rgb, shadow); + let cropped = image::imageops::crop_imm( + &matted, + bounds.x0, + bounds.y0, + bounds.width(), + bounds.height(), + ) + .to_image(); + let target = dir.join(frame_file_name(index as u32)); + encode_webp(&cropped, &target)?; + *total_bytes += fs::metadata(&target)?.len(); + + // Lossless output must survive a decode byte for byte; checked on the clip edges. + if index == 0 || index + 1 == clip.paths.len() { + verify_round_trip(&cropped, &target)?; + } + } + Ok(()) +} + +fn report_unused_sources( + resolved: &[ResolvedClip], + frames_root: &Path, +) -> Result<(), Box> { + let mut used: BTreeMap<&'static str, BTreeSet> = BTreeMap::new(); + for clip in resolved { + let entry = used.entry(clip.spec.source).or_default(); + for number in clip.spec.first..=clip.spec.last { + entry.insert(number); + } + } + for (source, used_numbers) in used { + let dir = frames_root.join(source).join("jpeg"); + let mut unused = Vec::new(); + for entry in fs::read_dir(&dir)? { + let name = entry?.file_name().to_string_lossy().into_owned(); + if let Some(number) = parse_frame_number(&name) { + if !used_numbers.contains(&number) { + unused.push(number); + } + } + } + unused.sort_unstable(); + if !unused.is_empty() { + println!("unused source frames in {source}: {unused:?}"); + } + } + Ok(()) +} + +fn parse_frame_number(name: &str) -> Option { + name.strip_prefix("hamster_")? + .split('.') + .next()? + .parse() + .ok() +} + +fn load_rgb(path: &Path) -> Result> { + Ok(image::open(path)?.to_rgb8()) +} + +fn check_size( + size: &mut Option<(u32, u32)>, + image: &RgbImage, + path: &Path, +) -> Result<(), Box> { + let dimensions = image.dimensions(); + match size { + Some(expected) if *expected != dimensions => Err(format!( + "{} is {}x{} but the first frame was {}x{}", + path.display(), + dimensions.0, + dimensions.1, + expected.0, + expected.1 + ) + .into()), + Some(_) => Ok(()), + None => { + *size = Some(dimensions); + Ok(()) + } + } +} + +fn encode_webp(image: &RgbaImage, path: &Path) -> Result<(), Box> { + let file = BufWriter::new(fs::File::create(path)?); + let encoder = image::codecs::webp::WebPEncoder::new_lossless(file); + encoder.write_image( + image.as_raw(), + image.width(), + image.height(), + image::ExtendedColorType::Rgba8, + )?; + Ok(()) +} + +fn verify_round_trip(expected: &RgbaImage, path: &Path) -> Result<(), Box> { + let bytes = fs::read(path)?; + let decoded = image::load_from_memory_with_format(&bytes, image::ImageFormat::WebP)?.to_rgba8(); + if decoded.as_raw() != expected.as_raw() { + return Err(format!("lossless round trip changed pixels in {}", path.display()).into()); + } + Ok(()) +} + +/// Bottom centre of the resting silhouette: the point that stays put while clips change. +fn anchor_from(idle_main: Bounds, canvas: Bounds) -> (u32, u32) { + let x = (idle_main.x0 + idle_main.x1 + 1) / 2 - canvas.x0; + let y = idle_main.y1 + 1 - canvas.y0; + (x.min(canvas.width() - 1), y.min(canvas.height() - 1)) +} + +fn parse_args(args: impl Iterator) -> Result, String> { + let mut options = Options { + frames: PathBuf::from("frames"), + out: PathBuf::from("assets/animations"), + shadow: Shadow::Keep, + force: false, + }; + let args: Vec = args.collect(); + let mut index = 0; + while index < args.len() { + let arg = args[index].as_str(); + index += 1; + match arg { + "--help" | "-h" => return Ok(None), + "--force" => options.force = true, + "--in" => options.frames = PathBuf::from(take_value(&args, &mut index, arg)?), + "--out" => options.out = PathBuf::from(take_value(&args, &mut index, arg)?), + "--shadow" => { + let raw = take_value(&args, &mut index, arg)?; + options.shadow = Shadow::parse(&raw) + .ok_or_else(|| format!("--shadow: expected keep or drop, got '{raw}'"))?; + } + other => return Err(format!("unknown option '{other}'")), + } + } + Ok(Some(options)) +} + +fn take_value(args: &[String], index: &mut usize, name: &str) -> Result { + if *index < args.len() { + let value = args[*index].clone(); + *index += 1; + Ok(value) + } else { + Err(format!("{name} needs a value")) + } +} diff --git a/tools/convert_frames/src/matte.rs b/tools/convert_frames/src/matte.rs new file mode 100644 index 0000000..ff1430e --- /dev/null +++ b/tools/convert_frames/src/matte.rs @@ -0,0 +1,272 @@ +use image::{RgbImage, RgbaImage}; + +/// Alpha ramp applied to the one pixel wide silhouette edge (values measured on the source art). +/// Dim edge pixels fade out: the hairs of a whisker stay hairs instead of a thick dark spike. +const EDGE_LOW: f32 = 12.0; +const EDGE_HIGH: f32 = 62.0; + +/// Background handling. The art has a soft baked shadow that is darker than the character +/// outline, so removing it always erodes some dark detail; `Keep` is the default. +#[derive(Clone, Copy, PartialEq, Eq, Debug)] +pub enum Shadow { + Keep, + Drop, +} + +impl Shadow { + /// Pixels dimmer than this, connected to the border, are treated as background. Even `Keep` + /// removes the dim halo around thin details such as whiskers, where the art is nearly black. + pub fn background_threshold(self) -> u8 { + match self { + Shadow::Keep => 22, + // High enough to swallow the baked shadow, at the cost of dark edges and whiskers. + Shadow::Drop => 45, + } + } + + pub fn parse(text: &str) -> Option { + match text { + "keep" => Some(Shadow::Keep), + "drop" => Some(Shadow::Drop), + _ => None, + } + } +} + +/// Turns the black background into transparent pixels. +/// +/// Layer transparency is used as alpha only on the silhouette edge; enclosed dark details +/// (eyes, outline, held props) stay fully opaque, which luminance-as-alpha fails to do. +pub fn apply(src: &RgbImage, shadow: Shadow) -> RgbaImage { + let (width, height) = src.dimensions(); + let (w, h) = (width as usize, height as usize); + let raw = src.as_raw(); + let key: Vec = (0..w * h) + .map(|i| raw[i * 3].max(raw[i * 3 + 1]).max(raw[i * 3 + 2])) + .collect(); + + let outside = flood_background(&key, w, h, shadow.background_threshold()); + let mut out = vec![0u8; w * h * 4]; + + for y in 0..h { + for x in 0..w { + let i = y * w + x; + let alpha = if outside[i] { + 0.0 + } else if touches_outside(&outside, x, y, w, h) { + ramp(key[i]) + } else { + 255.0 + }; + let alpha = alpha.clamp(0.0, 255.0).round() as u8; + + let (mut r, mut g, mut b) = (raw[i * 3], raw[i * 3 + 1], raw[i * 3 + 2]); + if alpha > 0 && alpha < 255 { + // Edge pixels were rendered over black: undo that blend before storing them. + let scale = 255.0 / f32::from(alpha); + r = (f32::from(r) * scale).min(255.0).round() as u8; + g = (f32::from(g) * scale).min(255.0).round() as u8; + b = (f32::from(b) * scale).min(255.0).round() as u8; + } + out[i * 4] = r; + out[i * 4 + 1] = g; + out[i * 4 + 2] = b; + out[i * 4 + 3] = alpha; + } + } + + RgbaImage::from_raw(width, height, out).expect("buffer size matches the image") +} + +fn ramp(value: u8) -> f32 { + ((f32::from(value) - EDGE_LOW) / (EDGE_HIGH - EDGE_LOW)).clamp(0.0, 1.0) * 255.0 +} + +fn touches_outside(outside: &[bool], x: usize, y: usize, w: usize, h: usize) -> bool { + let neighbours = [ + (x.wrapping_sub(1), y), + (x + 1, y), + (x, y.wrapping_sub(1)), + (x, y + 1), + ]; + neighbours.iter().any(|&(nx, ny)| { + if nx >= w || ny >= h { + return true; + } + outside[ny * w + nx] + }) +} + +/// Marks pixels below `threshold` that are reachable from the image border. +/// Anything enclosed by the character stays part of the mask. +fn flood_background(key: &[u8], w: usize, h: usize, threshold: u8) -> Vec { + let mut outside = vec![false; w * h]; + let mut stack: Vec = Vec::new(); + + for x in 0..w { + push_if_background(x, key, threshold, &mut outside, &mut stack); + push_if_background((h - 1) * w + x, key, threshold, &mut outside, &mut stack); + } + for y in 0..h { + push_if_background(y * w, key, threshold, &mut outside, &mut stack); + push_if_background(y * w + w - 1, key, threshold, &mut outside, &mut stack); + } + + while let Some(index) = stack.pop() { + let x = index % w; + let y = index / w; + if x > 0 { + push_if_background(index - 1, key, threshold, &mut outside, &mut stack); + } + if x + 1 < w { + push_if_background(index + 1, key, threshold, &mut outside, &mut stack); + } + if y > 0 { + push_if_background(index - w, key, threshold, &mut outside, &mut stack); + } + if y + 1 < h { + push_if_background(index + w, key, threshold, &mut outside, &mut stack); + } + } + outside +} + +fn push_if_background( + index: usize, + key: &[u8], + threshold: u8, + outside: &mut [bool], + stack: &mut Vec, +) { + if !outside[index] && key[index] < threshold { + outside[index] = true; + stack.push(index); + } +} + +/// Bounding box of pixels with any opacity, inclusive of both corners. +pub fn content_bbox(image: &RgbaImage) -> Option<(u32, u32, u32, u32)> { + let (mut x0, mut y0, mut x1, mut y1) = (u32::MAX, u32::MAX, 0, 0); + for (x, y, pixel) in image.enumerate_pixels() { + if pixel.0[3] > 0 { + x0 = x0.min(x); + y0 = y0.min(y); + x1 = x1.max(x); + y1 = y1.max(y); + } + } + if x0 == u32::MAX { + None + } else { + Some((x0, y0, x1, y1)) + } +} + +#[cfg(test)] +mod tests { + use super::*; + use image::Rgb; + + fn frame() -> RgbImage { + // Black canvas with a bright 3x3 square at (1,1) containing a dark enclosed pixel. + let mut image = RgbImage::from_pixel(6, 6, Rgb([0, 0, 0])); + for y in 1..4 { + for x in 1..4 { + image.put_pixel(x, y, Rgb([200, 180, 90])); + } + } + image.put_pixel(2, 2, Rgb([4, 4, 4])); + image + } + + #[test] + fn background_becomes_transparent_and_enclosed_dark_pixels_stay_opaque() { + let matted = apply(&frame(), Shadow::Keep); + assert_eq!(matted.get_pixel(0, 0).0[3], 0, "corner is background"); + assert_eq!(matted.get_pixel(3, 3).0[3], 255, "body is opaque"); + assert_eq!( + matted.get_pixel(2, 2).0[3], + 255, + "enclosed dark pixel is opaque" + ); + assert_eq!( + matted.get_pixel(2, 2).0[0], + 4, + "enclosed colour is untouched" + ); + assert_eq!(matted.get_pixel(3, 3).0[0], 200, "body colour is untouched"); + } + + #[test] + fn shadow_drop_removes_only_the_detached_dim_blob() { + let mut image = frame(); + // Dim blob well below the drop threshold, touching nothing bright. + for y in 4..6 { + for x in 0..2 { + image.put_pixel(x, y, Rgb([40, 38, 36])); + } + } + let kept = apply(&image, Shadow::Keep); + assert!(kept.get_pixel(0, 5).0[3] > 0, "keep mode keeps the shadow"); + + let dropped = apply(&image, Shadow::Drop); + assert_eq!( + dropped.get_pixel(0, 5).0[3], + 0, + "drop mode removes the shadow" + ); + assert_eq!( + dropped.get_pixel(3, 3).0[3], + 255, + "the character stays opaque" + ); + } + + #[test] + fn edge_pixels_are_a_ramp_unblended_from_black() { + let matted = apply(&frame(), Shadow::Keep); + // Left neighbour of the body is background, so the body edge keeps full opacity. + assert_eq!(matted.get_pixel(1, 1).0[3], 255); + // A dim single pixel is a soft edge and gets its colour unblended. + let mut image = RgbImage::from_pixel(4, 4, Rgb([0, 0, 0])); + image.put_pixel(1, 1, Rgb([28, 26, 24])); + image.put_pixel(1, 2, Rgb([28, 26, 24])); + let matted = apply(&image, Shadow::Keep); + let edge = matted.get_pixel(1, 1).0; + assert!(edge[3] > 0 && edge[3] < 255, "soft edge alpha {}", edge[3]); + assert!(edge[0] >= 28, "edge colour is not darkened further"); + } + + #[test] + fn the_dim_halo_around_a_thin_detail_is_dropped() { + // A whisker: a hair over black, with the near black halo that used to read as a thick spike. + let mut image = RgbImage::from_pixel(8, 4, Rgb([0, 0, 0])); + for x in 2..6 { + image.put_pixel(x, 1, Rgb([14, 13, 12])); + image.put_pixel(x, 2, Rgb([70, 66, 60])); + } + let matted = apply(&image, Shadow::Keep); + assert_eq!(matted.get_pixel(2, 1).0[3], 0, "the halo is background"); + assert!(matted.get_pixel(2, 2).0[3] > 200, "the hair itself stays"); + } + + #[test] + fn fully_black_frame_has_no_content() { + let image = RgbImage::from_pixel(4, 4, Rgb([0, 0, 0])); + let matted = apply(&image, Shadow::Keep); + assert_eq!(content_bbox(&matted), None); + } + + #[test] + fn bbox_covers_opaque_pixels() { + let matted = apply(&frame(), Shadow::Keep); + assert_eq!(content_bbox(&matted), Some((1, 1, 3, 3))); + } + + #[test] + fn shadow_flag_parsing() { + assert_eq!(Shadow::parse("drop"), Some(Shadow::Drop)); + assert_eq!(Shadow::parse("keep"), Some(Shadow::Keep)); + assert_eq!(Shadow::parse("nope"), None); + } +}