diff options
author | metamuffin <metamuffin@disroot.org> | 2024-08-10 22:55:38 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-08-10 22:55:38 +0200 |
commit | 71499464dbb279bd268dd2dcd5a653c3a7f50a68 (patch) | |
tree | ed805dd89a6909bdf687b52b77334afa22d234eb /client/player/controllable_player.gd | |
parent | a02c1d31f4d2de92388dcc8c07a602e62f5ddbbe (diff) | |
download | hurrycurry-71499464dbb279bd268dd2dcd5a653c3a7f50a68.tar hurrycurry-71499464dbb279bd268dd2dcd5a653c3a7f50a68.tar.bz2 hurrycurry-71499464dbb279bd268dd2dcd5a653c3a7f50a68.tar.zst |
update client to new protocol
Diffstat (limited to 'client/player/controllable_player.gd')
-rw-r--r-- | client/player/controllable_player.gd | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client/player/controllable_player.gd b/client/player/controllable_player.gd index 79c73246..b05b2103 100644 --- a/client/player/controllable_player.gd +++ b/client/player/controllable_player.gd @@ -43,7 +43,7 @@ func _ready(): timer.start() timer.connect("timeout", func(): if game.mp != null: - game.mp.send_movement(position_, direction, boosting) + game.mp.send_movement(game.player_id, position_, direction, boosting) ) add_child(onscreen_controls) super() @@ -147,7 +147,7 @@ func update_position(_new_position: Vector2, _new_rotation: float, _new_boosting pass func submit_message(text: String): - game.mp.send_chat(text) + game.mp.send_chat(game.player_id, text) func progress(p: float, warn: bool): super(p, warn) @@ -169,11 +169,11 @@ func interact(): marker.visible = true marker_target = tile.item_base.global_position if Input.is_action_just_pressed("interact"): - game.mp.send_tile_interact(target, true) + game.mp.send_tile_interact(game.player_id, target, true) tile.interact() marker.set_interacting(true) elif Input.is_action_just_released("interact"): - game.mp.send_tile_interact(target, false) + game.mp.send_tile_interact(game.player_id, target, false) marker.set_interacting(false) else: marker.visible = false |