Search the Community
Showing results for tags 'screen scale'.
Found 2 results
when I was using 2.0.4 version the screen resizing was good.. it responds to every screen size with proper scaling but when upgrading to 2.3.0 the screen resizing was not that efficient... when I am on my browser is just sets on full browser size this is what i added on the index.html: <meta name="mobile-web-app-capable" content="yes"> <meta name="viewport" content="width=device-width">and this is on the Boot.js file: this.input.maxPointers = 1;this.stage.disableVisibilityChange = false;this.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL;this.scale.minWidth = 320;this.scale.minHeight = 480;this.scale.pageAlignHorizontally = true;this.scale.pageAlignVertically = true;this.stage.forcePortrait = true;this.scale.setScreenSize(true); What would I change so that is just changes to proper screen size
Hi to all. I have one question: When user change brouser screen size, is there a way to scale all screen(scene) ? for example I use next approach var renderer = new PIXI.CanvasRenderer(400, 300, document.getElementById("maincanvas"));renderer.view.style.width = '800px';renderer.view.style.height = '600px';and when screen change it resolution, just update renderer.view.style.width and renderer.view.style.height with new values (of course I calculate aspect ratio) This work fine BUT perforce is bad if I twice screen resolution(as in example above) firefox(or chrome, or opera) will use 75-80% of my cpu. What I do wrong?