소스 검색

Randomly allocate spawn points to players each round

DricomDragon 5 년 전
부모
커밋
b657fd2923
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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