Animations are refactored to let me spawn in an 'attack animation' but I think the data model is wrong. Rather than spawning in an animation every time I can probably just make one, reposition it, then tell it to play. I'll have to try it.
This commit is contained in:
parent
8384b11993
commit
ad3e580495
15 changed files with 109 additions and 56 deletions
|
|
@ -43,11 +43,11 @@ TEST_CASE("animation utility API", "[animation]") {
|
|||
animation::init();
|
||||
|
||||
auto blanket = textures::get_sprite("ritual_crafting_area");
|
||||
auto anim = animation::load("ritual_blanket");
|
||||
auto anim = animation::load("ritual_crafting_area");
|
||||
|
||||
anim.play();
|
||||
|
||||
while(animation::apply(anim, blanket)) {
|
||||
while(animation::apply(anim, *blanket.sprite)) {
|
||||
fmt::println("animation: {}", anim.subframe);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue