Commit graph

839 commits

Author SHA1 Message Date
Zed A. Shaw
b504afef2a The ritual blanket now has the new animation and gained the ability to play the animation reversed for the closing animation. 2026-02-23 12:05:56 -05:00
Zed A. Shaw
1a9c395ae6 Hand animation is now converted. 2026-02-23 11:27:54 -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
0fefc83c36 stories.json now encodes the duration for a transform so that the time code of the event isn't also controlling the time that the transform runs. 2026-02-22 23:40:00 -05:00
Zed A. Shaw
088f9e022e Refactor the story->camera converter to be a part of the camera. 2026-02-22 23:02:02 -05:00
Zed A. Shaw
024d0cfae7 storyboard::UI now adapts the camera to fit the story beats, but really story should do that. 2026-02-22 12:14:42 -05:00
Zed A. Shaw
d56b4bd335 Added invariants to the Sequence to hunt down a bug in the tests but I'll leave it there for future testing. 2026-02-21 13:24:39 -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
0c798c9e0d Fixed the way scene updates, but it's still not connecting the ticks to the updates in animation. 2026-02-20 11:06:14 -05:00
Zed A. Shaw
32e9c65331 First implementation of doing the usual update/render dance. 2026-02-20 10:32:37 -05:00
Zed A. Shaw
364f66bffb Camera is now using Animate2 and it's mostly working, but there's a few more refactors needed. 2026-02-20 00:15:19 -05:00
Zed A. Shaw
46cc21ec7b Camera is now using animate2 but isn't actually using it yet. Just converted. 2026-02-17 00:55:41 -05:00
Zed A. Shaw
7bf7b25a10 Make the player just stand instead of bounce. 2026-02-15 22:52:24 -05:00
Zed A. Shaw
f8a8033890 Arena is working with the new animate2 but boss/fight.cpp needs a complete overhaul. 2026-02-15 12:04:53 -05:00
Zed A. Shaw
ba91929bfd Everyone has different animations, but they tend to cancel each other out. Need to refine it next. 2026-02-13 23:57:16 -05:00
Zed A. Shaw
458bf7e25e Scene now renders correctly, but I need to pull out the json in config_scene_element and make a component that's loaded. 2026-02-13 23:30:57 -05:00
Zed A. Shaw
2cef58be69 Found it. I was taking a reference to a function pointer that was on the stack. 2026-02-13 12:38:25 -05:00
Zed A. Shaw
2484802d93 Torches are now flipped, but next is that same crash. 2026-02-13 11:10:13 -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
aaf5aa4165 Arena is now using the new animate2 but needs to be fixed. 2026-02-11 13:57:19 -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
383f839fdf Update Makefile to do the new animator command line options. 2026-02-04 00:14:38 -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
bdfc2397e2 Fix up the animation test so that it works with random timings even if the example has a timing. 2026-02-03 11:17:36 -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
c0f69ed026 Ease2 is the new way to do easing functions. 2026-01-22 22:32:13 -05:00
Zed A. Shaw
31b815d43e Animation motion() almost works but need to tweak the calculations so they go for the length of the animation? 2026-01-21 23:53:13 -05:00
Zed A. Shaw
60c405b1fc Refactor the animate2 and then start working on the motion feature. 2026-01-21 13:13:58 -05:00
Zed A. Shaw
992b8f0e0a Added an onFrame callback that only is called when a frame change happens. 2026-01-21 00:06:39 -05:00
Zed A. Shaw
ba966aa7bf Animation now applies frame data to sprites. 2026-01-20 23:45:41 -05:00
Zed A. Shaw
d65883fa03 Don't need this. 2026-01-19 11:51:53 -05:00