From cbb667117356043f026e7d041e767a7a4c692ffa Mon Sep 17 00:00:00 2001 From: rom Date: Mon, 26 Apr 2021 17:55:15 +0200 Subject: bulletmaster3000 --- components/Level.gd | 3 +++ 1 file changed, 3 insertions(+) (limited to 'components') 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") -- cgit