summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorrom <romangraef@gmail.com>2021-04-26 17:55:15 +0200
committerrom <romangraef@gmail.com>2021-04-26 17:56:07 +0200
commitcbb667117356043f026e7d041e767a7a4c692ffa (patch)
tree6045edd4fef254a347b6979771d06ca80c4e53b4 /components
parentb1e4f45c85d3c67ec35c395c23f916d71e4c14db (diff)
downloadldjam48-cbb667117356043f026e7d041e767a7a4c692ffa.tar.gz
ldjam48-cbb667117356043f026e7d041e767a7a4c692ffa.tar.bz2
ldjam48-cbb667117356043f026e7d041e767a7a4c692ffa.zip
bulletmaster3000
Diffstat (limited to 'components')
-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")