Heads now stick to glass tables (and bleed).

This commit is contained in:
Henry 2026-03-04 17:09:47 +00:00
parent a13f274767
commit ab0a4e24f7
5 changed files with 56 additions and 7 deletions

View file

@ -7,6 +7,8 @@ var shader_active = false
var pause = false
var target = null
@onready var head_splat = preload("res://sprites/head_splat.png")
func start(pos):
position = pos
@ -49,9 +51,16 @@ func _on_area_entered(area: Area2D) -> void:
"shards":
if area.is_in_group("shards"):
print("Shards hit!")
area.hit_detection()
#stick_to_target(target)
queue_free()
area.hit_detection()
# stick_to_target(target)
reparent(area)
$Sprite2D.texture = head_splat
$Sprite2D.hframes = 1
position = Vector2.ZERO
pause = true
$Sprite2D/GPUParticles2D.hide()
monitoring = false
"mirror":

View file

@ -6,7 +6,7 @@ var enemy_type: String = "shards"
@onready var child_node = get_node("Player")
func hit_detection():
print("Shift!")
#print("Shift!")
#var tween = create_tween().set_parallel(true)
#tween.tween_property($Sprite, "position:y", 4, 0.1)
#tween.tween_property($Sprite, "position:y", 0, 0.05)

View file

@ -25,7 +25,7 @@ func _ready():
func spawn_enemies():
if wave_count == 2: #This is for CHICKENS
if wave_count == 1: #This is for CHICKENS
print("Enemy Wave: ", wave_count)
enemy = CHICKEN
for x in range(COLS):
@ -53,7 +53,7 @@ func spawn_enemies():
enemy_count = rows_mod * cols_mod
await get_tree().process_frame
if wave_count == 3 : #This if for Mirror
if wave_count == 0 : #This if for Mirror
print("Enemy Wave: ", wave_count)
# Spawn Table
@ -89,7 +89,7 @@ func spawn_enemies():
s.start_all_animations()
if wave_count == 0 : #This is for Boss
if wave_count == 2 : #This is for Boss
# Hide the player