ScaleManager#isGamePortrait

[readonly] isGamePortrait : boolean

Returns true if the game dimensions are portrait (height > width).
This is especially useful to check when using the RESIZE scale mode
but wanting to maintain game orientation on desktop browsers,
where typically the screen orientation will always be landscape regardless of the browser viewport.

Source code: core/ScaleManager.js (Line 2362)
doc_phaser
2017-02-14 11:09:07
Comments
Leave a Comment

Please login to continue.