Commit graph

88 commits

Author SHA1 Message Date
Zed A. Shaw
f85ae8a6c6 Better map generation and a test that re-rolls maps that aren't valid to figure out the stats of map gen failures. 2026-03-11 12:31:51 -04:00
Zed A. Shaw
f0b04107ab Best I can do to simplify the check(fmt::format)crap is to make a little macro to do the format part. 2026-03-05 12:39:22 -05:00
Zed A. Shaw
5179f1c781 Final move of files to a better place. Only thing in the root is very common stuff. 2026-02-27 15:10:17 -05:00
Zed A. Shaw
f460add0af Graphics reorg done. 2026-02-27 14:11:13 -05:00
Zed A. Shaw
86a9f815c1 animation and lights moved to graphics 2026-02-27 13:57:44 -05:00
Zed A. Shaw
229ad2dd95 Textures and palette moved to graphics. 2026-02-27 13:09:44 -05:00
Zed A. Shaw
13ec422aae AI is now moved. 2026-02-27 11:21:42 -05:00
Zed A. Shaw
b61dd167b8 Needed to remove more dead code. 2026-02-27 00:08:29 -05:00
Zed A. Shaw
779599f030 Entities in the world are now animated like before using the new animation system. 2026-02-25 12:13:43 -05:00
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
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
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
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
60c405b1fc Refactor the animate2 and then start working on the motion feature. 2026-01-21 13:13:58 -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
Zed A. Shaw
05fc9062a7 The shader effects now work correctly on the scene actors, but the application of shaders should be on the animation class. 2026-01-02 23:23:05 -05:00
Zed A. Shaw
8208d146de Can now see an enemy take damage, and a damage number, but the effect is inverted. 2025-12-28 02:05:30 -05:00
Zed A. Shaw
4b4f9b3916 Boss fight is now working. Turned out to be something really dumb. 2025-12-19 12:04:51 -05:00
Zed A. Shaw
c618a4828f Finally unified all of my events into one place. 2025-12-17 12:51:15 -05:00
Zed A. Shaw
bf8ce7e16b Fixed some things but now the world and boss fight worlds are out of sync and need to be fixed. tools/arena is broken. 2025-12-13 13:13:59 -05:00
Zed A. Shaw
9739441a9c Beginning state machine for controlling the boss fight UI is up. 2025-12-07 00:21:07 -05:00
Zed A. Shaw
b48df3f4db Can now run the full AI for all combatants and then sort by the action costs to make the action queue. 2025-11-27 12:46:14 -05:00
Zed A. Shaw
8fdaadaf12 Cutscenes are now integrated into the game. LONG LIVE THE RAT KING! 2025-11-14 01:25:10 -05:00