First implementation of doing the usual update/render dance.
This commit is contained in:
parent
364f66bffb
commit
32e9c65331
5 changed files with 12 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue