cleanup
This commit is contained in:
+4
-4
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user