Basic arena working that lets me work on the boss fight system quicker.

This commit is contained in:
Zed A. Shaw 2025-10-16 12:00:33 -04:00
parent 7f10c5b3d7
commit a578c49a77
11 changed files with 110 additions and 217 deletions

View file

@ -109,7 +109,6 @@ namespace components {
string name;
int width;
int height;
float scale;
};
struct Sound {
@ -118,7 +117,8 @@ namespace components {
};
struct Animation {
float scale = 0.0f;
float scale = 1.0f;
float max_scale = 1.0f;
bool simple = true;
int frames = 10;
float speed = 0.3f;
@ -150,7 +150,7 @@ namespace components {
ENROLL_COMPONENT(Tile, display, foreground, background);
ENROLL_COMPONENT(BossFight, background, floor, floor_pos, player, boss);
ENROLL_COMPONENT(Sprite, name, width, height, scale);
ENROLL_COMPONENT(Sprite, name, width, height);
ENROLL_COMPONENT(Curative, hp);
ENROLL_COMPONENT(LightSource, strength, radius);
ENROLL_COMPONENT(Position, location.x, location.y);
@ -159,7 +159,7 @@ namespace components {
ENROLL_COMPONENT(Motion, dx, dy, random);
ENROLL_COMPONENT(Combat, hp, max_hp, damage, dead);
ENROLL_COMPONENT(Device, config, events);
ENROLL_COMPONENT(Animation, scale, simple, frames,
ENROLL_COMPONENT(Animation, scale, max_scale, simple, frames,
speed, easing, ease_rate, stationary);
ENROLL_COMPONENT(Sound, attack, death);
ENROLL_COMPONENT(Collision, has);