Deconstructing Mario Bros

Feel free to discuss anything gaming related.

Moderator: General Mods

Post Reply
casualsax3
Veteran
Posts: 743
Joined: Tue Aug 10, 2004 4:38 pm

Deconstructing Mario Bros

Post by casualsax3 »

snkcube
Hero of Time
Posts: 2646
Joined: Fri Jul 30, 2004 2:49 am
Location: In front of the monitor
Contact:

Re: Deconstructing Mario Bros

Post by snkcube »

Hey, that's pretty cool.
Try out CCleaner and other free software at Piriform
Image
Nightcrawler
Romhacking God
Posts: 922
Joined: Wed Jul 28, 2004 11:27 pm
Contact:

Post by Nightcrawler »

That is pretty cool. Thanks for that link. I'll pass that one to the guys over at ROMhacking.net as I'm sure they'd be interested in this if it hasn't been posted there already by somebody else.
[url=http://transcorp.romhacking.net]TransCorp[/url] - Home of the Dual Orb 2, Cho Mahou Tairyku Wozz, and Emerald Dragon SFC/SNES translations.
[url=http://www.romhacking.net]ROMhacking.net[/url] - The central hub of the ROM hacking community.
neoblaze
8-bit Moderator
Posts: 530
Joined: Fri Jul 30, 2004 11:55 pm
Location: the boat
Contact:

Post by neoblaze »

wow

shiny
whicker
Trooper
Posts: 479
Joined: Sat Nov 27, 2004 4:33 am

Post by whicker »

For extra credit points:

Why are the sprite indexes for the enemies (and thus the images on the right) constantly being rotated every frame?
funkyass
"God"
Posts: 1128
Joined: Tue Jul 27, 2004 11:24 pm

Post by funkyass »

because they take up more than one frame?
Does [Kevin] Smith masturbate with steel wool too?

- Yes, but don’t change the subject.
whicker
Trooper
Posts: 479
Joined: Sat Nov 27, 2004 4:33 am

Post by whicker »

funkyass wrote:because they take up more than one frame?
Hmm. nope.

Even the 100 points that rises appears in multiple sprite slots, and it's not animated.

Maybe my grammar is unclear (sorry)... the sprite order is being shuffled around, if you look closely, when there is a sprite besides Mario onscreen.

Also notice how Mario isn't shuffled, yet is animated ...
Joe Camacho
Devil's Advocate
Posts: 2293
Joined: Mon Aug 02, 2004 7:51 pm
Location: Hmo. Son.

Post by Joe Camacho »

Kind of neat, I would really hope to understand what is really happening.
*Sometimes I edit my posts just to correct mistakes.
AntoineWG
Trooper
Posts: 530
Joined: Thu Jul 29, 2004 6:59 pm
Location: 127.0.0.1
Contact:

Post by AntoineWG »

It probably has to do with the motion of the Goombas' feet, since the Koopas don't do it. Rather than loading 2 more sprites for their feet every frame, they get mirrored and the indecies get swapped, making it look like their feet are going up and down. It's probably less memory intensive than loading 4 sprites just for their feet and faster than loading 2 sprites from the cartridge every frame.
[i]"It is better to have tried and failed than to have failed to try, but the result's the same." - Mike Dennison[/i]
casualsax3
Veteran
Posts: 743
Joined: Tue Aug 10, 2004 4:38 pm

Post by casualsax3 »

Here is something along the same lines, with a very detailed description of what is going on - this one deals with Metroid.
http://mdb.classicgaming.gamespy.com/m1/lvldata.htm
whicker
Trooper
Posts: 479
Joined: Sat Nov 27, 2004 4:33 am

Post by whicker »

Well, anyway, the shuffling is going on to avoid having a given sprite completely disappear. There can only be 8 8-pixel wide sprites on a given scanline. Since most enemies in the game are 16 pixels wide, more than 3 enemies or other sprites will cause flashing if Mario is on the same horizontal line.

To everyone's benefit, flashing is better than an invisible sprite. The sprites take turns being invisible for one frame due to the shuffling.
Post Reply