Created a nice utility library for doing animations, and used it in the ritual crafting UI.
This commit is contained in:
parent
0a40135f5d
commit
1aa6674e42
14 changed files with 213 additions and 150 deletions
|
@ -32,7 +32,7 @@ namespace gui {
|
|||
void BossFightUI::configure_sprite() {
|
||||
$sprite_config = $world->get<components::Sprite>($boss_id);
|
||||
$animation = $world->get<components::Animation>($boss_id);
|
||||
$animation.texture_width = $sprite_config.width;
|
||||
$animation.frame_width = $sprite_config.width;
|
||||
|
||||
$boss_image = textures::get($sprite_config.name);
|
||||
sf::IntRect frame_rect{{0,0},{$sprite_config.width,$sprite_config.height}};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue