Animations are now happening lock-step but I have to add random animations in next_combat for it to work. Need more for each result.

This commit is contained in:
Zed A. Shaw 2026-01-10 23:54:52 -05:00
parent 63260f01b9
commit c6639998ec
9 changed files with 60 additions and 4 deletions

View file

@ -177,6 +177,12 @@ namespace scene {
zoom(mid_x, mid_y, style, scale);
}
void Engine::set_end_cb(std::function<void()> cb) {
for(auto& actor : $actors) {
actor.anim.end_cb = cb;
}
}
void Engine::reset(sf::RenderTexture& view) {
$camera.reset(view);
}