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;
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 {