Camera is now using Animate2 and it's mostly working, but there's a few more refactors needed.

This commit is contained in:
Zed A. Shaw 2026-02-20 00:15:19 -05:00
parent 46cc21ec7b
commit 364f66bffb
14 changed files with 106 additions and 62 deletions

View file

@ -50,6 +50,7 @@ int main(int, char*[]) {
dbc::check(main->$world == world, "GameDB::current_world doesn't match boss fight world.");
while(!main->in_state(boss::State::END)) {
dbc::log("IDIOT! make this an update.");
main->$ui.$arena.tick();
main->render(window);

View file

@ -30,6 +30,9 @@ int main(int, char*[]) {
main.init();
while(main.playing()) {
main.update();
main.render(window);
while(const auto ev = window.pollEvent()) {
auto gui_ev = router.process_event(ev);
auto mouse_pos = window.mapPixelToCoords(router.position);
@ -41,7 +44,6 @@ int main(int, char*[]) {
}
}
main.render(window);
window.display();
}