This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
// This is basically how the Super Metroid camera worked. Whichever direction you moved, the camera would | |
// move in the same direction a multiple of the player's speed. Once the center of the camera moved a | |
// certain distance from the player, the camera would lock on the player and move the same speed. Change | |
// movement direction, and the camera would once again move more quickly to catch up and place itself | |
// ahead of the player's movement. | |
// Super Metroid also had area limits and locked certain axes based on where you were. For instance, if |