BasicLibs:DrawSprite

From Doors CS, Doors CSE, and Doors CE Wiki
Revision as of 23:10, 2 August 2010 by Graphmastur (talk | contribs) (Created page with '==Description== Draws a sprite to the buffer at a specified location. The sprite is taken from a Pic file. This will work even if the Pic file is archived. ==Technical Details…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Description

Draws a sprite to the buffer at a specified location. The sprite is taken from a Pic file. This will work even if the Pic file is archived.

Technical Details

Arguments

real(1, Spr_X, Spr_Y, Spr_Width, Spr_Height, sPIC_Num,sPIC_X, sPIC_Y, Spr_Method, Spr_Flip, Spr_UpDateLCD

  • Spr_X
    • A number between 0 and 95
  • Spr_Y
    • A number between 0 and 63
  • Spr_Width
    • Sprite width in bytes. So 8 pixels wide, is 1, 16 pixels wide is 2, and so on.
  • Spr_Height
    • Sprite height in pixels
  • sPIC_Num
    • The picture number that this sprite is stored in. 0-9 for Pic0-Pic9
  • sPIC_X
    • The offset for the sprite in the pic horizontally. Must be a value from 0-11, and is aligned with every 8 bytes.
  • sPIC_Y
    • The offset for the sprite in the pic vertically. Does not need to be aligned.
  • Spr_Method
    • 0 for overwrite
    • 1 for AND logic
    • 2 for OR logic
    • 3 for XOR logic.
  • Spr_Flip
    • 0: No flip
    • 1: Horizontal Flip
  • Update_lcd
    • 0: Do not update
    • 1: Update the cleared screen

Outputs

(See Description)