rooskie Posted April 2, 2015 Share Posted April 2, 2015 Hi, How do you hide Android menu from the bottom of the screen with Phaser + CocoonJS when game starts? Cheers! Link to comment Share on other sites More sharing options...
totallybueno Posted April 3, 2015 Share Posted April 3, 2015 No idea, that´s why I´m gonna follow this post. Link to comment Share on other sites More sharing options...
valueerror Posted April 4, 2015 Share Posted April 4, 2015 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 More sharing options...
darkoverlordofdata Posted April 4, 2015 Share Posted April 4, 2015 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 More sharing options...
Recommended Posts