Created LevelSelectorState

- code removed from main.cpp and added into a new class
This commit is contained in:
2025-08-17 09:10:49 +02:00
parent eddd1a24b2
commit 0e0519b0e9
9 changed files with 346 additions and 173 deletions

View File

@ -43,7 +43,6 @@ struct StateContext {
int* startLevelSelection = nullptr;
int* hoveredButton = nullptr;
// Menu popups (exposed from main)
bool* showLevelPopup = nullptr;
bool* showSettingsPopup = nullptr;
bool* showExitConfirmPopup = nullptr; // If true, show "Exit game?" confirmation while playing
// Pointer to the application's StateManager so states can request transitions