summaryrefslogtreecommitdiff
path: root/game/microgames/heart_break/heart_break.gd
diff options
context:
space:
mode:
Diffstat (limited to 'game/microgames/heart_break/heart_break.gd')
-rw-r--r--game/microgames/heart_break/heart_break.gd8
1 files changed, 6 insertions, 2 deletions
diff --git a/game/microgames/heart_break/heart_break.gd b/game/microgames/heart_break/heart_break.gd
index b12ae70..d25afe8 100644
--- a/game/microgames/heart_break/heart_break.gd
+++ b/game/microgames/heart_break/heart_break.gd
@@ -12,7 +12,11 @@ func _process(delta):
func _on_player_heart_body_entered(body):
if body is Spiky:
- print("hey")
- $PlayerHeart.get_node("AnimatedSprite2D").play("death")
+ disable_player()
## GameOver
pass
+
+func disable_player():
+ $PlayerHeart.get_node("AnimatedSprite2D").play("death")
+ $PlayerHeart.playerControl = false
+