summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorrom <romangraef@gmail.com>2021-04-26 14:59:43 +0200
committerrom <romangraef@gmail.com>2021-04-26 14:59:43 +0200
commit5bdee50847bb9d0ee4f49c9988043734490fa4cb (patch)
tree03794d260b6c9fb9bd431e3773f09afa2cac0c66 /components
parent13e1d09d55b208d882d2d2f9af2f1bcc8d010d0b (diff)
downloadldjam48-5bdee50847bb9d0ee4f49c9988043734490fa4cb.tar.gz
ldjam48-5bdee50847bb9d0ee4f49c9988043734490fa4cb.tar.bz2
ldjam48-5bdee50847bb9d0ee4f49c9988043734490fa4cb.zip
insta death
Diffstat (limited to 'components')
-rw-r--r--components/Level.gd7
1 files changed, 5 insertions, 2 deletions
diff --git a/components/Level.gd b/components/Level.gd
index 94f918a..18965a8 100644
--- a/components/Level.gd
+++ b/components/Level.gd
@@ -1,7 +1,7 @@
extends Node2D
class_name Level
-signal lost_heart()
+signal lost_heart(instakill)
signal level_finished()
@@ -9,7 +9,10 @@ func start():
print("Level ", name, " starting.")
func lose_heart():
- emit_signal("lost_heart")
+ emit_signal("lost_heart", false)
+
+func lose_all_hearts():
+ emit_signal("lost_heart", true)
func finish_level():
emit_signal("level_finished")