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