Jump to content

Phaser + CocoonJS + Android hide menu


rooskie
 Share

Recommended Posts

short answer: you can't !

 

long answer:  cocoonjs told me (because i asked the same question) that this is currently not possible and the have no plans to allow this at the moment.. this doesn't mean it won't be there at some point in the future.

 

 

for me this was one of several reasons to use "crosswalk" instead of "cocoonjs" :)

Link to comment
Share on other sites

I only see this in the launcher, not in the compiled apk.

 

On the project configuration screen, I select no scale as my scale method, and then let phaser take control in the game init method:

 

var width = window.innerWidth;
var height = window.innerHeight;
var scale = window.devicePixelRatio;
this.game.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL;
this.game.scale.minWidth = width * scale;
this.game.scale.minHeight = height * scale;
this.game.scale.maxWidth = width * scale;
this.game.scale.maxHeight = height * scale;
this.game.scale.pageAlignVertically = true;
this.game.scale.pageAlignHorizontally = true;
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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