sprite.s

Summary
sprite.s
Functions
spr_showShow sprite.
spr_hideHide sprite.
spr_xUpdate sprite X coordinate.
spr_yUpdate sprite Y coordinate.
spr_patternSet sprite pattern address in VRAM.
spr_palSet sprite palette index.
spr_priSet sprite priority.
spr_ctrlSet sprite control flag.
spr_update_satbCopy the local sprite attribute table to VRAM.

Functions

spr_show

Show sprite.

Parameters

Ysprite index

spr_hide

Hide sprite.

Parameters

Ysprite index

spr_x

Update sprite X coordinate.

Parameters

Ysprite index
AX coordinate

spr_y

Update sprite Y coordinate.

Parameters

Ysprite index
AY coordinate

spr_pattern

Set sprite pattern address in VRAM.

Parameters

Ysprite index
XMSB of the sprite pattern address in VRAM
ALSB of the sprite pattern address in VRAM

spr_pal

Set sprite palette index.

Parameters

Ysprite index
Apalette index

spr_pri

Set sprite priority.

  • 1 foreground
  • 0 background

Parameters

Ysprite index
Asprite priority

spr_ctrl

Set sprite control flag.

Parameters

Ysprite index
_alMask of the bits to change (eg VDC_SPRITE_VERTICAL_FLIP_MASK, VDC_SPRITE_HORIZONTAL_FLIP_MASK, VDC_SPRITE_WIDTH_MASK, VDC_SPRITE_HEIGHT_MASK, VDC_SPRITE_PRIORITY_MASK, VDC_SPRITE_PALETTE_MASK)
ANew bits values.

spr_update_satb

Copy the local sprite attribute table to VRAM.

Close