From e0cb4ec2bf7f192510d5fa80d41ebca1bef53497 Mon Sep 17 00:00:00 2001 From: Daniel Lehmann <3004405@stud.hs-mannheim.de> Date: Thu, 28 Mar 2024 12:17:42 +0100 Subject: [PATCH] v.0.4.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Verbesserte Würfel animation. (prototyp) --- game.gd | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/game.gd b/game.gd index eb7f3a3..15f0bed 100644 --- a/game.gd +++ b/game.gd @@ -75,6 +75,14 @@ func _check_win() -> String: #Generiert die Zufallszahl von 1-6 func _roll_dice(): var zahl = randi() % 6 + 1 + _update_dice_sprite(randi() % 6 + 1) + await get_tree().create_timer(0.3).timeout + _update_dice_sprite(randi() % 6 + 1) + await get_tree().create_timer(0.3).timeout + _update_dice_sprite(randi() % 6 + 1) + await get_tree().create_timer(0.3).timeout + _update_dice_sprite(randi() % 6 + 1) + await get_tree().create_timer(0.3).timeout _update_dice_sprite(zahl) print(zahl) #Debug ausgabe, später löschen lol return zahl