Now have the ability to place animated fixtures anywhere and to flip them.

This commit is contained in:
Zed A. Shaw 2025-10-20 00:29:12 -04:00
parent e99c07b50c
commit 387d1a5bf5
7 changed files with 36 additions and 17 deletions

View file

@ -11,7 +11,11 @@ struct AnimatedFixture {
textures::SpriteTexture st;
components::Animation anim;
std::string cell;
float scale;
float scale_x;
float scale_y;
float x;
float y;
bool at_mid=false;
};
namespace boss {
@ -39,7 +43,7 @@ namespace boss {
void init();
void render(sf::RenderWindow& window);
bool mouse(float x, float y, guecs::Modifiers mods);
void position_sprite(SpriteTexture& st, const std::string& cell_name, float scale, bool at_mid=false);
void position_sprite(textures::SpriteTexture& st, const std::string& cell_name, float scale_x, float scale_y, bool at_mid, float x_diff=0.0f, float y_diff=0.0f);
void status(const std::wstring& msg);
void move_boss(const std::string& cell_name);
void move_player(const std::string& cell_name);