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
This commit is contained in:
bigmstone committed 2026-10-04 02:21:46 -06:00
1 parent 5ce882b53d
commit 2c6a395938
1122 files changed
+42103 -40

No files matched your search

+12 -5
View File
@@ -45,20 +45,27 @@ func _ready() -> void:
add_child(b)
$Button0.pressed.connect(_on_button_pressed.bind(0))
reset()
func reset():
pieces = []
to_play = []
guessed = []
for i in Rounds:
var item = randi() % len(PhoneSounds)
pieces.append(item)
to_play.append(item)
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
if guessed.size() >= pieces.size():
if guessed == pieces:
get_tree().change_scene_to_file("res://scenes/level_%s.tscn" % GloblaData.level)
get_tree().change_scene_to_file("res://scenes/levels/level_%s.tscn" % GloblaData.level)
else:
_ready()
reset()
if !$AudioStreamPlayer2D.playing and !to_play.is_empty():
if !$AudioStreamPlayer.playing and !to_play.is_empty():
actuate_button(to_play.pop_front())
for b in buttons:
@@ -74,5 +81,5 @@ func actuate_button(button: int) -> void:
var rect: ColorRect = buttons[button].get_child(1)
rect.color = Color.from_rgba8(255, 255, 255, 255)
$AudioStreamPlayer2D.stream = PhoneSounds[button]
$AudioStreamPlayer2D.play()
$AudioStreamPlayer.stream = PhoneSounds[button]
$AudioStreamPlayer.play()
+19 -4
View File
@@ -359,6 +359,9 @@ func _physics_process(delta):
GloblaData.hurtable = true
$Timer.start()
if GloblaData.doing_puzzle:
velocity = Vector2(0, 0)
if GloblaData.death_counter == 0:
get_tree().quit()
if GloblaData.death_counter == 2:
@@ -386,23 +389,35 @@ func _physics_process(delta):
downTap = Input.is_action_just_pressed("down")
twirlTap = Input.is_action_just_pressed("twirl")
var anim_preamble = ""
if weapon == 1:
anim_preamble = "sword_"
if !is_on_floor():
$AnimatedSprite2D.animation = "jump"
$AnimatedSprite2D.animation = "%sjump" % anim_preamble
$AnimatedSprite2D.play()
elif (leftHold or rightHold) and Input.is_action_just_pressed("fire") and weapon == 2:
$AnimatedSprite2D.animation = "run_shoot"
$AnimatedSprite2D.play()
elif (leftHold or rightHold) and Input.is_action_just_pressed("fire") and weapon == 1:
$AnimatedSprite2D.animation = "sword_run_swing"
$AnimatedSprite2D.play()
elif leftHold or rightHold:
$AnimatedSprite2D.animation = "run"
$AnimatedSprite2D.animation = "%srun" % anim_preamble
$AnimatedSprite2D.play()
elif runHold:
$AnimatedSprite2D.animation = "run"
$AnimatedSprite2D.animation = "%srun" % anim_preamble
$AnimatedSprite2D.play()
elif Input.is_action_just_pressed("fire") and weapon == 2:
$AnimatedSprite2D.animation = "shoot"
$AnimatedSprite2D.play()
elif Input.is_action_just_pressed("fire") and weapon == 1:
$AnimatedSprite2D.animation = "sword_swing"
$AnimatedSprite2D.play()
else:
$AnimatedSprite2D.animation = "idle"
$AnimatedSprite2D.animation = "%sidle" % anim_preamble
$AnimatedSprite2D.play()
#INFO Left and Right Movement
+16
View File
@@ -0,0 +1,16 @@
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())
+1
View File
@@ -0,0 +1 @@
uid://eql155d0clq7