Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

What's The Best Phaser.Game Size For IOS?


gbachik
 Share

Recommended Posts

I currently want to build a game for iPhone (I have a 5s) using Phaser and CocoonJS.

 

I'm just wondering what the best/most optimized initial game size would be for this!

 

aka for this code:

var game = new Phaser.Game(800, 600, Phaser.AUTO, 'icicle-man');

What would be the best options to replace 800 & 600 with?

 

-Thanks

Link to comment
Share on other sites

Hi, gbachik.

 

Generally, you can use the following:

var game = new Phaser.Game(window.innerWidth, window.innerHeight, Phaser.CANVAS, '', {preload: preload, create: create, update: update});

CocoonJS reports the size of the screen through its window.innerWidth/Height.

 

I also highly recommend reading through this list of common issues between Phaser and CocoonJS. It covers all of the reported problems we are currently aware of.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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