First implementation of doing the usual update/render dance.

This commit is contained in:
Zed A. Shaw 2026-02-20 10:32:37 -05:00
parent 364f66bffb
commit 32e9c65331
5 changed files with 12 additions and 3 deletions

View file

@ -82,13 +82,17 @@ namespace boss {
$actions.render(*$window);
$combat_ui.render(*$window);
$arena.play_animations();
$arena.render($view_texture);
$view_texture.display();
$window->draw($view_sprite);
}
void UI::update() {
$arena.tick();
$arena.play_animations();
}
bool UI::mouse(float x, float y, Modifiers mods) {
// BUG: arena is getting the _window_ coordinates, not the rendertexture
return $combat_ui.mouse(x, y, mods)