Jump to content

Phaser.Game coordinates


lpbr
 Share

Recommended Posts

There is a way to move the game stage or it's permanently locked to 0,0?

I would like to be able to set its x,y like this...

var game = new Phaser.Game(window.innerWidth, window.innerHeight, Phaser.AUTO, 'test', { preload: preload, create: create });
game.x = 10;
game.y = 10;

Is this possible?

PS: I tested the above and obviously it didn't work. I checked documentation and see that there is no x,y properties available for Game class but I was wondering if there is any hack. I can recalculate all my assets coordinates to achieve the result but it would be too much simpler if I could just move the game stage around...

Thanks!

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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