Crank sound

This commit is contained in:
Иван Кузьменко 2023-08-16 21:19:00 +03:00
parent 51eb5aa15a
commit 384e8560f6
5 changed files with 53 additions and 19 deletions

View file

@ -21,7 +21,7 @@ public partial class GameCamera : Camera2D
var halfCameraFollowBounds = CameraFollowBounds / 2;
var hardLimit = relativePlayerPosition.Clamp(-halfCameraBounds, halfCameraBounds);
difference = relativePlayerPosition - hardLimit;
GD.Print($"HardDiff {difference}");
//GD.Print($"HardDiff {difference}");
if (difference.IsZeroApprox())
{
float x = 0, y = 0;
@ -36,7 +36,7 @@ public partial class GameCamera : Camera2D
}
difference = new Vector2(x, y);
GD.Print($"SmoothDiff {difference}");
//GD.Print($"SmoothDiff {difference}");
}
Position = (Position + difference).Round();