haden

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;

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

Share this post


Link to post
Share on other sites

I wıll try ıt, thank you. 

update:

tried and it seems it didnt work. There is something with the behaviour of samsung note5 default browser. It works a bit different than a normal ( like samsung s4 ) browser

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.