Post Game jam commit
This commit is contained in:
commit
6db2131520
164 changed files with 172524 additions and 0 deletions
20
scripts/hearts.gd
Normal file
20
scripts/hearts.gd
Normal 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()
|
||||
Loading…
Add table
Add a link
Reference in a new issue