An extension of BaseCamera that is locked vertically; it will only move side to side.
Common usages: platformers.
Get the camera's x position
Set the camera's x position (cannot be set when following an Actor or when moving)
Get the camera's y position
Set the camera's y position (cannot be set when following an Actor or when moving)
Applies the relevant transformations to the game canvas to "move" or apply effects to the Camera
Canvas context to apply transformations
The number of milliseconds since the last update
Gets the current zoom scale
This moves the camera focal point to the specified position using specified easing function. Cannot move when following an Actor.
The target position to move to
The duration in milliseconds the move should last
Sets the camera to shake at the specified magnitudes for the specified duration
The x magnitude of the shake
The y magnitude of the shake
The duration of the shake in milliseconds
Zooms the camera in or out by the specified scale over the specified duration. If no duration is specified, it take effect immediately.
The scale of the zoom
The duration of the zoom in milliseconds