← All interactive demos

Characters That Vanish When Lined Up — Interactive Demo

This is the working model from the video "Why Do NES Sprites Disappear When They Line Up?". The screen is 256 × 240 dots. Each character is 16×16, made of four 8×8 sprites. Each time the picture chip draws one horizontal line (a scanline), it checks a table of 64 sprites from the front and picks up to 8 sprites that touch that line. From the 9th on, they are not drawn on that line. The characters are our own drawings, not game footage.

About flashing: by default, the flashing on this page is slow, at 2 frames per second (the real console runs at about 60 frames per second). If flashing lights tend to make you feel unwell, use the "Show the share as shading" view (no flashing).

1. The model screen

Frame 0 / lines with 9+ sprites this frame: 0 / most on one line: 0
View:

2. Change the line-up

Characters 6
Height offset (every other one) 0 dots

3. Order written to the table (each frame)

Task: how many characters can you line up before they start vanishing or flickering? How many dots up or down do you need to shift them so they stop vanishing?

4. Run 600 frames (10 seconds) and count (same measurement as the video)

CountOffsetOrderShare visible (1st →)Longest unseen

Model rules: for each scanline, it checks the table from entry 0 in order and draws only the first 8 sprites that touch that line. Lower numbers are in front. Always the same = every frame, write from the 1st character in order. Alternate = even frames start from the 1st character, odd frames from the last one. Shift the first one each frame = on frame f, start from character f and wrap around. Show the share as shading = draw each character with a shade equal to the share of the last 60 frames it was shown in (a no-flash picture; it does not reproduce how human eyes see it).
Differences from the real console: it does not handle picking sprites one line early, the overflow flag, overlap with the background, or the 8×16 size. The shape is based on public technical documents (NESdev Wiki "PPU OAM", "PPU sprite evaluation", "PPU sprite priority", "Don't hardcode OAM addresses", "Limitations") (not official Nintendo documents).
Sources and credits: same as the video description (AI was used to make the diagrams and script; no game footage or characters are used).