A few sprite questions...

Are you new to 6502, NES, or even programming in general? Post any of your questions here. Remember - the only dumb question is the question that remains unasked.

Moderator: Moderators

Post Reply
pigpen
Posts: 5
Joined: Wed Oct 27, 2010 11:52 pm
Contact:

A few sprite questions...

Post by pigpen »

The 8 sprite limit: Does that refer to 8 sprites or 8 sprite-tiles?
For example, every sprite in SMB is at least 2 tiles wide so 4 sprites would contain at least 8 sprite-tiles.
Also is the limit >8 (8 max) or >=8 (7 max)?

Color in sprites: Fire-Mario in SMB and Kunio in River City Ransom are approximately the same size, why does Fire-Mario only use 1 palette (red, white, flesh) for all 8 tiles in his sprite while Kunio uses 2 palettes (blue, black, flesh and white, black, flesh)? Is this just a design choice or is there a technical reason?

(Note: I'm not actually working on an NES game, just trying to boost the authenticity of a retraux game im working on....sorry if these questions have obvious answers...i couldn't find the answer to these in any documentation i read though.)
User avatar
Kasumi
Posts: 1293
Joined: Wed Apr 02, 2008 2:09 pm

Post by Kasumi »

8 sprites per scanline means 8 sprite-tiles, as you've named them.

It is exactly 8. The 9th is the one that won't be displayed. Mario and 3 goombas standing on the ground would display fine. None of the four tiles that make a fourth goomba can be displayed at all in the same frame on the ground with the others and Mario. This is why games swap sprite priority each frame. (The flickering)

There is no technical reason why Mario couldn't use a different one of the four palettes for each tile displayed that makes Fire Mario.
Post Reply