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

@ -67,6 +67,11 @@ namespace components {
int hp = 10;
};
struct BossFight {
std::string background;
std::string weapon_sound;
};
struct Combat {
int hp;
int max_hp;
@ -122,6 +127,7 @@ namespace components {
template <typename T> struct NameOf;
ENROLL_COMPONENT(Tile, display, foreground, background);
ENROLL_COMPONENT(BossFight, background, weapon_sound);
ENROLL_COMPONENT(Sprite, name, width, height, scale);
ENROLL_COMPONENT(Curative, hp);
ENROLL_COMPONENT(LightSource, strength, radius);