Post Game jam commit

This commit is contained in:
Daniel Kauss Serna 2026-02-03 21:06:49 +01:00
commit 6db2131520
164 changed files with 172524 additions and 0 deletions

20
scripts/hearts.gd Normal file
View file

@ -0,0 +1,20 @@
extends CPUParticles2D
@export var speed: float = 600.0
func _physics_process(delta: float) -> void:
position += transform.x * speed * delta
func set_from_player(val):
$Hitbox.from_player = val
func _on_hitbox_onhit() -> void:
$Hitbox.queue_free()
$Explosion.emitting = true
emitting = false
await get_tree().create_timer(1.2).timeout
queue_free()
func _on_timer_timeout() -> void:
queue_free()