Jump to content

Scaling the game


MarvinBeer
 Share

Recommended Posts

You can tell the Phaser camera to follow your hero/main sprite using:

game.camera.follow(player);

and you can "cull" sprites using: 

s.autoCull = true; //where s is a sprite you want to cull

To "cull" a sprite means to only render it when it is inside of the game bounds. This is something I just learned about and have not yet experimented with but is worth noting to save you the trouble I had with rendering problems (choppy playback).

 

So, instead of zooming in on what you have, why not make it at the ideal size and then follow and cull? 

 

Just some of my thoughts for you!

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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