The whole boss fight scene is now configurable with json.

This commit is contained in:
Zed A. Shaw 2025-09-27 11:58:44 -04:00
parent 06f6098281
commit 06a174040f
5 changed files with 29 additions and 43 deletions

View file

@ -79,7 +79,9 @@ namespace components {
struct BossFight {
std::string background;
std::optional<std::string> floor;
std::string weapon_sound;
std::string floor_pos;
json player;
json boss;
};
struct Combat {
@ -147,7 +149,7 @@ namespace components {
using ComponentMap = std::unordered_map<std::string, ReflFuncSignature>;
ENROLL_COMPONENT(Tile, display, foreground, background);
ENROLL_COMPONENT(BossFight, background, floor, weapon_sound);
ENROLL_COMPONENT(BossFight, background, floor, floor_pos, player, boss);
ENROLL_COMPONENT(Sprite, name, width, height, scale);
ENROLL_COMPONENT(Curative, hp);
ENROLL_COMPONENT(LightSource, strength, radius);