Register - Last Sprite

From NerdConsole
Revision as of 20:52, 23 January 2024 by NerdOfEpic (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Sprites are rendered in decreasing order. Lower indexed sprites are drawn on top of higher indexed sprites. To limit how many sprites are being drawn at any given time the Last Sprite value indicates the highest indexed sprite that will be drawn. The nature of this behavior means that it's not possible to not draw sprite 0. If you need there to be no sprites drawn at all you can either turn off sprites in the active features register, or set the last sprite to 0 and set sprite 0 to use a fully transparent tile.

Bit 7 6 5 4 3 2 1 0
$02B0 L L L L L L L L

Key

  • L - Last Sprite [0-255]

This register is a part of the Control Page.