Jump to content

How do I use this spritesheet in Phaser 3?


Jokgee
 Share

Recommended Posts

I just started working with Phaser, and I'm trying to use https://opengameart.org/content/breakout-graphics-no-shadow this spritesheet for a simple breakout clone. How can I load the image and split it up automatically in-code?

Link to comment
Share on other sites

The problem is that the sprite sheet does not have a regular layout. Some sprites are bigger, some smaller,... 

Use Photoshop or Gimp and extract the single images as png files. Use TexturePacker to build a sprite sheet. This will also save you memory because it can be much smaller.

A tutorial how to use sprite sheets can be found here: https://www.codeandweb.com/texturepacker/tutorials/how-to-create-sprite-sheets-for-phaser3

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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