Commit graph

233 commits

Author SHA1 Message Date
Zed A. Shaw
8090251a71 I can validate that a map is pathable, but can't fix it. 2026-03-10 00:42:58 -04:00
Zed A. Shaw
74f92dfe2c Gave up on adding a buffer and I'll just let rooms be near eachother. Seems to produce interesting results anyway. 2026-03-09 11:12:26 -04:00
Zed A. Shaw
8b129aea6b More refinement of the maps. Now the inner box won't have rooms in it and I can mark a region free of rooms. Rooms also have a guaranteed door. 2026-03-08 12:25:40 -04:00
Zed A. Shaw
87a1193a4a Tone down the map gen tests. 2026-03-08 03:31:18 -04:00
Zed A. Shaw
fb41c153c1 With some help from chat I sorted out how to randomize rooms without overlap. 2026-03-08 03:28:49 -04:00
Zed A. Shaw
47c0d4a5f0 Initial fix for large center rooms not having entry exit. 2026-03-07 00:10:42 -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
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
b91e9ffaf6 Algos directory is setup. 2026-02-27 12:07:01 -05:00
Zed A. Shaw
0064664556 Matrix moved. 2026-02-27 11:43:14 -05:00
Zed A. Shaw
5863920105 Combat is now working. 2026-02-27 11:28:56 -05:00
Zed A. Shaw
13ec422aae AI is now moved. 2026-02-27 11:21:42 -05:00
Zed A. Shaw
1d4ae911b9 Files are now in a src directory and I'm using a src/meson.build and tests/meson.build to specify what to build. 2026-02-27 10:49:19 -05:00
Zed A. Shaw
b61dd167b8 Needed to remove more dead code. 2026-02-27 00:08:29 -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
89ca204f3d Now the Animation system is no more. Next is cleaning up the quick hacks I needed to finally get rid of it, like animate2::has. 2026-02-23 23:41:14 -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
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
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
a4ffacdb18 Fix up the animator to show the initial form. 2026-02-06 12:23:17 -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
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
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
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
Zed A. Shaw
5b509c277a Use chrono::duration for animation frame durations. 2026-01-19 11:50:00 -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
7d08e60537 First idea for the new animation api. 2026-01-17 00:08:08 -05:00
Zed A. Shaw
acadf3ca31 Started a TDD for the new animation system. 2026-01-15 14:06:30 -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
37b007d79c Fix a bug in palette that kept it from being idempotent. 2025-12-12 11:41:57 -05:00
Zed A. Shaw
986b2612d4 [BREAKING] Battle system now runs the turn based combat better, and lots of interesting things like if you don't choose an action the host AI rebels and does it for you. 2025-12-11 13:49:53 -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
1537a81aac Cleanup before refactoring the boss/fight.cpp code. 2025-12-05 12:02:57 -05:00
Zed A. Shaw
94b46a2f95 Fix up the main game based on arena changes. 2025-12-05 11:20:35 -05:00
Zed A. Shaw
f839edcd56 BattleEngine is now connected to the boss::UI so as you click it'll continually run the plan and figure out the AI actions. 2025-12-05 00:51:35 -05:00
Zed A. Shaw
a38bb5b691 Basic AP (Action Points) system tied to the AI actions, but there's no way to set 'has AP' for the AI? 2025-12-03 15:24:41 -05:00