#include "all.h" void UpdateMenu(void) { if (IsKeyPressed(KEY_ENTER)) { if (LoadMap(game.map_path)) { game.mode = STATE_PLAYING; game.cursor_captured = true; DisableCursor(); } } } void DrawMenu(void) { BeginDrawing(); ClearBackground(BLACK); int screenWidth = GetScreenWidth(); int screenHeight = GetScreenHeight(); const char *title = "STALAG"; const char *sub = "Press ENTER to Start"; int titleSize = 60; int subSize = 20; Vector2 titlePos = { (float)(screenWidth - MeasureTextEx(game.font_ui, title, (float)titleSize, 4).x) / 2, (float)screenHeight / 2 - 40 }; Vector2 subPos = { (float)(screenWidth - MeasureTextEx(game.font_ui, sub, (float)subSize, 2).x) / 2, (float)screenHeight / 2 + 40 }; DrawTextEx(game.font_ui, title, titlePos, (float)titleSize, 4, WHITE); DrawTextEx(game.font_ui, sub, subPos, (float)subSize, 2, GRAY); EndDrawing(); }