aboutsummaryrefslogtreecommitdiff
path: root/client/multiplayer.gd
diff options
context:
space:
mode:
Diffstat (limited to 'client/multiplayer.gd')
-rw-r--r--client/multiplayer.gd8
1 files changed, 4 insertions, 4 deletions
diff --git a/client/multiplayer.gd b/client/multiplayer.gd
index d3e80613..d40c00d7 100644
--- a/client/multiplayer.gd
+++ b/client/multiplayer.gd
@@ -54,7 +54,7 @@ signal server_message(text: String)
signal replay_start()
signal connection_closed(reason: String)
-const VERSION_MAJOR: int = 1
+const VERSION_MAJOR: int = 2
const VERSION_MINOR: int = 0
var connected := false
@@ -264,11 +264,11 @@ func send_join(player_name: String, character: int):
"character": character
})
-func send_position(pos: Vector2, rotation: float, boosting: bool):
+func send_movement(pos: Vector2, direction: Vector2, boosting: bool):
send_packet({
- "type": "position",
+ "type": "movement",
"pos": [pos.x, pos.y],
- "rot": rotation,
+ "direction": [direction.x, direction.y],
"boosting": boosting
})