gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > What is the smallest tile size for DS?

#145254 - consolejoker - Tue Nov 13, 2007 5:31 am

Maybe a better question is what is the preferred tile size?

#145262 - Peter - Tue Nov 13, 2007 7:46 am

The 2D engines tile-backgrounds only support tile-sizes of 8x8 pixels.
_________________
Kind Regards,
Peter

#145318 - Dwedit - Wed Nov 14, 2007 12:26 am

You can get smaller tile sizes by using affine transformations, but you waste graphics doing so.
_________________
"We are merely sprites that dance at the beck and call of our button pressing overlord."

#145378 - josath - Wed Nov 14, 2007 5:28 pm

Dwedit wrote:
You can get smaller tile sizes by using affine transformations, but you waste graphics doing so.


And you can get bigger tile sizes (multiples of 8) by using meta-tiles. Or you can combine the two methods...eg use three by three 8x8 tiles to get 24x24 tiles, then scale to 50%, and you've got 12x12 tiles.

#145389 - tepples - Wed Nov 14, 2007 8:30 pm

To change only the height of a tile (e.g. 16x12, 16x14), you could use an ordinary text background with hblank DMA to the vertical scrolling register rather than the affine registers. Columns Crown for GBA does this.

To change the width of a tile to a distance of 8*n+4, such as 12 or 20, you could draw onto two layers: tiles in odd columns in one layer, tiles in even columns in the other layer, and then superimpose the layers. Puyo Pop for GBA and Luminesweeper for GBA use both this and the above.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.