home *** CD-ROM | disk | FTP | other *** search
- To make some memory for the sprite :
- ------------------------------------
-
- DIM spritearea% 1024*size of sprite
-
- The size of sprite is the size you read inside
- the !app with full info.
-
- To load a sprite :
- ------------------
-
- SYS"OS_SpriteOp",&0A+256,spritearea%,P$
-
- where P$ is something like:
-
- P$ = "<Obey$Dir>.Sprite"
-
- To display the sprite on screen :
- ---------------------------------
-
- SYS"OS_SpriteOp",&22+256,spritearea%,"image",
- xpos,ypos,Plot-action
-
- a) "image" is the name of the sprite,
- not the name of the file.
-
- b) xpos is the x position of the bottom left
- corner of your sprite.
-
- c) ypos is the bottom end of your sprite.
-
- d) Plot-actions are:
-
- 0 = overwrite on screen
- 1 = OR with colour on screen
- 2 = AND with colour on screen
- 3 = EOR with colour on screen
- 4 = invert colour on screen
- 5 = leave colour on screen unchanged
- 6 = AND with colour on screen with NOT of
- sprite pixel colour
- 7 = OR with colour on screen with NOT of
- sprite pixel colour
- &08 = if set, use mask, otherwise don`t
-