home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 1 / ARM_CLUB_CD.iso / contents / apps / paint / m / os_sprite / !OS_Sprite / SpriteOp < prev   
Encoding:
Text File  |  1992-07-03  |  1.1 KB  |  45 lines

  1. To make some memory for the sprite :
  2. ------------------------------------
  3.   
  4.   DIM spritearea% 1024*size of sprite
  5.   
  6.   The size of sprite is the size you read inside
  7.   the !app with full info.
  8.   
  9. To load a sprite :
  10. ------------------
  11.   
  12.   SYS"OS_SpriteOp",&0A+256,spritearea%,P$
  13.  
  14.   where P$ is something like:   
  15.     
  16.     P$ = "<Obey$Dir>.Sprite"
  17.     
  18. To display the sprite on screen :
  19. ---------------------------------
  20.   
  21.   SYS"OS_SpriteOp",&22+256,spritearea%,"image",  
  22.   xpos,ypos,Plot-action   
  23.   
  24.   a) "image" is the name of the sprite,
  25.      not the name of the file.
  26.  
  27.   b) xpos is the x position of the bottom left
  28.      corner of your sprite.
  29.  
  30.   c) ypos is the bottom end of your sprite.
  31.  
  32.   d) Plot-actions are:
  33.     
  34.      0 = overwrite on screen
  35.      1 = OR with colour on screen
  36.      2 = AND with colour on screen
  37.      3 = EOR with colour on screen
  38.      4 = invert colour on screen
  39.      5 = leave colour on screen unchanged
  40.      6 = AND with colour on screen with NOT of
  41.          sprite pixel colour
  42.      7 = OR with colour on screen with NOT of
  43.          sprite pixel colour
  44.    &08 = if set, use mask, otherwise don`t           
  45.