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
13 lines
185 B
GDScript
13 lines
185 B
GDScript
extends Node2D
|
|
|
|
|
|
var points = 0
|
|
|
|
func _ready() -> void:
|
|
$AnimatedSprite2D.play()
|
|
|
|
func _on_body_entered(body: Node2D) -> void:
|
|
queue_free()
|
|
GlobalData.cassets += 1
|
|
print("1 point")
|