Files
godot-demo-projects/audio/rhythm_game/scenes/main/pause_handler.gd
A Thousand Ships 0343cedd48 General proofreading (#1262)
* General proofreading for grammar and spelling
* General formatting
* Addition of appropriate literals where appropriate, i.e. `&"foo"` for `StringName` cases and `^"foo/bar"` for `NodePath` cases
2025-10-11 01:39:59 -07:00

9 lines
275 B
GDScript

# Pause logic is separated out since it needs to run with PROCESS_MODE_ALWAYS.
extends Node
func _process(_delta: float) -> void:
if Input.is_action_just_pressed(&"pause"):
get_tree().paused = not get_tree().paused
$"../Control/PauseLabel".visible = get_tree().paused