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
472 B
GDScript
20 lines
472 B
GDScript
extends CanvasLayer
|
|
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
func _ready() -> void:
|
|
pass
|
|
|
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
func _process(delta: float) -> void:
|
|
if !get_tree().paused or Input.is_action_just_pressed("pause"):
|
|
queue_free()
|
|
get_tree().paused = false
|
|
|
|
func _on_button_pressed() -> void:
|
|
get_tree().paused = false
|
|
queue_free()
|
|
|
|
func _on_button_2_pressed() -> void:
|
|
get_tree().quit()
|