Using Level 3 to do a big art pass and get a lot of systems set up and cleaned up. Add Phantom Camera addon with comprehensive 2D/3D camera system
17 lines
381 B
GDScript
17 lines
381 B
GDScript
extends Node2D
|
|
|
|
@onready var phonephreak = preload("res://scenes/puzzles/phonephreak.tscn")
|
|
|
|
func _ready() -> void:
|
|
pass # Replace with function body.
|
|
|
|
|
|
func _process(delta: float) -> void:
|
|
pass
|
|
|
|
|
|
func _on_area_2d_body_entered(body: Node2D) -> void:
|
|
if $CanvasLayer.get_children().is_empty():
|
|
GloblaData.doing_puzzle = true
|
|
$CanvasLayer.add_child(phonephreak.instantiate())
|