diff options
author | rom <romangraef@gmail.com> | 2021-04-26 17:55:15 +0200 |
---|---|---|
committer | rom <romangraef@gmail.com> | 2021-04-26 17:56:07 +0200 |
commit | cbb667117356043f026e7d041e767a7a4c692ffa (patch) | |
tree | 6045edd4fef254a347b6979771d06ca80c4e53b4 /components | |
parent | b1e4f45c85d3c67ec35c395c23f916d71e4c14db (diff) | |
download | ldjam48-cbb667117356043f026e7d041e767a7a4c692ffa.tar.gz ldjam48-cbb667117356043f026e7d041e767a7a4c692ffa.tar.bz2 ldjam48-cbb667117356043f026e7d041e767a7a4c692ffa.zip |
bulletmaster3000
Diffstat (limited to 'components')
-rw-r--r-- | components/Level.gd | 3 |
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") |