Question about Kirby's Adventure sprites.

A place for your artistic side. Discuss techniques and tools for pixel art on the NES, GBC, or similar platforms.

Moderator: Moderators

Post Reply
Friendly_Noob
Posts: 20
Joined: Mon Dec 14, 2015 2:58 am

Question about Kirby's Adventure sprites.

Post by Friendly_Noob »

Hello. I'm new to nesdev and bit confused when it comes to color limitations of sprites. So... backgrounds use 16x16 tiles that may use 3 unique palette colors + black. What about the limit for character sprites? Most use just 3 colors, can I use black as the 4th color? Here's a sprite of on-guard sword knight from Kirby's Adventure, which uses 6 colors (3 for the knight and 3 for the sword). Are they just 2 separate sprites?
Image
User avatar
Bregalad
Posts: 8055
Joined: Fri Nov 12, 2004 2:49 pm
Location: Divonne-les-bains, France

Re: Question about Kirby's Adventure sprites.

Post by Bregalad »

It is multiple separate sprites overlayed on eachother. This is nothing special/uncommon on the NES, since you already have to use multiple sprites to form a metasprite, overlaying them is just the next step.

Also backgrounds uses 8x8 tiles, not 16x16. The colour palette granularity is 16x16, and it is common for games to simulate 16x16 tiles by assembling groups of 4 tiles, "metatiles".
Friendly_Noob
Posts: 20
Joined: Mon Dec 14, 2015 2:58 am

Re: Question about Kirby's Adventure sprites.

Post by Friendly_Noob »

Does it mean that if my character is 8x16, upper 8x8 tile can have completely different colors than lowe 8x8 tile?
User avatar
Bregalad
Posts: 8055
Joined: Fri Nov 12, 2004 2:49 pm
Location: Divonne-les-bains, France

Re: Question about Kirby's Adventure sprites.

Post by Bregalad »

In the case of 8x8 hardware sprites, yes. If 8x16 hardware sprites are used, no.

However Contra have 32x16 player with 8x16 hardware sprites and different colours for the lower part (pants) and the upper part (body).
User avatar
tokumaru
Posts: 12427
Joined: Sat Feb 12, 2005 9:43 pm
Location: Rio de Janeiro - Brazil

Re: Question about Kirby's Adventure sprites.

Post by tokumaru »

Friendly_Noob wrote:can I use black as the 4th color?
No. The reason NES sprites are only 3 colors is that one of the colors has to be sacrificed in favor of transparency. The only way to have sprites with more than 3 colors is to overlay sprites (like in the Kirby example) or to use different palettes in non-overlapping sprites (like in Contra).
User avatar
Dwedit
Posts: 4921
Joined: Fri Nov 19, 2004 7:35 pm
Contact:

Re: Question about Kirby's Adventure sprites.

Post by Dwedit »

One more way to get another sprite color: Plain old black background everywhere. Not all that infrequent.

Another thread proposed modifying the background tiles around the player character to draw black pixels there, using an RPG hero as an example. This would help against the sprite limit and add forced black pixels to the character. If white was forced into every background palette, you could get White that way too.
Here come the fortune cookies! Here come the fortune cookies! They're wearing paper hats!
User avatar
tokumaru
Posts: 12427
Joined: Sat Feb 12, 2005 9:43 pm
Location: Rio de Janeiro - Brazil

Re: Question about Kirby's Adventure sprites.

Post by tokumaru »

Dwedit wrote:One more way to get another sprite color: Plain old black background everywhere. Not all that infrequent.
This worked pretty well in the fighting sequences of the Famicom Dragon Ball Z games.
Another thread proposed modifying the background tiles around the player character to draw black pixels there, using an RPG hero as an example.
This is quite an extreme solution, and very impractical in most games that don't use tiny sprites whose movements are limited by a grid.
AWJ
Posts: 433
Joined: Mon Nov 10, 2008 3:09 pm

Re: Question about Kirby's Adventure sprites.

Post by AWJ »

tokumaru wrote:
Dwedit wrote:One more way to get another sprite color: Plain old black background everywhere. Not all that infrequent.
This worked pretty well in the fighting sequences of the Famicom Dragon Ball Z games.
Fun fact: Only one of the two characters in those fighting sequences is made of sprites. The other one is drawn onto the BG. That's why they never flicker even when the bigger characters do a kick.
Friendly_Noob
Posts: 20
Joined: Mon Dec 14, 2015 2:58 am

Re: Question about Kirby's Adventure sprites.

Post by Friendly_Noob »

Thanks for answers everyone!
Post Reply