Closed TheoPannetier closed 2 years ago
Here's a proposition to implement this:
Probably solved after
are solved. Probably.
It seems to work for default (i.e, running the game), but not when starting with the menu or options screens yet.
Ok, there's an issue with how variable next_view
is handled by the switch. Seems like every case is matched, including the error one?
Progress: the while loop actually works as intended. The issue is that we declare all _view
classes at once. The program creates one window for each of them, even if they're not used yet.
But that's a different problem than the scope of this issue, so I'll close here :)
So far, the game runs either
game_view
,menu_view
, oroptions_view
, then exits. Eventually, we want to be able to switch back and forth between windows, with the Menu as a central hub:It's time to try and think of how this can be implemented 🤔