Games which use background hiding foreground sprite trick?

Discuss emulation of the Nintendo Entertainment System and Famicom.

Moderator: Moderators

Post Reply
User avatar
GradualGames
Posts: 1106
Joined: Sun Nov 09, 2008 9:18 pm
Location: Pennsylvania, USA
Contact:

Games which use background hiding foreground sprite trick?

Post by GradualGames »

One of the homebrew games I adapted for GGVm uses the quirk of the ppu where a background sprite, hidden by the background, causes pixels of the foreground sprites to drop out. In this particular use case, the background sprites are solid 8x8 pixels. Since my focus for GGVm is 100% the needs of homebrew developers, one game at a time, I did not attempt to simulate the PPU's behavior correctly. In other words, if the background sprite were not composed of solid 8x8 pixels, the behavior would be incorrect.

What I'm wondering is, which (non homebrew) games use this trick, and are there any known instances where the trick is employed using background sprites that are NOT solid 8x8 pixels (i.e. some transparent, some not), and what is the trick used for?
User avatar
Bregalad
Posts: 8056
Joined: Fri Nov 12, 2004 2:49 pm
Location: Divonne-les-bains, France

Re: Games which use background hiding foreground sprite tric

Post by Bregalad »

  • Castlevania (at the door entering the castle + at the floor when secret items pop up)
  • Super Mario Bros 3 (when somethings pop up from a brick)
  • The Goonies (when entering a door)
  • Mega Man 2 uses this accidentally in Air Man's stage when Mega Man jumps on the status bar behind a cloud (half of the frames it'll be correct but half of the frames the cloud will be in front of the status bar because Mega Man, which is behind the cloud, is in front of the status bar)
  • Probably a lot of others I can't remember
User avatar
tokumaru
Posts: 12427
Joined: Sat Feb 12, 2005 9:43 pm
Location: Rio de Janeiro - Brazil

Re: Games which use background hiding foreground sprite tric

Post by tokumaru »

IIRC, Nightshade uses this to make characters walk behind "foreground" objects.
tepples
Posts: 22708
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Re: Games which use background hiding foreground sprite tric

Post by tepples »

I've been lead programmer of two NES games that use this sort of cutout, but they might be disqualified by how you define "homebrew". Is every western NES game after 1996 "homebrew"? Or are you going by the BootlegGames Wikia definition of "homebrew" that distinguishes the two by whether the developers worked full time?
  • RHDE: Furniture Fight is homebrew but is included in Double Action 53. Its Battle phase uses cutouts shaped like each furniture item's top half to let units walk behind furniture items that are taller than 1 cell. The same sprite tiles are used with the normal palette for placement in the Furnish phase and inventory in Battle phase.
  • Haunted: Halloween '86: The Curse of Possum Hollow is commercial, first published by Retrotainment Games in fourth quarter 2016. It uses solid rectangular cutouts to put Donny behind utility poles and slime pools. But the programmer worked part time.
Did you want an example that is both pre-1997 (or later if Chinese) and not rectangular?
User avatar
GradualGames
Posts: 1106
Joined: Sun Nov 09, 2008 9:18 pm
Location: Pennsylvania, USA
Contact:

Re: Games which use background hiding foreground sprite tric

Post by GradualGames »

Yeah I was primarily curious about "NES heydey" games, from say 1985 through 1994 or so, and yes, about instances where background sprites that are not just solid 8x8 pixels are used to hide foreground sprites (so yeah, some kind of cutout shape perhaps).
User avatar
Dwedit
Posts: 4924
Joined: Fri Nov 19, 2004 7:35 pm
Contact:

Re: Games which use background hiding foreground sprite tric

Post by Dwedit »

Time Lord uses it.
Here come the fortune cookies! Here come the fortune cookies! They're wearing paper hats!
User avatar
Myask
Posts: 965
Joined: Sat Jul 12, 2014 3:04 pm

Re: Games which use background hiding foreground sprite tric

Post by Myask »

Mmm…Zelda 1 does *not*; Link going "down" into a dungeon/cave entry is done through sprite-overload, iirc.
User avatar
Jarhmander
Formerly ~J-@D!~
Posts: 569
Joined: Sun Mar 12, 2006 12:36 am
Location: Rive nord de Montréal

Re: Games which use background hiding foreground sprite tric

Post by Jarhmander »

Myask wrote:Mmm…Zelda 1 does *not*; Link going "down" into a dungeon/cave entry is done through sprite-overload, iirc.
Yes, and this is already documented on our wiki.
((λ (x) (x x)) (λ (x) (x x)))
Bavi_H
Posts: 193
Joined: Sun Mar 03, 2013 1:52 am
Location: Texas, USA
Contact:

Re: Games which use background hiding foreground sprite tric

Post by Bavi_H »

Myask wrote:Mmm…Zelda 1 does *not*; Link going "down" into a dungeon/cave entry is done through sprite-overload, iirc.
Just to clarify:
  • When Link goes from the overworld into a cave door, he just goes behind the background.
  • When Link is in a dungeon and enters a doorway on the top or bottom of the screen, his sprite is clipped using sprite-overload.
Post Reply