Implemented new dungeon room sprites for the different states they can be in and zooming.

This commit is contained in:
Max 2025-02-13 17:30:28 +01:00
parent 9633b70828
commit 438d3a9a79
15 changed files with 90787 additions and 14695 deletions

View file

@ -6,12 +6,27 @@ public class PlayerController : MonoBehaviour
private Vector3 _lastMousePosition;
private Camera _camera;
private bool _canMove;
private int _zoomScale = 2;
private void Start() {
_camera = Camera.main;
}
private void Update() {
switch (Input.GetAxis("Mouse ScrollWheel"))
{
case < 0:
_camera.orthographicSize += .1f * _zoomScale;
break;
case > 0:
if (_camera.orthographicSize > .1f * _zoomScale)
{
_camera.orthographicSize -= .1f * _zoomScale;
}
break;
}
CheckMovementInput();
}