Sign in to follow this  

Game world scale problem

Recommended Posts

My game size is  :  var game = new Phaser.Game(640, 780, Phaser.CANVAS, 'game');
I have resized it to :, 10000);

player position : this.player = this.add.sprite(320, 9952, 'player');;

When I am using scaling, such as :,2);


gofull: function () {

            if ({
            else {
      , false);

it set my player and camera position 0, 0 ( at the top of the game ),  

when using gofull() function it only changes position when fire stopFullScreen(),  with startFullScreen() there is no problem
I'm probably wrong to use resized world and scale.

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.