home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
412.lha
/
crabs
/
crabs.h
< prev
next >
Wrap
C/C++ Source or Header
|
1990-08-29
|
2KB
|
36 lines
/* The Crabs header file */
#define STARTCRABS 1 /* default start number of crabs */
#define MAXCRABS 40 /* max number of crabs */
#define SIZE 12 /* X size of the bitmaps,half for Y */
#define ONEIMAGE /* movement style */
#define MAXVEL 8 /* abs. bound on velocity component */
#define FEEDVEL 2 /* velocity change after a feed */
#define DELAY 3 /* sleep time bettween cycles */
#define PLACELIM 50 /* times to try to find a blank spot */
#define FEEDlp 12 /* number of life points in one feed */
#define BITElp 30 /* damage from being eaten */
#define MOVElp 1 /* life points for a move */
#define BOUNCElp 0 /* hiting the screen edge hurts */
#define REPROlp 400 /* life points to reproduce at */
/* movement style */
#ifdef SIDEWAYS
# define PICKMAP(v) ( abs((v).x) > abs((v).y * 2 ) ? \
( (v).y > 0 ? &RPdown : &RPup ) : \
( (v).x > 0 ? &RPright : &RPleft ) )
#endif
#ifdef FORWARD
# define PICKMAP(v) ( abs((v).x) > abs((v).y * 2 ) ? \
( (v).x > 0 ? &RPright : &RPleft ) : \
( (v).y > 0 ? &RPdown : &RPup ) )
#endif
#ifdef ONEIMAGE /* only the crabup.i image is used */
# define PICKMAP(v) ( &RPup )
#endif