Crank sound
This commit is contained in:
parent
51eb5aa15a
commit
384e8560f6
5 changed files with 53 additions and 19 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue