Clear some components after victory

This commit is contained in:
Moe Poi ~ 2023-10-25 17:45:18 +07:00
parent 51ab348485
commit dd3ed03212
8 changed files with 41 additions and 5 deletions

View file

@ -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="~"

View file

@ -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

View file

@ -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()

View file

@ -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()

View file

@ -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()

View file

@ -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()

View file

@ -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()

View file

@ -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()