Now have the ability to place animated fixtures anywhere and to flip them.
This commit is contained in:
parent
e99c07b50c
commit
387d1a5bf5
7 changed files with 36 additions and 17 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue