summaryrefslogtreecommitdiff
path: root/game/microgames/heart_break/heart_break.gd
blob: 63d7e5d2ff5dfac4682fd97911c52289f5c007da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
extends Microgame


func _on_player_heart_body_entered(body):
	if body is Spiky:
		disable_player()
		finished.emit(false)


func disable_player():
	$PlayerHeart.get_node("AnimatedSprite2D").play("death")
	$PlayerHeart.playerControl = false