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

Took a look at the code and look primarily to be suited for apple/iPhone? Is that correct or does it work the same for Android?

 

Some of them maybe, but it should work as well in other smartphone (like Android/BB10).

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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