Sign in to follow this  
kuoruan

Landscape mode with Phaser 3?

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

Share this post


Link to post
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?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.