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