Commit graph

33 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
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
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
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
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
c6639998ec Animations are now happening lock-step but I have to add random animations in next_combat for it to work. Need more for each result. 2026-01-10 23:54:52 -05:00
Zed A. Shaw
63260f01b9 Refactor before working on animations sending events. 2026-01-06 23:50:03 -05:00
Zed A. Shaw
a1c3f4df5a Tried to refactor for but #42 but nothing worked. I'll try later. 2026-01-03 00:42:42 -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
22db12f5e4 Can now pan and move the camera to focus on bosses, player, and their actions. 2026-01-02 10:57:44 -05:00
Zed A. Shaw
51bb74e2d7 Better working camera that is constrained in the bounds, but the animations don't follow the bounding. 2026-01-01 12:59:39 -05:00
Zed A. Shaw
6dc9d564c6 Fixed the boss::UI::damage so it says who hit who. 2025-12-30 01:11:08 -05:00
Zed A. Shaw
5676382fbb Moved the camera into the scene where it belongs. 2025-12-29 23:37:42 -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
f175a5d4aa Animations can work on Sprites,Transformables, and Views and the arena shows the hit/miss text so it follows the entity and hides when the animation stops. 2025-12-24 14:18:41 -05:00
Zed A. Shaw
0d23cf9537 Moved the text attaching code to the arena. 2025-12-24 00:58:38 -05:00
Zed A. Shaw
f50e713179 Now have enough state to show what's going on in the fight, next is to use graphics and stuff to make it better. 2025-12-23 00:11:31 -05:00
Zed A. Shaw
d60e1af6df A bit of refactor to put apply in Animation where it belongs. 2025-11-01 11:13:12 -04:00
Zed A. Shaw
740e1052fe Finally have the boss fight rendering into a render texture correctly. The 'flipped' problem was because I didn't call .display() in render. 2025-10-31 12:50:20 -04:00
Zed A. Shaw
2ecd8528ea Can indicate that a animation is flipped, which will *-1 on the x. 2025-10-27 23:54:31 -04:00
Zed A. Shaw
949bbd4f15 Better easings and motion but I need better data. 2025-10-27 22:22:57 -04:00
Zed A. Shaw
f8158a3ea9 Animated scenes can easily make floors that do things, floors with moving elements, but I need to improve the easing/motion parts of the animations. 2025-10-24 00:24:29 -04:00
Zed A. Shaw
2d836a9e2a The layout is now also coming from the bosses.json file so it's totally configured there. 2025-10-23 23:11:48 -04:00
Zed A. Shaw
e5fa76b03c Floor is now just a fixture. 2025-10-23 14:12:04 -04:00
Zed A. Shaw
23f54bd4fe Now fixtures and actors are loaded the same. 2025-10-23 13:48:58 -04:00
Zed A. Shaw
4f39f2a504 Moved the animated scene into its own system for better development. 2025-10-23 11:37:35 -04:00