Finish main menu screen
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user