Implemented new dungeon room sprites for the different states they can be in and zooming.
This commit is contained in:
parent
9633b70828
commit
438d3a9a79
15 changed files with 90787 additions and 14695 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue