NESDev and Strangulation Records messageboards
Forum Index | FAQ | New User | Login | Search

Previous ThreadView All ThreadsNext ThreadShow in Flat Mode*


SubjectRe: Sprite priority question...  
Posted byquietust
Posted on12/5/02 11:59 PM



In order to properly handle sprite priority, you need to do things a bit differently.

Instead of drawing sprites in the order 63->0 and drawing lower numbered sprites on top of higher numbered ones, draw them 0->63 but only allow each pixel on the screen to be occupied by *one* sprite.

The important bit here is that sprites drawn behind the background are still treated as being drawn, so a higher numbered sprite will NOT be rendered in that particular location.

Note that all of this is per-pixel, and transparent sprite pixels do not count.

--
Quietust
P.S. If you don't get this note, let me know and I'll write you another.

-
Entire Thread
Subject  Posted byPosted On
*Sprite priority question...  Anonymous12/5/02 6:15 PM
.*Re: Sprite priority question...  big_pasty12/6/02 01:37 AM
..*Re: Sprite priority question...  Big Time12/6/02 10:41 AM
...*Re: Sprite priority question...  flubba1/13/03 8:47 PM
....*Re: Sprite priority question...  koitsu1/14/03 9:53 PM
.....*Re: Sprite priority question...  flubba1/15/03 11:05 AM
....*Re: Sprite priority question...  loopy1/14/03 04:24 AM
...*Re: Sprite priority question...  Anonymous12/6/02 2:18 PM
..*Re: Sprite priority question...  big_pasty12/6/02 03:23 AM
..Re: Sprite priority question...  quietust12/5/02 11:59 PM
Jump to

Memblers' homepage             Contact Me

Forums powered by WWWThreads Demo