Jump to content

Best starting template for the mobile app? Different resolutions and fullscreen.


xtreme
 Share

Recommended Posts

I am a newbie on Phaser and did an extremely simple game that used PhoneGap to convert it to an Android app. Had the problem that my game did not fill the screen on some phones. Also had the problem that the game looked good on a phone when I opened the game the first time. But if I opened it a second time on the same phone had the playfield moved and the resolution changed. this occurred when I used

 



var w = window.innerWidth;
var h = window.innerHeight;


to receive full screen

 

Is there a clean template to start with which is adapted for phones and taking care of different resolutions on Android (and iPhone)?

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...

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...