Phaser Texture Packer -
For a while, life was good. But as his game grew, a dark shadow fell over the land. The users began to complain.
The Archmage peered into the Network Waterfall and shook his head. "Young Leo, you are committing the Sin of the Thousand Requests. You are asking the browser to make 50 separate journeys to the server just to load one character. The HTTP overhead is killing your frame rate." phaser texture packer
Switching to a texture packer isn't just for "AAA" games. Even a small Phaser game benefits from the reduced HTTP overhead and cleaner animation system. It takes 10 minutes to set up, but it will save you hours of optimization headaches later. For a while, life was good
To load a sprite sheet in Phaser, use the load.spritesheet() method: The Archmage peered into the Network Waterfall and
The browser hummed with happiness. The load time dropped by 80%. But Leo still had a question: "How do I animate him now? I no longer have knight1 , knight2 filenames?"