Player changes + projectile fixes

This commit is contained in:
dingo
2026-01-19 15:21:56 -05:00
parent 88737d51c4
commit cefa1cf716
9 changed files with 92 additions and 32 deletions
+2 -2
View File
@@ -104,7 +104,7 @@ func disconnect_from_server():
## @param opcode: Message type identifier (see opcodes.gd)
## @param data: Dictionary of message data to send
func send_message(opcode: int, data: Dictionary = {}):
print("[Network] Send Message Called to send opCode: ", opcode)
#print("[Network] Send Message Called to send opCode: ", opcode)
if not _is_connected:
push_warning("[Network] Cannot send message - not connected")
return
@@ -188,7 +188,7 @@ func _handle_received_data(packet: PackedByteArray):
var message = json.data
var opcode: int = message.get("opCode", message.get("OpCode", 0))
print("[Network] OpCode Recieved: ", opcode)
#print("[Network] OpCode Recieved: ", opcode)
# Decode payload
var payload_data = message.get("payload", message.get("Payload", null))
var decoded_data = {}