Function SetSpritesOptions

From Uzebox Wiki
Jump to: navigation, search
Prototype

void SetSpritesOptions(unsigned char params);

Description

Defines attributes that affects all sprites.

Parameters
  • params: Sprites flags
    bit0=Defines what happens to excess sprites when there is already 5 on the same scanline.
    • 0=Clip: Excess sprites are ignored (clipped). Note that sprites are processed in the order of their index.
    • 1=Flicker: Rotate the visibility of excess sprites. This will cause flickering similar to the NES.
Returns

Void

Video Modes

2

Since

V2

Example:

//Activate sprite flickering when there's more than 5 per scanline
SetSpritesOptions(1);