Page 1 of 1
I'm new and need a little help
Posted: Fri Oct 15, 2010 9:54 am
by solano
I have been looking at the examples but some of the code doesn't make any sence to me and I can't figure out how it work.For example how are the man and woman loaded into memory from the animated sprites example.Is there a wiki or some documentation that I can read.That's all I need for now.
Re: I'm new and need a little help
Posted: Fri Oct 15, 2010 3:48 pm
by azenris
Re: I'm new and need a little help
Posted: Fri Oct 15, 2010 4:04 pm
by relminator
Those sprites are first converted by GRIT into 8x8 chunks. There are 2 ways the example is handling the animation. One is preloaded into vram and just being referenced by state * numframes and the other is loaded on the fly via DMA.
The OAM is kinda tricky to figure out but once you figure it out, it's not too hard. Try to read up on some of tutorials from coranac.com.
If you want to code sprites like you used to in the PC you could use the 3d hardware to blit 2d sprites:
http://rel.betterwebber.com/junk.php?id=112