Read only. True if the camera is active. Use camera.on() to activate the camera.
Gets the camera's position as a readonly {x, y} object that won't be updated if the camera moves. Useful for saving the camera's position at a specific moment in time.
The camera's position.
The camera's position vector.
The camera's x position.
The camera's y position.
Moves the camera to a position.
resolves true when the camera reaches the target position
Deactivates the camera.
The canvas will be drawn normally, ignoring the camera's position and scale until camera.on() is called.
Activates the camera.
The canvas will be drawn according to the camera position and scale until camera.off() is called.
Zoom the camera at a given speed.
The target zoom
The amount of zoom per frame
resolves true when the camera reaches the target zoom
The Camera controls the position and zoom of the view of the world that is drawn on the canvas.