This commit is contained in:
Tabby 2025-06-10 12:15:13 +10:00
parent 28766d0a84
commit 46212a7e06
207 changed files with 3998 additions and 31 deletions

16
pause_menu.gd Normal file
View file

@ -0,0 +1,16 @@
extends Control
var paused : bool = false
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
visible = paused
if Input.is_action_just_pressed("pause"):
paused = !paused
get_tree().set_pause(paused)
#get_tree().get_root().process_mode