This commit is contained in:
StephenAdamson
2024-12-18 00:22:52 +00:00
parent 18d587fdea
commit fbeaf775bf
2 changed files with 4 additions and 5 deletions
+4 -4
View File
@@ -14,16 +14,16 @@ pub fn camera_movement(
let mut direction = Vec2::ZERO; let mut direction = Vec2::ZERO;
if keyboard_input.pressed(KeyCode::ArrowUp) { if keyboard_input.pressed(KeyCode::ArrowUp) {
direction.y += 1.0; direction.y += 2.0;
} }
if keyboard_input.pressed(KeyCode::ArrowDown) { if keyboard_input.pressed(KeyCode::ArrowDown) {
direction.y -= 1.0; direction.y -= 2.0;
} }
if keyboard_input.pressed(KeyCode::ArrowLeft) { if keyboard_input.pressed(KeyCode::ArrowLeft) {
direction.x -= 1.0; direction.x -= 2.0;
} }
if keyboard_input.pressed(KeyCode::ArrowRight) { if keyboard_input.pressed(KeyCode::ArrowRight) {
direction.x += 1.0; direction.x += 2.0;
} }
if direction.length() > 0.0 { if direction.length() > 0.0 {
-1
View File
@@ -38,7 +38,6 @@ fn main() {
( (
camera::camera_movement, camera::camera_movement,
citizen::citizen_movement, citizen::citizen_movement,
tile::tile_water_update,
cursor::move_cursor, cursor::move_cursor,
), ),
) )