feat: upgrade sound

This commit is contained in:
installer
2025-01-23 10:13:01 +01:00
parent 52ce1d00c3
commit a599291f94
19 changed files with 184 additions and 15 deletions

View File

@@ -2,10 +2,15 @@ extends Node2D
@export var scene: PackedScene
var delay := 1.5
func _ready():
$CanvasLayer/VBoxContainer/Score.text += str(Global.score);
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(_delta: float) -> void:
if Input.is_action_just_pressed("continue"):
func _process(delta: float) -> void:
delay -= delta;
if delay <= 0:
$CanvasLayer/VBoxContainer2/Label.visible = true;
if Input.is_action_just_pressed("continue") and delay <= 0:
get_tree().change_scene_to_packed(scene)