By default, Pixel Vision 8 renders a single sprite as an 8 x 8 block of pixel data. The Sprite tool allows you to change the size of sprites while you edit them to make it easier to work with. You can cycle through the three different sizes by clicking on the size button below the sprite picker. By default, the sprite size will be 8 x 8.
The next size is 16 x 16
And the final size is 32 x 32.
It’s important to note that changing the size only affects what you see in the Sprite Tool. Sprite will continue to be parsed as 8 x 8 sections. Changing the size of the sprite in the Sprite Tool makes it easier to work on larger sprites that are comprised of several smaller 8 x 8 ones.
While the Sprite Tool’s size button doesn’t change the default size of sprites in the game, you can use it to help preview how the
DrawSpriteBlock() API will work. You’ll notice that as you cycle through the different sizes, the sprite’s ID is always fixed to the upper left-hand sprite.
So if you want to draw a 16 x 16 sprite, simply call:
DrawSpriteBlock(14, 8, 8, 2, 2)
The DrawSpriteBlock() API accepts the sprite’s size in columns and rows. So this call will draw a grid a 2 by 2 grid of sprites, starting with the first ID as the top left corner.
The X and Y position will also be fixed to the top left corner as well so you’ll need to account for that in your game as well.