refactor and rename cassette system - Rename cassette references throughout codebase - Update scene files and scripts for consistency - Refactor cassette.gd and related components - Update player, enemy, and phonebooth interactions - Sync game_over and pause_screen with new structure
20 lines
429 B
GDScript
20 lines
429 B
GDScript
extends Node2D
|
|
|
|
|
|
@onready var pause = preload("res://scenes/helpers/pause_screen.tscn")
|
|
|
|
func _ready() -> void:
|
|
pass # Replace with function body.
|
|
|
|
func _process(_delta: float) -> void:
|
|
if Input.is_action_just_pressed("pause"):
|
|
toggle_paused()
|
|
|
|
func toggle_paused():
|
|
if get_tree().paused:
|
|
get_tree().paused = false
|
|
else:
|
|
var instace = pause.instantiate()
|
|
get_tree().root.add_child(instace)
|
|
get_tree().paused = true
|