Class: FlexGrid

Phaser. FlexGrid

Phaser.FlexGrid

new FlexGrid(manager, width, height)

WARNING: This is an EXPERIMENTAL class. The API will change significantly in the coming versions and is incomplete. Please try to avoid using in production games with a long time to build. This is also why the documentation is incomplete.

FlexGrid is a a responsive grid manager that works in conjunction with the ScaleManager RESIZE scaling mode and FlexLayers to provide for game object positioning in a responsive manner.

Parameters:
Name Type Description
manager Phaser.ScaleManager

The ScaleManager.

width number

The width of the game.

height number

The height of the game.

Source - core/FlexGrid.js, line 21

Members

game :Phaser.Game

A reference to the currently running Game.

Source - core/FlexGrid.js, line 26

manager

Properties:
Name Type Description
scale Phaser.ScaleManager

A reference to the ScaleManager.

Source - core/FlexGrid.js, line 31

<readonly> positionCustom

Properties:
Name Type Description
position Phaser.Point

-

Source - core/FlexGrid.js, line 46

<readonly> scaleCustom

Properties:
Name Type Description
scaleFactor Phaser.Point

The scale factor based on the game dimensions vs. the scaled dimensions.

Source - core/FlexGrid.js, line 55
Phaser Copyright © 2012-2014 Photon Storm Ltd.
Documentation generated by JSDoc 3.3.0-dev on Sat Nov 15 2014 19:54:37 GMT-0000 (GMT) using the DocStrap template.