From fbeaf775bfcc5b6c56b19cc5aa776115c7a021c0 Mon Sep 17 00:00:00 2001 From: StephenAdamson Date: Wed, 18 Dec 2024 00:22:52 +0000 Subject: [PATCH] cleanup --- src/camera.rs | 8 ++++---- src/main.rs | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/camera.rs b/src/camera.rs index a376ade..3c0c3c0 100644 --- a/src/camera.rs +++ b/src/camera.rs @@ -14,16 +14,16 @@ pub fn camera_movement( let mut direction = Vec2::ZERO; if keyboard_input.pressed(KeyCode::ArrowUp) { - direction.y += 1.0; + direction.y += 2.0; } if keyboard_input.pressed(KeyCode::ArrowDown) { - direction.y -= 1.0; + direction.y -= 2.0; } if keyboard_input.pressed(KeyCode::ArrowLeft) { - direction.x -= 1.0; + direction.x -= 2.0; } if keyboard_input.pressed(KeyCode::ArrowRight) { - direction.x += 1.0; + direction.x += 2.0; } if direction.length() > 0.0 { diff --git a/src/main.rs b/src/main.rs index 2b3bd1a..b622ed1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -38,7 +38,6 @@ fn main() { ( camera::camera_movement, citizen::citizen_movement, - tile::tile_water_update, cursor::move_cursor, ), )