Overview of the Camera coordinate system
The
camera module shifts the window's viewport of the game's canvas. By default, the camera position is centered in the viewport in pixels: the x position starts at half the width and the y position starts at half the height of the game's resolution. The z position (zoom) defaults to 1.0.