AnimatedScene now defines how a scene with animated sprites and actors is structured and played.

This commit is contained in:
Zed A. Shaw 2025-10-22 00:11:36 -04:00
parent e1da089600
commit 25f7096489
10 changed files with 43 additions and 48 deletions

View file

@ -81,12 +81,11 @@ namespace components {
float scale;
};
struct BossFight {
struct AnimatedScene {
std::string background;
std::optional<std::string> floor;
std::string floor_pos;
json player;
json boss;
json actors;
json fixtures;
};
@ -152,7 +151,7 @@ namespace components {
using ComponentMap = std::unordered_map<std::string, ReflFuncSignature>;
ENROLL_COMPONENT(Tile, display, foreground, background);
ENROLL_COMPONENT(BossFight, background, floor, floor_pos, player, boss, fixtures);
ENROLL_COMPONENT(AnimatedScene, background, floor, floor_pos, actors, fixtures);
ENROLL_COMPONENT(Sprite, name, scale);
ENROLL_COMPONENT(Curative, hp);
ENROLL_COMPONENT(LightSource, strength, radius);