Massive work on level, UI, sound, and player functionality, small progress on netcode. Renamed project to Net Gunner.
This commit is contained in:
@@ -5,11 +5,15 @@ class_name MultiplayerPC extends Player
|
||||
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.is_server() == (id == 1):
|
||||
Game.player = self
|
||||
|
||||
func _physics_process(delta: float) -> void:
|
||||
var dir = Input.get_vector("west", "east", "north", "south")
|
||||
|
||||
Reference in New Issue
Block a user