Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
limuy2022 committed May 31, 2024
1 parent bc0fac2 commit 784a7fc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gdrust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,19 @@ 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;
}
}
}

#[godot_api]
impl Player {
#[constant]
const SPEED:i32 = 50;
const SPEED: i32 = 50;
}

0 comments on commit 784a7fc

Please sign in to comment.