Basic ability to create a 'stage' for a boss fight, which is a thing in front the boss animates behind.

This commit is contained in:
Zed A. Shaw 2025-03-04 22:16:47 -05:00
parent 8b414c13e6
commit 243b4c2663
8 changed files with 25 additions and 3 deletions

View file

@ -69,6 +69,7 @@ namespace components {
struct BossFight {
std::string background;
std::string stage;
std::string weapon_sound;
};
@ -128,7 +129,7 @@ namespace components {
template <typename T> struct NameOf;
ENROLL_COMPONENT(Tile, display, foreground, background);
ENROLL_COMPONENT(BossFight, background, weapon_sound);
ENROLL_COMPONENT(BossFight, background, stage, weapon_sound);
ENROLL_COMPONENT(Sprite, name, width, height, scale);
ENROLL_COMPONENT(Curative, hp);
ENROLL_COMPONENT(LightSource, strength, radius);