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 > Easy way to create a large sprite?

#106719 - MattC - Sun Oct 22, 2006 11:21 pm

I've searched to forum, and I've found a little bit of information on this, but it was all pretty low level. I'm hoping there's some easy way (like part of a library) to create a sprite larger than the default sizes? Like, if I wanted to create a sprite that was 128x128? It looks like the standard way to do this is by creating 4 64x64 sprites, but has someone already created a simple library that will load a file, then treat it as multiple sprites automatically? Would it be better just to use a background instead?

I'm trying to create a game that will have layered components, like there will be a circle on the top which you have to do something with (maybe move it with the stylus), then below that, a large square which you have to trace, something like that. So basically, I need to be able to manipulate all of these components, like you can with sprites.

-Matt

#106727 - knight0fdragon - Mon Oct 23, 2006 12:19 am

you could take a 64x64 sprite and double its size using affine matrix math

look for sprite rotation
_________________
http://www.myspace.com/knight0fdragonds

MK DS FC: Dragon 330772 075464
AC WW FC: Anthony SamsClub 1933-3433-9458
MPFH: Dragon 0215 4231 1206

#106775 - PypeBros - Mon Oct 23, 2006 9:49 am

make sure you use ROTSCALE_DOUBLE if you do that ^_^
_________________
SEDS: Sprite Edition on DS :: modplayer