Sprite Memory Pages

Keep in mind that the Pixel Vision 8 also places limits on the number of sprites it can store in memory. While technically the engine can support any PNG file that is horizontally and vertically divisible by eight, it helps to optimize your art based on sprite pages, which is how the internal system stores and calculates the total sprites available.

A single sprite page is 128x128 pixels, which contains 256 sprites. When you are configuring the system, you can define how many pages of memory the SpriteChip supports. The maximum number of pages is eight for a potential total of 2,048 sprites. Here is a breakdown of how many sprites are available as you increase the number of pages:

Pages

Total Sprites

1

256

2

512

3

768

4

1,024

5

1,280

6

1,536

7

1,792

8

2,048

One way to help optimize your sprites is to store them in page blocks before importing. Let's look back at the earlier example of the Reaper Boy sprites. If we were to export the sprites from the Sprite Chip, we would end up with a 256 x 768 image:

image alt text

Here you can see how each page of sprites is organized. Since the importer reads from the top left of the sprite.png to the right as it traverses each row of pixels, organizing your PNG file like this will help speed-up loading sprites at run-time.