From 44b444e67684b16eb338ef639b46d53c9eb214a1 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sat, 10 Aug 2024 22:56:09 +0200 Subject: start with client lib crate --- pixel-client/src/game.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'pixel-client/src') 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 } -- cgit v1.2.3-70-g09d2