Pārlūkot izejas kodu

Add a third player

DricomDragon 5 gadi atpakaļ
vecāks
revīzija
8685ae007d
1 mainītis faili ar 8 papildinājumiem un 0 dzēšanām
  1. 8 0
      Game.gd

+ 8 - 0
Game.gd

@@ -67,6 +67,14 @@ func start():
 	player.position = Vector2(6 * 64 + 32, 8 * 64 + 32)
 	add_child(player)
 
+	# Player 3
+	player = playerScene.instance()
+	player.grid = levelCurrentNode
+	player.turn_left_action = "p3_left"
+	player.turn_right_action = "p3_right"
+	player.position = Vector2(8 * 64 + 32, 8 * 64 + 32)
+	add_child(player)
+
 	# TODO Timer
 	get_tree().call_group("players", "_on_game_start")