Added dice
This commit is contained in:
@@ -13,10 +13,9 @@ func roll_dice():
|
||||
if is_rolling:
|
||||
return
|
||||
is_rolling = true
|
||||
sprite.play('rolling')
|
||||
await get_tree().create_timer(roll_time).timeout
|
||||
|
||||
self.random_value = int(randi_range(0, 7))
|
||||
self.random_value = randi_range(1, 6)
|
||||
sprite.play(str(self.random_value))
|
||||
is_rolling = false
|
||||
|
||||
func _process(delta):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user