Cutscenes are now integrated into the game. LONG LIVE THE RAT KING!
This commit is contained in:
parent
fa4573be7b
commit
8fdaadaf12
5 changed files with 30 additions and 17 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue