Language…
20 users online: , E-man38, GiraffeKiller, GrenCarret, JupiHornet, Lane, LightAligns, margot, MarsAmpere, nobletofu, , PhantasyReal, RicardoDeMelo, Royal Nico TS, Samie Zuccati, sergio_HelloKittyFan, TheCrazyBuzzyBeetle, , VecchiaZim, WhiteYoshiEgg - Guests: 130 - Bots: 223
Users: 55,677 (2,384 active)
Latest user: rottencola

# Sprite Programming [Legacy]

Originally posted by imamelia
What about my ASM tutorial? It will include several sections about making sprites.

lolOpenOffice

I was unaware that you had one. That's...quite the detailed tutorial you have there. I feel like you'd surpass any possible tutorial that I could come with by parsecs.

Good luck you, sir.
Quote
Would you mind if I rewrote this for xkas? Obviously I'd put my own spin on it, but I have time to dedicate to something like this so you wouldn't have to worry about it.

Sure, go for it if you want. Truth be told I do have plenty of free time but this tutorial is something I don't really care about anymore. :\
And... how I do a 16x24 sprite?
Why Super Sonic and Super Sayan are identical?? ;)
Ultra Mario World progress: 0,1% (demo 1 progress 5%)
The easiest way is doing it similarly to an 16x32 tile, but set the offsets so the tiles overlap each other (set the offset to 08 instead of 10).
Remember to set the tilemap to overlap itself so you won't waste space on duplicate (or blank) tiles.
<blm> zsnes users are the flatearthers of emulation
Yep, if the sprite is 16x32, the sprite layout would be:

X <- This tile is shifted up from Y by 16 tiles (16 + 16 = 32).
Y

You want to shift that tile up ONLY by 8 tiles (16 + 8 = 24) so all that's required is changing the Y displacement to 08 instead of 16 in the 16x32 GFX routine. Here's the code if you're interested.
Also, I want to make small announcement. I will be "converting" this tutorial to an xkas/asar format once the new text editor for posting is implemented. I already converted a good amount of my first post but editing has become a pain with the current editor that I gave up.

And while I'm at it I will probably fix many errors, add more routines and clarify a few more points. I'll edit this post when I'm done.
Originally posted by Iceguy

PHX
LDA \$13
LSR
LSR
LSR
AND #\$01
TAX
LDA TILEMAP,x
STA \$0302,y

LDX \$02
LDA FLIP,x
PLX
ORA \$64
STA \$0303,y
PLX

How unequivocally detestable.
Post edited to spare others this horror.
<blm> zsnes users are the flatearthers of emulation
WoW
This tutorial is the Wikipedia?
lol.

Good tutorial, very detailed.

Hell of Pain - My hack