More work on multiplayer and first pass of the trap icons

This commit is contained in:
2025-12-11 11:40:26 -05:00
parent c6da8344a4
commit 0451361af8
37 changed files with 495 additions and 71 deletions

View File

@@ -0,0 +1,18 @@
extends MultiplayerSpawner
var spawn_points : Array = []
func _enter_tree() -> void:
spawn_points = $SpawnPoints.get_children()
func add_player(player : MultiplayerPC) -> void:
add_child(player)
if player.player_id == 1:
player.global_position = spawn_points[0].global_position
if Multiplayer.multiplayer.is_server():
Game.player = player
else:
player.global_position = spawn_points[1].global_position
if !Multiplayer.multiplayer.is_server():
Game.player = player