quality update and sound
This commit is contained in:
14
scripts/menus/close_game_confirmation.gd
Normal file
14
scripts/menus/close_game_confirmation.gd
Normal file
@@ -0,0 +1,14 @@
|
||||
extends CanvasLayer
|
||||
|
||||
func _on_close_pressed() -> void:
|
||||
get_tree().quit()
|
||||
|
||||
|
||||
func _on_main_menu_pressed() -> void:
|
||||
hide()
|
||||
WindowManager.pause_menu.hide()
|
||||
get_tree().change_scene_to_file("res://scenes/gui/menus/main_menu.tscn")
|
||||
|
||||
func _process(_delta: float) -> void:
|
||||
if Input.is_action_just_pressed("pause"):
|
||||
hide()
|
7
scripts/menus/game_over.gd
Normal file
7
scripts/menus/game_over.gd
Normal file
@@ -0,0 +1,7 @@
|
||||
extends CanvasLayer
|
||||
|
||||
|
||||
|
||||
func _on_button_pressed() -> void:
|
||||
get_tree().paused = false
|
||||
get_tree().reload_current_scene()
|
@@ -7,8 +7,7 @@ func _ready() -> void:
|
||||
LevelManager.level_pointer = 0
|
||||
|
||||
func _on_start_game_pressed() -> void:
|
||||
get_tree().change_scene_to_file("res://scenes/levels/lvl_1.tscn")
|
||||
|
||||
LevelManager.next_level()
|
||||
|
||||
func _on_quit_game_pressed() -> void:
|
||||
get_tree().quit()
|
||||
|
Reference in New Issue
Block a user