Skip to content

Commit e502a68

Browse files
committed
refactor: player foi alterado para utilizar classe de inputs mapeados
1 parent f5ef20b commit e502a68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Src/Modules/Player/Scripts/Player.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ public partial class Player : CharacterBody2D
66

77
public override void _Process(double delta)
88
{
9-
var direction = Input.GetVector("left", "right", "up", "down");
9+
var direction = Input.GetVector(MappedInputs.Left, MappedInputs.Right, MappedInputs.Up, MappedInputs.Down);
1010

1111
Velocity = direction * _speed;
1212
}

0 commit comments

Comments
 (0)