Add game version display and DevLog global variables

This commit is contained in:
2026-05-27 02:41:46 +03:00
parent 73f103f8d2
commit f6749f80e1
2 changed files with 5 additions and 1 deletions
+1
View File
@@ -12,6 +12,7 @@ extern Color Dark_Green;
extern Color Light_Green; extern Color Light_Green;
extern Color Yellow; extern Color Yellow;
// DevLog buffering & global variables // DevLog buffering & global variables
extern std::vector<std::string> logHistory; extern std::vector<std::string> logHistory;
extern std::mutex logMutex; extern std::mutex logMutex;
+4 -1
View File
@@ -3,7 +3,9 @@
#include "menu.h" #include "menu.h"
#include "resource.h" #include "resource.h"
// Define global variables constexpr const char* gameVersion = "0.9.1";
// Define global colors
Color Green = Color{ 38, 185, 154, 255 }; Color Green = Color{ 38, 185, 154, 255 };
Color Dark_Green = Color{ 20, 160, 133, 255 }; Color Dark_Green = Color{ 20, 160, 133, 255 };
Color Light_Green = Color{ 129, 204, 184, 255 }; Color Light_Green = Color{ 129, 204, 184, 255 };
@@ -186,6 +188,7 @@ int main() {
DrawText("Use UP/DOWN to navigate | ENTER to select", DrawText("Use UP/DOWN to navigate | ENTER to select",
screen_width / 2 - menuHintWidth / 2, screen_width / 2 - menuHintWidth / 2,
screen_height - 80, 20, WHITE); screen_height - 80, 20, WHITE);
DrawText(TextFormat("v%s", gameVersion), 20, screen_height - 40, 20, LIGHTGRAY);
break; break;
} }
case GameState::DifficultySelect: case GameState::DifficultySelect: