From dd3ed03212bd55bce000cec794b6058966542d99 Mon Sep 17 00:00:00 2001 From: Moe Poi ~ Date: Wed, 25 Oct 2023 17:45:18 +0700 Subject: [PATCH] Clear some components after victory --- export_presets.cfg | 8 ++++---- scenes/ui/main_menu.tscn | 2 +- scripts/stages/1/game_manager.gd | 6 ++++++ scripts/stages/2/game_manager.gd | 6 ++++++ scripts/stages/3/game_manager.gd | 6 ++++++ scripts/stages/4/game_manager.gd | 6 ++++++ scripts/stages/5/game_manager.gd | 6 ++++++ scripts/stages/6/game_manager.gd | 6 ++++++ 8 files changed, 41 insertions(+), 5 deletions(-) diff --git a/export_presets.cfg b/export_presets.cfg index 28b6e43..61a644b 100644 --- a/export_presets.cfg +++ b/export_presets.cfg @@ -22,12 +22,12 @@ gradle_build/use_gradle_build=false gradle_build/export_format=0 gradle_build/min_sdk="" gradle_build/target_sdk="" -architectures/armeabi-v7a=false +architectures/armeabi-v7a=true architectures/arm64-v8a=true architectures/x86=false architectures/x86_64=false version/code=1 -version/name="0.2.0" +version/name="0.2.1" package/unique_name="dev.moepoi.frontierofhell" package/name="Frontier of Hell" package/signed=true @@ -237,8 +237,8 @@ application/modify_resources=true application/icon="res://assets/icons/app-logo.png" application/console_wrapper_icon="" application/icon_interpolation=4 -application/file_version="0.0.1.0" -application/product_version="0.0.1.0" +application/file_version="0.0.2.1" +application/product_version="0.0.2.1" application/company_name="Moepoi" application/product_name="Frontier of Hell" application/file_description="~" diff --git a/scenes/ui/main_menu.tscn b/scenes/ui/main_menu.tscn index 41a1b4a..2f5fffe 100644 --- a/scenes/ui/main_menu.tscn +++ b/scenes/ui/main_menu.tscn @@ -2,7 +2,7 @@ [ext_resource type="Texture2D" uid="uid://c1qbpse383sys" path="res://assets/backgrounds/main-bg.png" id="1_28cjd"] [ext_resource type="Script" path="res://scripts/ui/main_menu.gd" id="1_6741p"] -[ext_resource type="Texture2D" uid="uid://dm8ug0o5361wn" path="res://assets/icons/logo-main.png" id="2_l26fo"] +[ext_resource type="Texture2D" uid="uid://dm8ug0o5361wn" path="res://assets/icons/logo.png" id="2_l26fo"] [node name="MainMenu" type="Control"] layout_mode = 3 diff --git a/scripts/stages/1/game_manager.gd b/scripts/stages/1/game_manager.gd index b7201ae..4e61692 100644 --- a/scripts/stages/1/game_manager.gd +++ b/scripts/stages/1/game_manager.gd @@ -114,6 +114,12 @@ func on_enemy_reward(value: int): func _on_duration_timeout(): get_tree().paused = true + + # Clear some components + $CanvasLayer/TowerMenu.hide() + $CanvasLayer/GameStats.hide() + $CanvasLayer/GameDuration.hide() + $CanvasLayer/Victory.unlock_next_stage() $CanvasLayer/Victory.show() $CanvasLayer/Victory/AudioStreamPlayer.play() diff --git a/scripts/stages/2/game_manager.gd b/scripts/stages/2/game_manager.gd index 7e01e85..181c9b8 100644 --- a/scripts/stages/2/game_manager.gd +++ b/scripts/stages/2/game_manager.gd @@ -113,6 +113,12 @@ func on_enemy_reward(value: int): func _on_duration_timeout(): get_tree().paused = true + + # Clear some components + $CanvasLayer/TowerMenu.hide() + $CanvasLayer/GameStats.hide() + $CanvasLayer/GameDuration.hide() + $CanvasLayer/Victory.unlock_next_stage() $CanvasLayer/Victory.show() $CanvasLayer/Victory/AudioStreamPlayer.play() \ No newline at end of file diff --git a/scripts/stages/3/game_manager.gd b/scripts/stages/3/game_manager.gd index c310298..05da798 100644 --- a/scripts/stages/3/game_manager.gd +++ b/scripts/stages/3/game_manager.gd @@ -113,6 +113,12 @@ func on_enemy_reward(value: int): func _on_duration_timeout(): get_tree().paused = true + + # Clear some components + $CanvasLayer/TowerMenu.hide() + $CanvasLayer/GameStats.hide() + $CanvasLayer/GameDuration.hide() + $CanvasLayer/Victory.unlock_next_stage() $CanvasLayer/Victory.show() $CanvasLayer/Victory/AudioStreamPlayer.play() diff --git a/scripts/stages/4/game_manager.gd b/scripts/stages/4/game_manager.gd index 1fbc652..0281ead 100644 --- a/scripts/stages/4/game_manager.gd +++ b/scripts/stages/4/game_manager.gd @@ -113,6 +113,12 @@ func on_enemy_reward(value: int): func _on_duration_timeout(): get_tree().paused = true + + # Clear some components + $CanvasLayer/TowerMenu.hide() + $CanvasLayer/GameStats.hide() + $CanvasLayer/GameDuration.hide() + $CanvasLayer/Victory.unlock_next_stage() $CanvasLayer/Victory.show() $CanvasLayer/Victory/AudioStreamPlayer.play() \ No newline at end of file diff --git a/scripts/stages/5/game_manager.gd b/scripts/stages/5/game_manager.gd index 498be95..0dc16a2 100644 --- a/scripts/stages/5/game_manager.gd +++ b/scripts/stages/5/game_manager.gd @@ -113,6 +113,12 @@ func on_enemy_reward(value: int): func _on_duration_timeout(): get_tree().paused = true + + # Clear some components + $CanvasLayer/TowerMenu.hide() + $CanvasLayer/GameStats.hide() + $CanvasLayer/GameDuration.hide() + $CanvasLayer/Victory.unlock_next_stage() $CanvasLayer/Victory.show() $CanvasLayer/Victory/AudioStreamPlayer.play() \ No newline at end of file diff --git a/scripts/stages/6/game_manager.gd b/scripts/stages/6/game_manager.gd index 29bd87c..c3204e2 100644 --- a/scripts/stages/6/game_manager.gd +++ b/scripts/stages/6/game_manager.gd @@ -113,6 +113,12 @@ func on_enemy_reward(value: int): func _on_duration_timeout(): get_tree().paused = true + + # Clear some components + $CanvasLayer/TowerMenu.hide() + $CanvasLayer/GameStats.hide() + $CanvasLayer/GameDuration.hide() + $CanvasLayer/Victory.unlock_next_stage() $CanvasLayer/Victory.show() $CanvasLayer/Victory/AudioStreamPlayer.play() \ No newline at end of file