Refactor game architecture and enhance features

This commit is contained in:
2026-05-21 17:29:18 +03:00
parent 0573b384b3
commit 7493daf004
5 changed files with 678 additions and 833 deletions
+10 -3
View File
@@ -3,8 +3,7 @@
#include <string>
#include <vector>
// --- UI / Systems ---
// Menu UI controller
class Menu {
private:
std::string title;
@@ -18,4 +17,12 @@ public:
int Update();
void Draw();
};
};
// Settings and lobby routines
void ApplyResolution(int width, int height);
void ApplyFramerate(int option);
void UpdateSettingsState(GameContext& ctx);
void DrawSettingsState(const GameContext& ctx, int screenWidth, int screenHeight);
void UpdateLobbyState(GameContext& ctx);
void DrawLobbyState(const GameContext& ctx, int screenWidth, int screenHeight);