News: 11 March 2016 - Forum Rules

Author Topic: (NES) Super Mario Bros 2 editing white pixels on characters  (Read 2149 times)

Mr. Saturn

  • Jr. Member
  • **
  • Posts: 17
    • View Profile
(NES) Super Mario Bros 2 editing white pixels on characters
« 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?

Jorpho

  • Hero Member
  • *****
  • Posts: 5233
  • The cat screams with the voice of a man.
    • View Profile
Re: (NES) Super Mario Bros 2 editing white pixels on characters
« Reply #1 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.
This signature is an illusion and is a trap devised by Satan. Go ahead dauntlessly! Make rapid progres!

Mr. Saturn

  • Jr. Member
  • **
  • Posts: 17
    • View Profile
Re: (NES) Super Mario Bros 2 editing white pixels on characters
« Reply #2 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.

Asaki

  • Full Member
  • ***
  • Posts: 200
    • View Profile
Re: (NES) Super Mario Bros 2 editing white pixels on characters
« Reply #3 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.