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

+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