added Graphics and sound Effects and more overhauls
This commit is contained in:
parent
c887a2168c
commit
b9d4288900
214 changed files with 3378 additions and 198 deletions
19
scenes/UI/loseScreen/endScreen.gd
Normal file
19
scenes/UI/loseScreen/endScreen.gd
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
extends Control
|
||||
|
||||
@onready var waveInfo = $CenterContainer/VBoxContainer/HBoxContainer/WaveInfo
|
||||
@onready var destroyedInfo = $CenterContainer/VBoxContainer/HBoxContainer2/DestroyedInfo
|
||||
|
||||
@onready var mainMenu = preload("res://scenes/UI/mainMenu/mainMenu.tscn")
|
||||
|
||||
func _ready() -> void:
|
||||
waveInfo.text = str(Globals.currentWave)
|
||||
destroyedInfo.text = str(Globals.destroyedShips)
|
||||
|
||||
|
||||
func _on_button_pressed() -> void:
|
||||
loadMainMenu()
|
||||
|
||||
func loadMainMenu():
|
||||
get_tree().get_root().add_child(load("res://scenes/UI/mainMenu/mainMenu.tscn").instantiate())
|
||||
queue_free()
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue