From 05cb1c660804fc202c88dbe26f96764bd1a64421 Mon Sep 17 00:00:00 2001 From: Frederic Aust <frederic.aust@hs-bochum.de> Date: Sat, 3 Apr 2021 20:33:45 +0200 Subject: [PATCH] Anzahl an Siege um zu Gewinnen wird nun durch das SettingsWindow eingestellt --- Battle Pong/Main.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Battle Pong/Main.gd b/Battle Pong/Main.gd index bae7c8c..9903da8 100644 --- a/Battle Pong/Main.gd +++ b/Battle Pong/Main.gd @@ -128,7 +128,7 @@ func check_point_scored(): reward_player_two=(-1) print("player one won") update_score() - if score_player_one == 5 or score_player_two == 5: + if score_player_one == $"/root/GameSettings".game_wins_to_reset or score_player_two == $"/root/GameSettings".game_wins_to_reset: game_done = true func handle_score_event(): -- GitLab