added the game

This commit is contained in:
JHDev2006
2025-09-13 16:30:32 +01:00
parent 5ef689109b
commit 3773bdaf64
3616 changed files with 263702 additions and 0 deletions

17
Scripts/UI/QuitDialog.gd Normal file
View File

@@ -0,0 +1,17 @@
extends Control
signal cancelled
var is_active := false
func _physics_process(delta: float) -> void:
modulate.a = lerpf(modulate.a, int(is_active), delta * 15)
if Input.is_action_just_released("ui_back") and is_active:
cancelled.emit()
is_active = false
$AnimationPlayer.stop()
func start() -> void:
$AnimationPlayer.play("Animation")
is_active = true
await $AnimationPlayer.animation_finished
get_tree().quit()