author | andyq <andyq> | 2003-01-21 20:37:00 (UTC) |
---|---|---|
committer | andyq <andyq> | 2003-01-21 20:37:00 (UTC) |
commit | 0a6563fcc2f49857c581d9def24407a3a4ef526c (patch) (unidiff) | |
tree | f1b82a4bd7582ef2cb722cffb87eecff1e1f96e6 /noncore/games/sfcave-sdl/constants.h | |
parent | 50b5915b48fc5cbacf23e4d2b75d7a266f141a4a (diff) | |
download | opie-0a6563fcc2f49857c581d9def24407a3a4ef526c.zip opie-0a6563fcc2f49857c581d9def24407a3a4ef526c.tar.gz opie-0a6563fcc2f49857c581d9def24407a3a4ef526c.tar.bz2 |
Clean up of code - fixed memory leaks (most of them) and added new custom config menu
Diffstat (limited to 'noncore/games/sfcave-sdl/constants.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/games/sfcave-sdl/constants.h | 29 |
1 files changed, 23 insertions, 6 deletions
diff --git a/noncore/games/sfcave-sdl/constants.h b/noncore/games/sfcave-sdl/constants.h index 8fadae4..f10764e 100644 --- a/noncore/games/sfcave-sdl/constants.h +++ b/noncore/games/sfcave-sdl/constants.h | |||
@@ -1,30 +1,29 @@ | |||
1 | #ifndef __CONSTANTS_H | 1 | #ifndef __CONSTANTS_H |
2 | #define __CONSTANTS_H | 2 | #define __CONSTANTS_H |
3 | 3 | ||
4 | #include <string> | 4 | #include <string> |
5 | using namespace std; | 5 | using namespace std; |
6 | #define QString string | ||
7 | 6 | ||
8 | #ifdef QWS | 7 | #ifdef QWS |
9 | #define IMAGES_PATH "/opt/QtPalmtop/pics/sfcave/data/" | 8 | #define IMAGES_PATH "/opt/QtPalmtop/pics/sfcave/data/" |
10 | #define SOUND_PATH "/opt/QtPalmtop/sounds/sfcave/" | 9 | #define SOUND_PATH "/opt/QtPalmtop/sounds/sfcave/" |
11 | #else | 10 | #else |
12 | #define IMAGES_PATH "./images/" | 11 | #define IMAGES_PATH "./images/" |
13 | #define SOUND_PATH "./sounds/" | 12 | #define SOUND_PATH "./sounds/" |
14 | #endif | 13 | #endif |
15 | 14 | ||
16 | // Width and height of app | 15 | // Width and height of app |
17 | #define WIDTH240 | 16 | #define WIDTH240 |
18 | #define HEIGHT320 | 17 | #define HEIGHT320 |
19 | 18 | ||
20 | //Number of map segments | 19 | //Number of map segments |
21 | #define MAPSIZE 51 | 20 | #define MAPSIZE 51 |
22 | 21 | ||
23 | // Maximum number of blocks visible on screen at any one time | 22 | // Maximum number of blocks visible on screen at any one time |
24 | #define BLOCKSIZE 6 | 23 | #define BLOCKSIZE 6 |
25 | 24 | ||
26 | // length of players trail | 25 | // length of players trail |
27 | #define TRAILSIZE 60 | 26 | #define TRAILSIZE 60 |
28 | 27 | ||
29 | // Game States | 28 | // Game States |
30 | #define STATE_QUIT -1 | 29 | #define STATE_QUIT -1 |
@@ -34,34 +33,52 @@ using namespace std; | |||
34 | #define STATE_NEWGAME 3 | 33 | #define STATE_NEWGAME 3 |
35 | #define STATE_MENU 4 | 34 | #define STATE_MENU 4 |
36 | #define STATE_REPLAY 5 | 35 | #define STATE_REPLAY 5 |
37 | #define STATE_HELP 6 | 36 | #define STATE_HELP 6 |
38 | 37 | ||
39 | // Menu Options | 38 | // Menu Options |
40 | #define MENU_STARTGAME 1 | 39 | #define MENU_STARTGAME 1 |
41 | #define MENU_REPLAYS 2 | 40 | #define MENU_REPLAYS 2 |
42 | #define MENU_OPTIONS 3 | 41 | #define MENU_OPTIONS 3 |
43 | #define MENU_HELP 4 | 42 | #define MENU_HELP 4 |
44 | #define MENU_QUIT 5 | 43 | #define MENU_QUIT 5 |
45 | #define MENU_PLAY_REPLAY 6 | 44 | #define MENU_PLAY_REPLAY 6 |
46 | #define MENU_LOAD_REPLAY 7 | 45 | #define MENU_LOAD_REPLAY 7 |
47 | #define MENU_SAVE_REPLAY 8 | 46 | #define MENU_SAVE_REPLAY 8 |
48 | #define MENU_BACK 9 | 47 | #define MENU_BACK 9 |
49 | #define MENU_GAME_TYPE 10 | 48 | #define MENU_GAME_TYPE 10 |
50 | #define MENU_DIFFICULTY 11 | 49 | #define MENU_DIFFICULTY 11 |
51 | #define MENU_CLEAR_SCORES 12 | 50 | #define MENU_CLEAR_SCORES 12 |
52 | #define MENU_GAME_SFCAVE13 | 51 | #define MENU_GAME_SFCAVE13 |
53 | #define MENU_GAME_GATES 14 | 52 | #define MENU_GAME_GATES 14 |
54 | #define MENU_GAME_FLY 15 | 53 | #define MENU_GAME_FLY 15 |
55 | #define MENU_DIFFICULTY_EASY16 | 54 | #define MENU_DIFFICULTY_EASY16 |
56 | #define MENU_DIFFICULTY_NORMAL17 | 55 | #define MENU_DIFFICULTY_NORMAL17 |
57 | #define MENU_DIFFICULTY_HARD18 | 56 | #define MENU_DIFFICULTY_HARD18 |
58 | #define MENU_SOUNDS 19 | 57 | #define MENU_DIFFICULTY_HARD18 |
59 | #define MENU_SOUND_ON 20 | 58 | #define MENU_DIFFICULTY_CUSTOM19 |
60 | #define MENU_SOUND_OFF 21 | 59 | #define MENU_SOUNDS 20 |
61 | #define MENU_MUSIC_ON 22 | 60 | #define MENU_SOUND_ON 21 |
62 | #define MENU_MUSIC_OFF 23 | 61 | #define MENU_SOUND_OFF 22 |
62 | #define MENU_MUSIC_ON 23 | ||
63 | #define MENU_MUSIC_OFF 24 | ||
64 | #define MENU_CUSTOM_THRUST 25 | ||
65 | #define MENU_CUSTOM_GRAVITY 26 | ||
66 | #define MENU_CUSTOM_MAXSPEEDUP 27 | ||
67 | #define MENU_CUSTOM_MAXSPEEDDOWN 28 | ||
68 | #define MENU_CUSTOM_INCREASE 29 | ||
69 | #define MENU_CUSTOM_DECREASE 30 | ||
70 | #define MENU_CUSTOM_SAVE 31 | ||
71 | #define MENU_CUSTOM_CANCEL 32 | ||
63 | 72 | ||
64 | // Sounds | 73 | // Sounds |
65 | #define SND_EXPLOSION 0 | 74 | #define SND_EXPLOSION 0 |
66 | #define SND_THRUST 1 | 75 | #define SND_THRUST 1 |
76 | #define INGAME_MUSIC SOUND_PATH "ingame.mod" | ||
77 | |||
78 | // Constants for player values | ||
79 | #define PLAYER_THRUST 0 | ||
80 | #define PLAYER_GRAVITY 1 | ||
81 | #define PLAYER_MAX_SPEED_UP 2 | ||
82 | #define PLAYER_MAX_SPEED_DOWN 3 | ||
83 | |||
67 | #endif | 84 | #endif |