Finish main menu screen

This commit is contained in:
2024-02-12 17:18:37 +01:00
parent 10c6d74e90
commit abaa778aab
9 changed files with 759 additions and 491 deletions

View File

@@ -319,7 +319,7 @@ void drawGameOverUI(Game *game, f32 dt) {
if (uiMainMenuButton("Exit", true)) {
setScreen(game, SCREEN_MAIN_MENU);
unloadMap(game);
loadMap(game, "assets/maps/main_menu_01.tmj");
loadMap(game, "assets/maps/main_menu_01.tmj", true);
}
bzUIPopParent(UI);
bzUIEnd(UI);
@@ -354,7 +354,7 @@ void drawPauseUI(Game *game, f32 dt) {
if (uiMainMenuButton("Exit", true)) {
setScreen(game, SCREEN_MAIN_MENU);
unloadMap(game);
loadMap(game, "assets/maps/main_menu_01.tmj");
loadMap(game, "assets/maps/main_menu_01.tmj", true);
}
bzUIPopParent(UI);
bzUIEnd(UI);
@@ -392,7 +392,7 @@ void drawMainMenuUI(Game *game, f32 dt) {
//loadMap(game, "assets/maps/entity_test.tmj");
//loadMap(game, "assets/maps/worker_test.tmj");
//loadMap(game, "assets/maps/battle_test.tmj");
loadMap(game, "assets/maps/map_01.tmj");
loadMap(game, "assets/maps/map_01.tmj", false);
}
if (uiMainMenuButton("Settings", true)) {
setScreen(game, SCREEN_SETTINGS);