Jump to content

Can PixiJSv4 Know Android Screen Orientation?


JeZxLee
 Share

Recommended Posts

Hi,

Today we swapped out old "Audio5js" with new "Howler.js"
and now have full audio on both Android Chrome & Android Firefox.

We currently stretch a 640x480 game onto the Android screen which does not look too good.
My question now is can PixiJSv4 determine whether the Android screen is in portrait or landscape mode?

We would like to maintain aspect ration now for both portrait & landscape
and have an on-screen joystick on bottom(portrait) or on right(landscape).

Any help would be appreciated, this is in preparation for our next game project, thanks!

JeZxLee

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

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