ScaleManager#isGameLandscape

[readonly] isGameLandscape : boolean

Returns true if the game dimensions are landscape (width > height).
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 2380)
doc_phaser
2017-02-14 11:09:07
Comments
Leave a Comment

Please login to continue.