Cutscenes are now integrated into the game. LONG LIVE THE RAT KING!

This commit is contained in:
Zed A. Shaw 2025-11-14 01:25:10 -05:00
parent fa4573be7b
commit 8fdaadaf12
5 changed files with 30 additions and 17 deletions

View file

@ -29,8 +29,7 @@ int main(int, char*[]) {
storyboard::UI main("rat_king");
main.init();
while(true) {
while(main.playing()) {
while(const auto ev = window.pollEvent()) {
auto gui_ev = router.process_event(ev);
auto mouse_pos = window.mapPixelToCoords(router.position);
@ -41,6 +40,7 @@ int main(int, char*[]) {
main.mouse(mouse_pos.x, mouse_pos.y, guecs::NO_MODS);
}
}
main.render(window);
window.display();
}