Final jam version submisson: added placeholder sounds, fixed character

flashing on game restart.
This commit is contained in:
Henry 2026-03-08 14:26:21 +00:00
parent 8679e817ee
commit df13ee42d8
36 changed files with 400 additions and 58 deletions

View file

@ -6,6 +6,7 @@ extends Area2D
var shader_active = false
var pause = false
var target = null
var stuck: bool = false
@onready var head_splat = preload("res://sprites/head_splat.png")
@ -49,11 +50,14 @@ func _on_area_entered(area: Area2D) -> void:
queue_free()
"shards":
if stuck == true: return
if area.is_in_group("shards"):
#print("Shards hit!")
area.hit_detection()
# stick_to_target(target)
reparent(area)
stuck = true
$Splat.play()
$Sprite2D.texture = head_splat
$Sprite2D.hframes = 1
position = Vector2.ZERO
@ -63,6 +67,7 @@ func _on_area_entered(area: Area2D) -> void:
"mirror":
if stuck == true: return
if area.is_in_group("enemies"):
print("Mirror hit!")
area.hit_detection()