Commit graph

29 commits

Author SHA1 Message Date
Zed A. Shaw
81a282d544 Finally renamed animate2 to animation thus completing the refactor. There's still things to do to make the new animation actually work though. 2026-02-24 11:36:57 -05:00
Zed A. Shaw
e3065f7add Cleaning out stray animation.hpp files to make finding usage easier. 2026-02-23 00:21:57 -05:00
Zed A. Shaw
1baca783fc Sorted out the animation vs. easing contradiction I believe. Now there's a separate easing_duration that's calculated from the total duration of all frames. Then a easing_position determines where in the total the animation is, which is fed to the asing functions as a ration of easing_position / easing_duration. 2026-02-21 01:57:33 -05:00
Zed A. Shaw
0e8b661273 Figured out the crash, but want to see what valgrind would say. 2026-02-12 12:59:35 -05:00
Zed A. Shaw
547e8ec993 The animation tool now works and I used it to design an idle animation with the classic bounce. 2026-02-11 13:00:57 -05:00
Zed A. Shaw
80f100f223 Can now apply a shader using the animation's timer but not sure if there should be shaders on animations or outside or both. 2026-02-09 13:58:28 -05:00
Zed A. Shaw
0d481a5ab7 Animator won't crash anymore when there's an error, and instead displays an error message. 2026-02-07 13:05:24 -05:00
Zed A. Shaw
46f34828e4 Sound is now working, and the animator tools will play them and also has mute. 2026-02-06 13:39:34 -05:00
Zed A. Shaw
a4ffacdb18 Fix up the animator to show the initial form. 2026-02-06 12:23:17 -05:00
Zed A. Shaw
4356b1535e Animation tool now lets you cycle through different sequence/transform 'forms' and shows you which one you're viewing. 2026-02-04 15:10:07 -05:00
Zed A. Shaw
07b2102f59 The gorious Lord Keith the Rat King can now have easing and motion functions that are defined in json and hot-reloaded. 2026-02-04 00:59:26 -05:00
Zed A. Shaw
77643a4bcd Can now specify a background to render the sprite on. 2026-02-04 00:04:17 -05:00
Zed A. Shaw
fc01579232 Space now stops/starts the animation. 2026-02-03 23:30:12 -05:00
Zed A. Shaw
961a470844 Animator now starts off as being the size of the sprite. 2026-02-03 23:24:39 -05:00
Zed A. Shaw
ce3d142208 Fixed a test that failed because loop was set on the tranform being used. 2026-02-03 22:34:19 -05:00
Zed A. Shaw
c092b82dfc Animator tool now has no UI, it just watches the file to change time and reloads. 2026-02-03 13:03:38 -05:00
Zed A. Shaw
dea0607901 Now loading the new animations out of assets/animate2.json 2026-02-03 00:30:49 -05:00
Zed A. Shaw
df730047ac Animator tool can now play, stop, loop, and toggle an animation. 2026-02-02 00:02:10 -05:00
Zed A. Shaw
7d79e75651 Decided that it's better to adjust the ease_rate manually/visually rather than try to math it. That's what the animator tool is for. 2026-01-31 13:05:56 -05:00
Zed A. Shaw
ca335d21e5 All of the original features now work: simple, flipped, scaled, toggled, looped and stationary is replaced by ease2::scale_only. 2026-01-31 11:40:45 -05:00
Zed A. Shaw
34e4a34f65 Nearly perfect sync between transform and animation, but not sure how to replicate that reliably. 2026-01-30 23:57:02 -05:00
Zed A. Shaw
d4e79f1d3d Animation API getting better but now need to resolve how it works with the frames. 2026-01-30 23:26:35 -05:00
Zed A. Shaw
785d0240da Animator now can apply transforms using the timer alpha which mostly works. 2026-01-28 00:29:39 -05:00
Zed A. Shaw
7f14a39edf Most of the transforms kind of work now need to hook in the new timer. 2026-01-27 23:39:09 -05:00
Zed A. Shaw
20d7612f1c Animation now applies to the animator tool and works. 2026-01-27 13:44:46 -05:00
Zed A. Shaw
b7394f832d Now have a timer for animations that does ticks with deltatime...maybe it works. 2026-01-27 12:52:33 -05:00
Zed A. Shaw
5b509c277a Use chrono::duration for animation frame durations. 2026-01-19 11:50:00 -05:00
Zed A. Shaw
d81e127686 Get the FSM for the GUIworked out and fix the rendering so it works right. 2026-01-18 23:12:19 -05:00
Zed A. Shaw
81cbc24064 Have the start of an animation dev tool. 2026-01-17 23:43:44 -05:00