doc: replace incorrect Speed variable with _speed

This commit is contained in:
RaspberryEuphoria
2023-05-22 21:49:46 +02:00
parent c2b9aecf78
commit ec366a691d

View File

@@ -102,7 +102,7 @@ velocity. Replace the line starting with ``var velocity`` with the code below.
var velocity = Vector2.Zero;
if (Input.IsActionPressed("ui_up"))
{
velocity = Vector2.Up.Rotated(Rotation) * Speed;
velocity = Vector2.Up.Rotated(Rotation) * _speed;
}
We initialize the ``velocity`` with a value of ``Vector2.ZERO``, another