game-scale example doesn't work anymore

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.

Share this post

Link to post
Share on other sites

I have the same problem. in 2.1.3 version 

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


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 :)

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.