🐛 Bug fixes
This commit is contained in:
@@ -60,13 +60,9 @@ public partial class Player : CharacterBody2D
|
||||
|
||||
// If same direction as last time, accelerate
|
||||
if (direction == _lastZoomDirection && (currentTime - _lastZoomTime) < 300)
|
||||
{
|
||||
_currentZoomSpeed = Mathf.Min(_currentZoomSpeed + ZoomAcceleration, MaxZoomSpeed);
|
||||
}
|
||||
else
|
||||
{
|
||||
_currentZoomSpeed = BaseZoomSpeed;
|
||||
}
|
||||
|
||||
_lastZoomDirection = direction;
|
||||
_lastZoomTime = currentTime;
|
||||
|
Reference in New Issue
Block a user