add pause toggling

This commit is contained in:
2025-07-04 04:53:12 +10:00
parent b7bce71de5
commit 6441ee8a68
2 changed files with 8 additions and 0 deletions

View File

@@ -137,6 +137,9 @@ func _input(event: InputEvent) -> void:
if event.is_action_pressed("toggle_fullscreen"):
fullscreen = not fullscreen
if event.is_action_pressed("toggle_pause"):
get_tree().paused = not get_tree().paused
func set_defaults() -> void:
for property_name: StringName in _default_values.keys():