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:
parent
6e8aa48332
commit
eb8fb82837
9 changed files with 35 additions and 10 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue