Jump to content

Landscape mode with Phaser 3?


kuoruan
 Share

Recommended Posts

https://photonstorm.github.io/phaser-ce/Phaser.ScaleManager.html#forceOrientation

Phaser 2 has the api to force orientation. What about Phaser 3?

Like this game, which is written with Phaser 2

http://game.webxinxin.com/tacit/

Source: https://github.com/channingbreeze/games/tree/master/tacit

If user's phone is portrait, the game rotate 90deg, and fill the screen (width < height). The user will rotate their phone.

If user's phone is landscape. the game show as normal (width > height).

屏幕快照 2018-04-10 下午7.58.27.png

屏幕快照 2018-04-10 下午7.58.17.png

Link to comment
Share on other sites

19 hours ago, WizaEric said:

I think there is nothing similar in Phaser 3. But what are you trying to accomplish? If you have a game for smartphone you might want to put a wrapper around (Ionic/Cordova).

I added some info about what I want to do. Is there any way to impl this?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...