CodeWalrus

Development => Consoles => Topic started by: JWinslow23 on July 03, 2017, 04:32:57 am

Title: Graphics-hacking Super Mario Bros.
Post by: JWinslow23 on July 03, 2017, 04:32:57 am
I had an idea to hack the graphics of Super Mario Bros to change the art style. So far, I'm almost done hacking the graphics for the sprites (and now, I even have some leftover tiles, in case I wanna add something somewhere).

These pictures will show my progress, with (almost!) every graphic I've changed.

(https://codewalr.us/proxy.php?request=http%3A%2F%2Fi.imgur.com%2Fmb5symD.png&hash=f2e7436f51ad985f7f1629332b967e04)
I can't really figure out the title screen format (and it doesn't help that it's stored in CHR-ROM without much breathing room for adding things), so I did this basic edit.
(https://codewalr.us/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FBhLH1Ts.png&hash=2f14cfa6fe6d47f0cc74674353e05245)
Mario flashes his classic peace sign. Let's-a-go!
(https://codewalr.us/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FLDG2bIe.png&hash=5653b82b1dd65345c1c0c8d8c962fcca)
Here is where you can see the first substantial changes to the enemies and powerups.
(https://codewalr.us/proxy.php?request=http%3A%2F%2Fi.imgur.com%2F8WGFP1Q.png&hash=c21fbbb47847d3d975468d3b6c0052c0)
I took the liberty of disabling the powerup-flashing code of the Fire Flower and Starman. That orange deserves to be displayed in its full glory!
(https://codewalr.us/proxy.php?request=http%3A%2F%2Fi.imgur.com%2F28PBIVl.png&hash=a32a94fd0dec17394a9879c67ae9197a)
No longer do you have the ambiguity of "is that a skull or a peace sign?"
(https://codewalr.us/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FITUgKkY.png&hash=34fbdf894be82647a0b4dd5b13dbd1b4)
Fire Mario throws fireballs like an expert.
(https://codewalr.us/proxy.php?request=http%3A%2F%2Fi.imgur.com%2F9v0rEgE.png&hash=bb352f91b1f1ed6ab3b6eb05b87eba17)
I think the Koopa Troopas look very Koopa-y today.
(https://codewalr.us/proxy.php?request=http%3A%2F%2Fi.imgur.com%2F2LPDVIa.png&hash=2cee3c6be64f1924351fe2406ca75472)
It always bothered me that the Piranha Plant's mouth wasn't really connected to its "body". Something had to change about it, fast.
(https://codewalr.us/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FiSGYQR2.png&hash=ab234a6098f5a95cdbc78bb4b6594d3f)
What's a Koopa Troopa without a Red Koopa Troopa?
(https://codewalr.us/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FQl1XEzv.png&hash=60cd179ad1ce6a0c4f5f66edd4067f6c)
dun dun DUUUUUUN
(https://codewalr.us/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FB6QzGfR.png&hash=98fe9d5bd43e9d29635a62e2d6f30a69)
Toad is as annoying as ever, but at least he doesn't look like he's giving the middle finger anymore!
(https://codewalr.us/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FAzXnn9c.png&hash=fe7002fc9f3074df053a40b6d070cdac)
Under the sea...under the sea...darling, it's better down where it's wetter, take it from me...
(https://codewalr.us/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FhqcQkr3.png&hash=fcd81cd9b77475a7533e34dc2951c77e)
The cloud is NOT impressed.
(https://codewalr.us/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FTLdJ6MU.png&hash=238459c3cdd2d621520f8f5349692808)
I don't know what will kill you faster: a bullet to the head, or a hammer to the head.
(https://codewalr.us/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FgRSXA8I.png&hash=7eff54888de8db2a0963c3588125c767)
Buzzy Beetle is buzzy.

In addition to changing the graphics, here is a list of the changes I have made to the code.


Just for future reference for me, I'll put some addresses here that I have NOPed and made safe for any code/routines I might wanna code.
Spoiler: ShowHide









AddressCode before thisCode after this
$0A71 - $0A7ARemove axeDestroy/write block metatile
$12BA - $12BFSwitch playersArea parser task handler
$63A2 - $63ABBlockBufferChk_Enemy (?)BlockBufferChk_FBall (?)
$673B - $674DCUSTOM: Draw "peace sign" Mario before levelDATA: Enemy graphics table
$6F38 - $6F43Kick player's feet while swimmingChoose graphics for player's action
$70F9 - $710BShrink playerFlip player tiles if dying



The .ips patch is attached. This is a work in progress, so tell me what you think!
Title: Re: Graphics-hacking Super Mario Bros.
Post by: 123outerme on July 03, 2017, 04:54:05 am
This is really awesome! The graphics look really great, and you even took the liberty to make a few gameplay improvements. I like how you decided to add your name to the title screen, but legally, I don't believe you own a copyright on Super Mario Bros. :P
Title: Re: Graphics-hacking Super Mario Bros.
Post by: JWinslow23 on July 03, 2017, 07:50:36 am
Quote from: 123outerme on July 03, 2017, 04:54:05 am
This is really awesome! The graphics look really great, and you even took the liberty to make a few gameplay improvements. I like how you decided to add your name to the title screen, but legally, I don't believe you own a copyright on Super Mario Bros. :P

Well, this one tool I have that's supposed to edit the title screen isn't working for me, so that's the best I could do. I wanted to make it say "Super Old Mario Bros", or at least add "GFX by Josiah" on it, but apparently there's not enough space for both.
Title: Re: Graphics-hacking Super Mario Bros.
Post by: gameblabla on July 04, 2017, 12:38:46 am
Hey, it doesn't look too bad !
II gave it a try in Mednafen and it works just fine.
I like the new fireballs and the fact the enemies changes colors in level 2.
One gameplay improvement you could do : When fireball mario gets hit, make it so he becomes giant mario rather than small d*** mario.

Also, another issue : it does not fit in 32ko :'(
Title: Re: Graphics-hacking Super Mario Bros.
Post by: JWinslow23 on July 04, 2017, 07:18:38 am
I posted a new patch. It adds an image of Mario flashing his trademark peace sign before the level:
(https://codewalr.us/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FBhLH1Ts.png&hash=2f14cfa6fe6d47f0cc74674353e05245)
This was not as easy as changing a few bytes: because the space for defining player poses is full, I had to write my own routine specifically for drawing the peace sign pose. I hope it was worth finding 24 unused bytes I could define this new code with!

It also adds your requested damage fix. For reference, TITLPZ+VGLIVO are the Game Genie codes I'm using to fix the damage mechanism. This can also be used in stock SMB1, so try it yourself!
Title: Re: Graphics-hacking Super Mario Bros.
Post by: tr1p1ea on July 04, 2017, 11:59:34 am
Looking awesome man!
Title: Re: Graphics-hacking Super Mario Bros.
Post by: DJ Omnimaga on July 05, 2017, 04:15:41 pm
Those graphical changes and other edits look great Jwin! :)
Title: Re: Graphics-hacking Super Mario Bros.
Post by: JWinslow23 on July 09, 2017, 11:19:22 am
Bump.

I made another long-awaited change (at least, I've been wanting it for a long time).

(https://codewalr.us/proxy.php?request=http%3A%2F%2Fi.imgur.com%2F8NArw5e.png&hash=c8985e463b9f261c1e451f374c936d46)

Whenever I performed the infinite-lives glitch in World 3-1, it was always weird to me how the lives would glitch out with a crown and a random character. Upon looking at the code, it seems at least the crown was intended if you got over 9 lives (but I guess it fails upon having over 19 lives). So I simply took the lives-displaying code and made it display two-digit lives properly. As well, I capped the amount of lives at 99.

Download the new patch in the first post!
Title: Re: Graphics-hacking Super Mario Bros.
Post by: JWinslow23 on February 20, 2018, 11:00:28 am
Necro-bump.

Since I've last updated here, I have made many more graphics changes (not all of them that I was wanting to, though). However, the biggest new thing I've added is this:

(https://i.imgur.com/JcB26d4.png)
(https://i.imgur.com/hniY1uY.png)

Now, both before each level AND when going in pipes, Mario flashes his trademark peace sign! You have no idea how much ASM hacking I had to do to get it to this state :P

Download link in the first post!
Title: Re: Graphics-hacking Super Mario Bros.
Post by: Lionel Debroux on February 20, 2018, 11:17:07 am
Amusing :)

Do you plan on making a special version of Oiram CE, which could feature a subset of your sprite mods, the peace sign or things like that ?
Title: Re: Graphics-hacking Super Mario Bros.
Post by: JWinslow23 on February 20, 2018, 05:57:36 pm
Ask @MateoConLechuga for that. ;)
Title: Re: Graphics-hacking Super Mario Bros.
Post by: Adriweb on February 21, 2018, 10:06:22 am
Well it's doable already, no need to ask Mateo, anyone can :D