Phaser API Documentation

  Version: 
zoom: number

Description:

The game zoom factor.

This value allows you to multiply your games base size by the given zoom factor. This is then used when calculating the display size, even in NONE situations. If you don't want Phaser to touch the canvas style at all, this value should be 1.

Can also be set to MAX_ZOOM in which case the zoom value will be derived based on the game size and available space within the parent.

Type:
number
Since: 3.16.0