diff options
author | metamuffin <metamuffin@disroot.org> | 2024-08-10 22:56:09 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-08-10 22:56:09 +0200 |
commit | 44b444e67684b16eb338ef639b46d53c9eb214a1 (patch) | |
tree | e076948c97bc946262069208f79f5cc06ab1f568 /pixel-client | |
parent | 71499464dbb279bd268dd2dcd5a653c3a7f50a68 (diff) | |
download | hurrycurry-44b444e67684b16eb338ef639b46d53c9eb214a1.tar hurrycurry-44b444e67684b16eb338ef639b46d53c9eb214a1.tar.bz2 hurrycurry-44b444e67684b16eb338ef639b46d53c9eb214a1.tar.zst |
start with client lib crate
Diffstat (limited to 'pixel-client')
-rw-r--r-- | pixel-client/src/game.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/pixel-client/src/game.rs b/pixel-client/src/game.rs index 600ea2f1..fb9df21c 100644 --- a/pixel-client/src/game.rs +++ b/pixel-client/src/game.rs @@ -167,7 +167,7 @@ impl Game { if send_movement { self.network .queue_out - .push_back(player.movement.movement_packet(direction, self.my_id)); + .push_back(player.movement.movement_packet(self.my_id)); } player.interact_target_anim.exp_to( @@ -271,6 +271,7 @@ impl Game { item: None, movement: MovementBase { position, + direction: Vec2::ZERO, facing: Vec2::X, rotation: 0., velocity: Vec2::ZERO, @@ -329,10 +330,6 @@ impl Game { } => { self.get_item(item).as_mut().unwrap().progress = progress.map(|s| (s, warn)); } - PacketC::Collide { - player: _, - force: _, - } => (), PacketC::Communicate { .. } => { // TODO } |