diff --git a/gdrust/src/lib.rs b/gdrust/src/lib.rs index b5476b0..44cc4ac 100644 --- a/gdrust/src/lib.rs +++ b/gdrust/src/lib.rs @@ -26,13 +26,13 @@ impl ISprite2D for Player { vel.x -= 1.0; } if input_obj.is_action_pressed("move_right".into()) { - vel.x += 1.0; + vel.x += 1.0; } if input_obj.is_action_pressed("move_up".into()) { - vel.y -= 1.0; + vel.y -= 1.0; } if input_obj.is_action_pressed("move_down".into()) { - vel.y += 1.0; + vel.y += 1.0; } } } @@ -40,5 +40,5 @@ impl ISprite2D for Player { #[godot_api] impl Player { #[constant] - const SPEED:i32 = 50; + const SPEED: i32 = 50; }