Zoom Control
The player has the ability to zoom in and out
A main feature of the game that I implemented was the zooming of the camera. It was important to make sure that the camera was able to stay within the bounds of the map at all times so I created a boundary box. This boundary box had different behaviors while the camera was moving along the tunnel path versus when it was being moved by the player. While it was moving along the path the camera zoomed in to fit within the bounds, which created a cool effect when exiting the level by zooming in on the character. However, while the camera was zoomed out and not moving along the tunnel path it just would not be able to be moved outside of the boundary box.