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 >
Wrap
Text File
|
1990-05-24
|
6KB
|
153 lines
SPRITE DESIGNER
Create sprites and animated characters for your arcade
games with Robert Warnestam's powerful utility
Boot up almost any arcade game and one thing hits you smack between the eyes -
the superbly animated sprite-like characters whizzing around the screen at
breakneck speed. True sprites are generated by special hardware inside
computers, but unfortunately the ST doesn't have any hardware support. However,
by using some clever 68000 machine code programming it's possible to simulate
sprites.
Writing a super-fast sprite handling subroutine from scratch is a complex
and time consuming task, and you probably want to get on with writing the game
rather than fiddling with sprite code trying to wring out the last once of
performance. All your sprite handling problems are now behind you because here
is a sprite editor that enables you to create your own designs and save them to
disk.
When you have finished you have a choice of several fast and flexible
sprite draiung routines that can be used to animate your creations. The source
code is provided along with executable programs that can be run from the
desktop. What more could you ask for?
* MAIN PROGRAM
SPR_DES.PRG Runable file (the sprite designer)
SPR_DES.BAS Source code in GFA BASIC
* SCREEN LAYOUT
SPR_DES1.A68 Assembler source in ASM68K
SPR_DES1.MC Compiled 'SPR_DES1.A68' (used in SPR_DES.PRG)
SPR_DES.PI1 DEGAS ELITE screen (used in SPR_DES.PRG)
* SPRITE EDITING
SPR_DES2.A68 Assembler source in ASM68K
SPR_DES2.MC Compiled 'SPR_DES2.A68' (used in SPR_DES.PRG)
* MACRO PALETTE
SPR_DES3.ASM Assembler source in MCC ASSEMBLER
SPR_DES3.MC Compiled 'SPR_DES3.ASM' (used in SPR_DES.PRG)
* DEMONSTRATION PROGRAM
DEMOSPR.PRG Runable file (this is DEMOSPR.PRG)
DEMOSPR.BAS Source code in GFA BASIC
* SPRITE ROUTINES (for use in your own programs)
SPRITE.ASM Assembler source in MCC ASSEMBLER
SPRITE.MC Compiled 'SPRITE.ASM' (used in DEMOSPR.PRG)
* VARIOUS SPRITES
CHERRY.SPR Sprites created with SPR_DES (used in DEMO.SPR)
PACMAN3.SPR Sprites created with SPR_DES (used in DEMO.SPR)
ROBOT1.SPR Sprites created with SPR_DES (used in DEMO.SPR)
SHIP1.SPR Sprites created with SPR_DES (used in DEMO.SPR)
STARS1.SPR Sprites created with SPR_DES (used in DEMO.SPR)
SPRITE.SPR Sprites created with SPR_DES (used in DEMO.SPR)
******************************************************************************
How the sprites are stored on the disk...
Byte From Byte To Length What
--------- --------- ---------- ---------
0 31 32 Color header
32 33 2 Start sprite (0-15)
34 35 2 End sprite (0-15)
36 547 512 Sprite image
. . . Another sprite image
. . . .
. . . .
******************************************************************************
Sprite Image...
Word 1: Sprite Line 0, Color Plane 0, Pixel 0-15
2 0 1 0-15
3 0 2 0-15
4 0 3 0-15
5 0 0 16-31
6 0 1 16-31
7 0 2 16-31
8 0 3 16-31
9 1 0 0-15
255 31 3 16-31
******************************************************************************
Sprite Designer Controls
==>These are the icons on the right side of the sprite designer screen...
| 1a | 2 | 2 | 2 | 2 | 3a | 3a | 3a |
| 1b | 2 | 2 | 2 | 2 | 3b | 3b | 3b |
| 1c | 2 | 2 | 2 | 2 | 3c | 3c | 3c |
| . | 2 | 2 | 2 | 2 | 4a | 4b | 4c |
| 5a | 5a | 5a | 5a | 7a | 7a | 7a | 7a |
| 5b | 5b | 5b | 5b | 7b | 7b | 7b | 7b |
| 5c | 5c | 5c | 5c | 7c | 7c | 7c | 7c |
| 5d | 6a | 6b | 6c | 7d | 8a | 8b | 8c |
| 9a | 9b | 9c | 9d | 9e | 9f | 9g | 9h |
| A | A | A | A | I | I | J | J |
| B | . | . | . | I | I | J | J |
| C | D | . | E | F | G | . | H |
Press the left button to activate an icon once.
Press the right button to activate an icon several times
==> These are the icons do...
1a - Drawing mode: plot with selected color
1b - Drawing mode: line
1c - Drawing mode: fill
2 - Left button : select color
Right button: soft color (from previous selected color)
3a - Red : Icons In Order: dec. red, current red, inc. red
3b - Green:
3c - Blue :
4a - Current color number
4b - Current color
4c - Get a color from the macro palette
5a - Select sprite start
5b - Select sprite end
5c - Set sprite animation speed & animation on/off
5c - Toggle sprite animation direction
6a - Swap sprites (sprite start & current sprite)
6b - Copy sprite start to current sprite
6c - Copy current sprite to sprite start
7a - Set start color
7b - Set end color
7c - Set color animation speed & animation on/off
7d - Toggle color animation direction
8a - Swap color (start color & end color)
8b - Copy end color to start color
8c - Copy start color to end color
9a - Current sprite: scroll left
9b - scroll right
9c - scroll up
9d - scroll down
9e - flip left & right
9f - flip up & down
9g - rotate 90'
9h - rotate 270'
A - Select current sprite
B - Clear current sprite
C - Load sprites
D - Save sprites (current sprite or sprite start to sprite end)
E - Copyright
F - Help
G - Test mode
H - Quit
I - Current sprite (same as big window)
J - Usually sprite start or animation