Added network skill usage

This commit is contained in:
2024-02-16 15:51:23 +01:00
parent 89d730f0ae
commit c228d4e25a
12 changed files with 77 additions and 21 deletions

View File

@ -46,7 +46,7 @@ func _physics_process(_delta):
func send_position():
var buffer := StreamPeerBuffer.new()
buffer.put_8(PacketHandler.Packet.PLAYER_MOVE)
buffer.put_u8(PacketHandler.Packet.PLAYER_MOVE)
buffer.put_float(Global.player.position.x)
buffer.put_float(Global.player.position.z)
buffer.put_float(Global.player.movement.direction.x)