From 547e8ec9935154dd5bfaae3783ab451f0ecca480 Mon Sep 17 00:00:00 2001 From: "Zed A. Shaw" Date: Wed, 11 Feb 2026 13:00:57 -0500 Subject: [PATCH] The animation tool now works and I used it to design an idle animation with the classic bounce. --- animate2.cpp | 2 +- assets/animate2.json | 16 ++++++++-------- tools/animator.cpp | 6 ------ 3 files changed, 9 insertions(+), 15 deletions(-) diff --git a/animate2.cpp b/animate2.cpp index b4fcfbc..31cdcc3 100644 --- a/animate2.cpp +++ b/animate2.cpp @@ -81,7 +81,7 @@ namespace animate2 { bool frame_change = false; if(elapsed < duration) { - // BUG: subframe will just run crazy because I don't actually do delta time difference here vvvvv + // BUG: subframe will just run crazy because I don't actually do delta time difference here sequence.subframe = std::lerp(sequence.subframe, 1.0, sequence.timer.DELTA * transform.ease_rate); } else { sequence.timer.restart(); diff --git a/assets/animate2.json b/assets/animate2.json index f1ed41f..85976d6 100644 --- a/assets/animate2.json +++ b/assets/animate2.json @@ -38,17 +38,17 @@ "motion": "move_shake" }, "breathe": { - "min_x": 0.90, - "min_y": 0.90, - "max_x": 1.0, - "max_y": 1.0, + "min_x": 0, + "min_y": 0, + "max_x": 0, + "max_y": -10, "flipped": false, - "ease_rate": 3.5, - "scaled": true, + "ease_rate": 3.0, + "scaled": false, "toggled": false, "looped": true, - "easing": "in_out_back", - "motion": "scale_squeeze" + "easing": "sine", + "motion": "move_bounce" } }, "forms": { diff --git a/tools/animator.cpp b/tools/animator.cpp index 99872d7..a53b5c1 100644 --- a/tools/animator.cpp +++ b/tools/animator.cpp @@ -12,12 +12,6 @@ #include #include -/* - * TODO: - * - * - Bring back shaders. - */ - using namespace std::chrono_literals; bool YES_SYNC=true;