summaryrefslogtreecommitdiff
path: root/components/Level.gd
diff options
context:
space:
mode:
Diffstat (limited to 'components/Level.gd')
-rw-r--r--components/Level.gd3
1 files changed, 3 insertions, 0 deletions
diff --git a/components/Level.gd b/components/Level.gd
index 18965a8..ad48336 100644
--- a/components/Level.gd
+++ b/components/Level.gd
@@ -4,9 +4,11 @@ class_name Level
signal lost_heart(instakill)
signal level_finished()
+var running = false
func start():
print("Level ", name, " starting.")
+ running = true
func lose_heart():
emit_signal("lost_heart", false)
@@ -15,5 +17,6 @@ func lose_all_hearts():
emit_signal("lost_heart", true)
func finish_level():
+ running = false
emit_signal("level_finished")