From 784a7fcb95d7ad77fcd54479884d899d4abb2c30 Mon Sep 17 00:00:00 2001 From: limuy Date: Fri, 31 May 2024 23:53:57 +0800 Subject: [PATCH] fmt --- gdrust/src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; }