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

View File

@@ -0,0 +1,24 @@
extends Control
var active := false
signal closed
func _ready() -> void:
set_process(false)
func _process(_delta: float) -> void:
if Input.is_action_just_pressed("ui_cancel") or Input.is_action_just_pressed("editor_open_menu"):
close()
func open() -> void:
set_process(true)
show()
active = true
func close() -> void:
set_process(false)
hide()
active = false
await get_tree().create_timer(0.1).timeout
closed.emit()