home *** CD-ROM | disk | FTP | other *** search
/ No Fragments Archive 10: Diskmags / nf_archive_10.iso / MAGS / ST_USER / 1990 / USERNV90.MSA / TEXT_SPRITES.DOC < prev    next >
Text File  |  1990-05-24  |  6KB  |  153 lines

  1.                              SPRITE DESIGNER
  2.  
  3.  
  4.              Create sprites and animated characters for your arcade
  5.                  games with Robert Warnestam's powerful utility
  6.  
  7.  
  8. Boot up almost any arcade game and one thing hits you smack between the eyes -
  9. the superbly animated sprite-like characters whizzing around the screen at
  10. breakneck speed. True sprites are generated by special hardware inside
  11. computers, but unfortunately the ST doesn't have any hardware support. However,
  12. by using some clever 68000 machine code programming it's possible to simulate
  13. sprites.
  14.     Writing a super-fast sprite handling subroutine from scratch is a complex
  15. and time consuming task, and you probably want to get on with writing the game
  16. rather than fiddling with sprite code trying to wring out the last once of
  17. performance. All your sprite handling problems are now behind you because here
  18. is a sprite editor that enables you to create your own designs and save them to
  19. disk.
  20.     When you have finished you have a choice of several fast and flexible
  21. sprite draiung routines that can be used to animate your creations. The source
  22. code is provided along with executable programs that can be run from the
  23. desktop. What more could you ask for?
  24.  
  25. * MAIN PROGRAM
  26. SPR_DES.PRG      Runable file                       (the sprite designer)
  27. SPR_DES.BAS      Source code in GFA BASIC
  28.  
  29. * SCREEN LAYOUT
  30. SPR_DES1.A68     Assembler source in ASM68K
  31. SPR_DES1.MC      Compiled 'SPR_DES1.A68'            (used in SPR_DES.PRG)
  32. SPR_DES.PI1      DEGAS ELITE screen                 (used in SPR_DES.PRG)
  33.  
  34. * SPRITE EDITING
  35. SPR_DES2.A68     Assembler source in ASM68K
  36. SPR_DES2.MC      Compiled 'SPR_DES2.A68'            (used in SPR_DES.PRG)
  37.  
  38. * MACRO PALETTE
  39. SPR_DES3.ASM     Assembler source in MCC ASSEMBLER
  40. SPR_DES3.MC      Compiled 'SPR_DES3.ASM'            (used in SPR_DES.PRG)
  41.  
  42. * DEMONSTRATION PROGRAM
  43. DEMOSPR.PRG      Runable file                       (this is DEMOSPR.PRG)
  44. DEMOSPR.BAS      Source code in GFA BASIC
  45.  
  46. * SPRITE ROUTINES (for use in your own programs)
  47. SPRITE.ASM       Assembler source in MCC ASSEMBLER
  48. SPRITE.MC        Compiled 'SPRITE.ASM'              (used in DEMOSPR.PRG)
  49.  
  50. * VARIOUS SPRITES
  51. CHERRY.SPR       Sprites created with SPR_DES       (used in DEMO.SPR)
  52. PACMAN3.SPR      Sprites created with SPR_DES       (used in DEMO.SPR)
  53. ROBOT1.SPR       Sprites created with SPR_DES       (used in DEMO.SPR)
  54. SHIP1.SPR        Sprites created with SPR_DES       (used in DEMO.SPR)
  55. STARS1.SPR       Sprites created with SPR_DES       (used in DEMO.SPR)
  56. SPRITE.SPR       Sprites created with SPR_DES       (used in DEMO.SPR)
  57.  
  58. ******************************************************************************
  59.  
  60. How the sprites are stored on the disk...
  61.  
  62.  Byte From   Byte To     Length       What
  63.  ---------   ---------   ----------   ---------
  64.          0          31           32   Color header
  65.         32          33            2   Start sprite (0-15)
  66.         34          35            2   End sprite (0-15)
  67.         36         547          512   Sprite image
  68.          .           .            .   Another sprite image
  69.          .           .            .   .
  70.          .           .            .   .
  71.  
  72. ******************************************************************************
  73.  
  74. Sprite Image...
  75.  
  76.      Word 1: Sprite Line 0, Color Plane 0, Pixel 0-15
  77.           2              0              1        0-15
  78.           3              0              2        0-15
  79.           4              0              3        0-15
  80.           5              0              0        16-31
  81.           6              0              1        16-31
  82.           7              0              2        16-31
  83.           8              0              3        16-31
  84.           9              1              0        0-15
  85.         255             31              3        16-31
  86.  
  87. ******************************************************************************
  88.  
  89. Sprite Designer Controls
  90.  
  91. ==>These are the icons on the right side of the sprite designer screen...
  92.  
  93. | 1a | 2  | 2  | 2  | 2  | 3a | 3a | 3a |
  94. | 1b | 2  | 2  | 2  | 2  | 3b | 3b | 3b |
  95. | 1c | 2  | 2  | 2  | 2  | 3c | 3c | 3c |
  96. | .  | 2  | 2  | 2  | 2  | 4a | 4b | 4c |
  97. | 5a | 5a | 5a | 5a | 7a | 7a | 7a | 7a |
  98. | 5b | 5b | 5b | 5b | 7b | 7b | 7b | 7b |
  99. | 5c | 5c | 5c | 5c | 7c | 7c | 7c | 7c |
  100. | 5d | 6a | 6b | 6c | 7d | 8a | 8b | 8c |
  101. | 9a | 9b | 9c | 9d | 9e | 9f | 9g | 9h |
  102. | A  | A  | A  | A  | I  | I  | J  | J  |
  103. | B  | .  | .  | .  | I  | I  | J  | J  |
  104. | C  | D  | .  | E  | F  | G  | .  | H  |
  105.  
  106. Press the left button to activate an icon once.
  107. Press the right button to activate an icon several times
  108.  
  109. ==> These are the icons do...
  110. 1a - Drawing mode: plot with selected color
  111. 1b - Drawing mode: line
  112. 1c - Drawing mode: fill
  113. 2  - Left button : select color
  114.      Right button: soft color  (from previous selected color)
  115. 3a - Red  : Icons In Order: dec. red, current red, inc. red
  116. 3b - Green:
  117. 3c - Blue :
  118. 4a - Current color number
  119. 4b - Current color
  120. 4c - Get a color from the macro palette
  121. 5a - Select sprite start
  122. 5b - Select sprite end
  123. 5c - Set sprite animation speed & animation on/off
  124. 5c - Toggle sprite animation direction
  125. 6a - Swap sprites (sprite start & current sprite)
  126. 6b - Copy sprite start to current sprite
  127. 6c - Copy current sprite to sprite start
  128. 7a - Set start color
  129. 7b - Set end color
  130. 7c - Set color animation speed & animation on/off
  131. 7d - Toggle color animation direction
  132. 8a - Swap color (start color & end color)
  133. 8b - Copy end color to start color
  134. 8c - Copy start color to end color
  135. 9a - Current sprite: scroll left
  136. 9b -                 scroll right
  137. 9c -                 scroll up
  138. 9d -                 scroll down
  139. 9e -                 flip left & right
  140. 9f -                 flip up & down
  141. 9g -                 rotate 90'
  142. 9h -                 rotate 270'
  143. A  - Select current sprite
  144. B  - Clear current sprite
  145. C  - Load sprites
  146. D  - Save sprites (current sprite or sprite start to sprite end)
  147. E  - Copyright
  148. F  - Help
  149. G  - Test mode
  150. H  - Quit
  151. I  - Current sprite (same as big window)
  152. J  - Usually sprite start or animation
  153.