Romhacking.net

Romhacking => ROM Hacking Discussion => Topic started by: Mr. Saturn on March 30, 2020, 06:51:55 pm

Title: (NES) Super Mario Bros 2 editing white pixels on characters
Post by: Mr. Saturn on March 30, 2020, 06:51:55 pm
I'm working on a hack for Super Mario Bros. 2, and I need to edit the white pixels on the eyes of the playable characters. They aren't part of that character's palette, and are represented as black (ordinarily clear) pixels on the sprites.
Only those specific pixels on each sprite will be white instead of clear.

So my question is: is there any way to change which pixels are white?
Or alternatively, could I just give those sprites a different palette from the rest of the character?
Title: Re: (NES) Super Mario Bros 2 editing white pixels on characters
Post by: Jorpho on March 30, 2020, 08:56:47 pm
Indeed, the character graphics in SMB2 are two separate sprites drawn on top of one another.  See for instance https://tcrf.net/Proto:Super_Mario_Bros._2_(NES)#Eyes .

Not sure where exactly the sprites for the eyeballs are stored, though.
Title: Re: (NES) Super Mario Bros 2 editing white pixels on characters
Post by: Mr. Saturn on March 30, 2020, 09:11:27 pm
Thanks!I was worried it would be some hard coded unfeasible thing. Finding the sprites shouldn't be too hard.
Title: Re: (NES) Super Mario Bros 2 editing white pixels on characters
Post by: Asaki on April 07, 2020, 03:49:07 pm
Yeah, the whites are a separate sprite. If you use NESticle, you can draw directly on the sprite sheets while the game is running, it's a lot easier to find what you're looking for that way. IIRC, you can even save the changes directly to the ROM, if you're happy with them.