game_loop nearly done

This commit is contained in:
2025-06-12 22:23:52 +02:00
parent 0730c6d40a
commit 402d44e2bb
30 changed files with 136 additions and 173 deletions
+6 -2
View File
@@ -9,6 +9,8 @@ extends CanvasLayer
signal next_request
signal next_slide
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
@@ -29,8 +31,7 @@ func _ready() -> void:
confirmation_dialog.hide()
self.get_node("UI/UpperContainer").hide()
self.get_node("UI/SkipContainer").hide()
pass
#Requests next when the Next Button is pressed
@@ -38,18 +39,21 @@ func _on_next_pressed():
next_request.emit()
#Requests next when the space key is pressed
func _input(event):
if event is InputEventKey and event.is_action_released("ui_accept"):
next_request.emit()
#Makes sure fading transitions are done before approving a next request
func _on_next_request():
if Globals.is_transitioning == false:
next_slide.emit()
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass