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.gd17
1 files changed, 4 insertions, 13 deletions
diff --git a/game/microgames/heart_break/heart_break.gd b/game/microgames/heart_break/heart_break.gd
index d25afe8..63d7e5d 100644
--- a/game/microgames/heart_break/heart_break.gd
+++ b/game/microgames/heart_break/heart_break.gd
@@ -1,22 +1,13 @@
extends Microgame
-# Called when the node enters the scene tree for the first time.
-func _ready():
- pass # Replace with function body.
-
-
-# Called every frame. 'delta' is the elapsed time since the previous frame.
-func _process(delta):
- pass
-
func _on_player_heart_body_entered(body):
if body is Spiky:
disable_player()
- ## GameOver
- pass
+ finished.emit(false)
+
func disable_player():
- $PlayerHeart.get_node("AnimatedSprite2D").play("death")
- $PlayerHeart.playerControl = false
+ $PlayerHeart.get_node("AnimatedSprite2D").play("death")
+ $PlayerHeart.playerControl = false