commented out old multiplayer scripts and fixed character select input vector

This commit is contained in:
2026-01-09 07:49:38 -05:00
parent 6024cb88e5
commit dc8585b1f0
5 changed files with 43 additions and 45 deletions

View File

@@ -1,24 +1,24 @@
class_name MultiplayerPC extends PawnController
@export var player_id := 1 :
set(id):
player_id = id
func _enter_tree() -> void:
print("Player %d adding Controller for %d" % [Multiplayer.id, player_id])
#Game.player = self
pass
func setup(id) -> void:
name = "Player " + str(id)
player_id = id
if Multiplayer.id == id:
Game.player = self
func _physics_process(delta: float) -> void:
var dir = Input.get_vector("west", "east", "north", "south")
dir = Vector3(dir.x, 0, dir.y)
if dir.length_squared() > 0:
body.look_at(body.global_position - dir)
velocity = speed * dir
move_and_slide()
#@export var player_id := 1 :
#set(id):
#player_id = id
#
#func _enter_tree() -> void:
#print("Player %d adding Controller for %d" % [Multiplayer.id, player_id])
##Game.player = self
#pass
#
#func setup(id) -> void:
#name = "Player " + str(id)
#player_id = id
#if Multiplayer.id == id:
#Game.player = self
#
#func _physics_process(delta: float) -> void:
#var dir = Input.get_vector("west", "east", "north", "south")
#dir = Vector3(dir.x, 0, dir.y)
#if dir.length_squared() > 0:
#body.look_at(body.global_position - dir)
#velocity = speed * dir
#move_and_slide()