Yet another huge code merge representing the current status of my rewrite. It include...
[supertux.git] / src / defines.h
1 /*
2   defines.h
3   
4   Super Tux
5   
6   by Bill Kendrick
7   bill@newbreedsoftware.com
8   http://www.newbreedsoftware.com/supertux/
9  
10   April 11, 2000 - February 1, 2004
11 */
12
13
14 #if !defined( SUPERTUX_DEFINES_H )
15
16 #define SUPERTUX_DEFINES_H
17 /* Version: */
18
19 #define VERSION "0.0.5-0.0.6-CVS"
20
21 /* Frames per second: */
22
23 #define FPS (1000 / 25)
24
25
26 /* Joystick buttons and axes: */
27
28 #define JOY_A 0
29 #define JOY_B 1
30
31 #define JOY_X 0
32 #define JOY_Y 1
33
34
35 /* Booleans: */
36
37 #define NO 0
38 #define YES 1
39
40 /* Direction (keyboard/joystick) states: */
41
42 #define UP 0
43 #define DOWN 1
44
45 /* Dying types: */
46
47 /* ---- NO 0 */
48 #define SQUISHED 1
49 #define FALLING 2
50
51 /* Hurt modes: */
52
53 #define KILL 0
54 #define SHRINK 1
55
56 /* Directions: */
57
58 #define LEFT 0
59 #define RIGHT 1
60
61 /* Sizes: */
62
63 #define SMALL 0
64 #define BIG 1
65
66 /* Speed constraints: */
67
68 #define MAX_WALK_XM 2.3
69 #define MAX_RUN_XM 3.2
70 #define MAX_YM 20.0
71 #define MAX_JUMP_TIME 375
72 #define MAX_LIVES 4.0
73
74 #define WALK_SPEED 1.0
75 #define RUN_SPEED 1.5
76 #define JUMP_SPEED 1.2
77
78 #define GRAVITY 1.0
79 #define YM_FOR_JUMP 6.0
80 #define KILL_BOUNCE_YM 8.0
81
82 #define SKID_XM 2.0
83 #define SKID_TIME 200
84
85 /* Size constraints: */
86
87 #define OFFSCREEN_DISTANCE 256
88
89 #define LEVEL_WIDTH 375
90
91
92 /* Debugging */
93
94 #ifdef DEBUG
95         #define DEBUG_MSG( msg ) { \
96         printf( msg ); printf("\n"); \
97         }
98         #else
99        #define DEBUG_MSG( msg ) {}
100 #endif
101
102 #endif
103