its game over WIP

This commit is contained in:
Maurane
2026-02-27 16:29:12 +01:00
parent df36a08d81
commit d4a533bf17
20 changed files with 379 additions and 148 deletions
+10 -4
View File
@@ -3,6 +3,8 @@ extends CanvasLayer
@onready var next = $UI/SkipContainer/NextButton
@onready var confirmation_mask = $ConfirmationMask
@onready var its_game_over = $ITSGameOverControl
#Signals for progressing through slides
signal next_request
signal next_slide
@@ -52,11 +54,14 @@ var resolution_list: Dictionary = {
func _ready() -> void:
#Connecting signals
#Next Signals
#GameOver Signals
#Next Signals
next.pressed.connect(_on_next_pressed)
self.connect("next_request", _on_next_request)
#Menu Signals
#Menu Signals
$UI/UpperContainer/Menu.pressed.connect(_on_menu_pressed)
$UI/Menu/MarginContainer/VBoxContainer/Resume.pressed.connect(_on_resume_pressed)
@@ -71,13 +76,13 @@ func _ready() -> void:
$UI/Settings/MarginContainer/VBoxContainer/Control/Back.pressed.connect(_on_back_pressed)
$UI/Settings/MarginContainer/VBoxContainer/Control/BackTitle.pressed.connect(_on_back_title_pressed)
#Save Slots Signals
#Save Slots Signals
$UI/Save/MarginContainer/VBoxContainer/SaveSlot1.pressed.connect(func(): _on_save_slot_pressed(1))
$UI/Save/MarginContainer/VBoxContainer/SaveSlot2.pressed.connect(func(): _on_save_slot_pressed(2))
$UI/Save/MarginContainer/VBoxContainer/SaveSlot3.pressed.connect(func(): _on_save_slot_pressed(3))
$UI/Save/MarginContainer/VBoxContainer/SaveSlot4.pressed.connect(func(): _on_save_slot_pressed(4))
#Load Slots Signals
#Load Slots Signals
$UI/Load/MarginContainer/VBoxContainer/LoadSlot1.pressed.connect(func(): _on_load_slot_pressed(1))
$UI/Load/MarginContainer/VBoxContainer/LoadSlot2.pressed.connect(func(): _on_load_slot_pressed(2))
$UI/Load/MarginContainer/VBoxContainer/LoadSlot3.pressed.connect(func(): _on_load_slot_pressed(3))
@@ -322,3 +327,4 @@ func _on_resolution_selected(index: int):
DisplayServer.window_set_size(resolution_size)
await get_tree().process_frame #Waits process_frame to avoid bugs
DisplayServer.window_set_position(top_left)