home *** CD-ROM | disk | FTP | other *** search
- This library may be used to create, maintain, load and save sprite files.
-
- Procedures:
-
- DEFPROCstartup_sprites - call this to set up the areas of memory needed for
- mode translation.
-
- DEFPROCsetup_spritearea(size%,RETURN spritearea%) - sets up a sprite area of
- size size%. Returns where it has created this in the variable passed in
- spritearea% (Note that this does not need to be defined).
-
- DEFPROCload_sprites(filename$,spritearea%) - loads the sprites contained in
- filname$ into spritearea%.
-
- DEFPROCsave_sprites(filename$,spritearea%) - saves the sprites contained in
- spritearea% to filename$.
-
- DEFPROCdisplay_sprite(plot_action%,x%,y%,name$,spritearea%) - displays the
- sprite name$. Plot_action% is the GCOL code to plot it in (EG 3 for EOR, 8
- for with mask, etc)
-
- DEFPROCsetup_table(spritearea%,spritename$) - sets up the translation table
- for a sprite, so that it can be displayed in the current mode. Needs
- Colourtrans 0.52 or later.
-
- DEFPROCshow_sprite(spritearea%,spritename$,x%,y%) - plots the sprite using
- the current translation table at x%,y%. This will show a sprite that has
- been created, say, in MODE 15 in MODE12, so long as PROCsetup_table has been
- called while in MODE 12.
-
- DEFPROCcreate_sprite(spritearea%,spritename$,xsize%,ysize%,mode%) - creates
- a sprite.
-
- DEFPROCcreate_mask(spritearea%,spritename$) - gives a sprite a mask.
-
- DEFPROCdraw_on_sprite(spritearea%,spritename$) - redirects screen output to
- a sprite. It is important not to corrupt the variables r0,r1,r2,r3 during
- the time screen output is directed to the sprite, because these contain the
- only way back.
-
- DEFPROCoffsprite - resets plotting to the screen. In x0%, y0%, x1%, y1% it
- will return the coordinates that contain the box that has been changed.
-
- DEFPROCdraw_on_mask(spritearea%,spritename$) - Redirects screen output to
- the mask of a sprite.
-
-