BossFightUI now loads out of LevelManager and is treated like a normal level. This also adds a prototype for a different kind of 'stationary' boss to prototype its motions.

This commit is contained in:
Zed A. Shaw 2025-03-04 09:31:15 -05:00
parent 6e8aa48332
commit eb8fb82837
9 changed files with 35 additions and 10 deletions

View file

@ -12,6 +12,7 @@ namespace components {
}
void configure(ComponentMap& component_map) {
components::enroll<BossFight>(component_map);
components::enroll<Combat>(component_map);
components::enroll<Loot>(component_map);
components::enroll<Position>(component_map);
@ -36,6 +37,8 @@ namespace components {
float Animation::twitching() {
switch(easing) {
case ease::NONE:
return 0.0;
case ease::SINE:
return ease::sine(float(frames) / subframe * ease_rate);
case ease::OUT_CIRC: