ScaleManager

Class: Phaser.ScaleManager

Constructor

new ScaleManager(game, width, height)

Create a new ScaleManager object - this is done automatically by Phaser.Game

The width and height constructor parameters can either be a number which represents pixels or a string that represents a percentage: e.g. 800 (for 800 pixels) or "80%" for 80%.

Parameters
Name Type Description
game Phaser.Game

A reference to the currently running game.

width登录查看完整内容