Jump to content

game-scale example doesn't work anymore


haden
 Share

Recommended Posts

I filed this issue in github - https://github.com/photonstorm/phaser/issues/2458

 

[Phaser 2.4.7 | tested 5/3/2016]: With this particular example, I think you can make code corrections to make this work in your own dev environment.

- var game = new Phaser.Game(320, 240, Phaser.CANVAS, 'phaser-example',   ...replace phaser-example with null

- Replace the line "game.scale.setScreenSize();" with "game.scale.refresh();"

 

Going through this website interface, even with the changes, the file "phaser.2.4.7.min.js" doesn't load for some reason. But that's a different issue as we don't have as much control on the server-side.

Link to comment
Share on other sites

  • 2 months later...

I have the same problem. in 2.1.3 version 

this.scale.scaleMode = Phaser.ScaleManager.EXACT_FIT;

this.scale.setScreenSize(true);

Now, i am trying to use latest 2.6.0 and this.game.scale.refresh(); doesnt work as expected. Any solution?

 

-- solution

removed html div id tag as explained above :)

Link to comment
Share on other sites

  • 4 months later...
 Share

  • Recently Browsing   0 members

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