Explorar o código

Randomly allocate spawn points to players each round

DricomDragon %!s(int64=5) %!d(string=hai) anos
pai
achega
b657fd2923
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      Game.gd

+ 1 - 0
Game.gd

@@ -66,6 +66,7 @@ func create_game():
 
 	# Retrieve player spawn points
 	var spawners = get_tree().get_nodes_in_group("spawn")
+	spawners.shuffle()
 
 	# Create players
 	var player