
- #Shoebox texturepacker driver
- #Shoebox texturepacker code
- #Shoebox texturepacker series
- #Shoebox texturepacker download
A free version is available which has all the necessary features for packing spritesheets for PixiJS. TexturePacker: TexturePacker is a more polished tool that supports advanced features and workflows. ShoeBox: ShoeBox is a free, Adobe AIR-based sprite packing utility that is great for small projects or learning how SpriteSheets work. You can use a 3rd party tool to assemble your sprite sheet files. Maximizing batching is a complex topic, but when multiple Sprites all share a common BaseTexture, it makes it more likely that they can be batched together and rendered in a single call. into a single draw call is the main secret to how PixiJS can run so blazingly fast. WebGL rendering speed scales roughly with the number of draw calls made.
#Shoebox texturepacker download
Converting a project from individual source images to shared sprite sheets can cut your download time in half, at no cost in quality.
#Shoebox texturepacker driver
The number of files itself is a key driver of download speed, because each request requires a round-trip to the webserver, and browsers are limited to how many files they can download simultaneously. This means that the user's browser can request and download far fewer files for the same number of Sprites. While downloading a SpriteSheet's texture requires moving the same (or even slightly more!) number of bytes, they're grouped into a single file. SpriteSheets help your project in two ways.įirst, by speeding up the loading process. Each texture uses the same shared BaseTexture as its source.
#Shoebox texturepacker series
The SpriteSheet object then parses the JSON, and creates a series of Texture objects, one for each source image, setting the source rectangle for each based on the JSON data. These two files, in combination, can be passed into a SpriteSheet constructor. It then writes out a JSON file with that information. The sprite packer then collects the images, and creates a new combined image.Īs this image is being created, the tool building it keeps track of the location of the rectangle where each source image is stored. The first step is to collect the images you want to combine. The basic idea of a spritesheet is to pack a series of images together into a single image, track where each source image ends up, and use that combined image as a shared BaseTexture for the resulting Sprites. While somewhat more complex to create and use, they are a key tool in optimizing your project. Now that you understand basic sprites, it's time to talk about a better way to create them - the Spritesheet class.Ī Spritesheet is a media format for more efficiently downloading and rendering Sprites. Local ninjaGirlSprite = helper.PixiJS Guides Spritesheets and Why You Should Use Them
#Shoebox texturepacker code
Second, ensure your ttings file has this code in it: settings =

(See Posting Questions To Forums below.)įirst, purchase the plugin on Corona Marketplace to activate it. Texture Packer is my personal go-to-tool, but if you are on a budget, any of the last three tools in the list above will suit most basic texture packing purposes and uses.ĭon't see your favorite tool here? Contact me in the Corona Fourms.


ShoeBox - This is the number one FREE solution.Texture Packer - This is the number one PAID solution and if you can afford it, you should buy it now.The helpers support these tools and formats: This plugin (library) is designed to simplify loading & using texture sheets while maintaining backward compatibility if you should change tools at a later date.
