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.gd18
1 files changed, 18 insertions, 0 deletions
diff --git a/game/microgames/heart_break/heart_break.gd b/game/microgames/heart_break/heart_break.gd
new file mode 100644
index 0000000..b12ae70
--- /dev/null
+++ b/game/microgames/heart_break/heart_break.gd
@@ -0,0 +1,18 @@
+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:
+ print("hey")
+ $PlayerHeart.get_node("AnimatedSprite2D").play("death")
+ ## GameOver
+ pass