Files
wgj26/scenes/levels/base_level.gd
T
bigmstone de90af743c Lot of cleanup
Reorganize project structure into scenes and scripts directories

    - Move core game objects (player, enemy, projectile, cassette, phonebooth) to scenes/core/
    - Move UI helpers (title, pause_screen, game_over, speech) to scenes/helpers/
    - Move puzzle logic (phonephreak) to scenes/puzzles/
    - Move global utilities to scripts/
    - Consolidate levels in scenes/levels/ with new base_level structure
    - Fix naming conventions (snake_case for scripts)
    - Remove obsolete test and duplicate scenes
2026-10-04 15:27:34 -06:00

20 lines
428 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