🐛 Bug fixes

This commit is contained in:
2025-08-30 23:26:19 +08:00
parent 7438ba407a
commit 88647b1c41
4 changed files with 7 additions and 7 deletions

View File

@@ -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;