summaryrefslogtreecommitdiff
path: root/noncore/games/sfcave-sdl/constants.h
Unidiff
Diffstat (limited to 'noncore/games/sfcave-sdl/constants.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/games/sfcave-sdl/constants.h67
1 files changed, 67 insertions, 0 deletions
diff --git a/noncore/games/sfcave-sdl/constants.h b/noncore/games/sfcave-sdl/constants.h
new file mode 100644
index 0000000..8fadae4
--- a/dev/null
+++ b/noncore/games/sfcave-sdl/constants.h
@@ -0,0 +1,67 @@
1#ifndef __CONSTANTS_H
2#define __CONSTANTS_H
3
4#include <string>
5using namespace std;
6#define QString string
7
8#ifdef QWS
9#define IMAGES_PATH "/opt/QtPalmtop/pics/sfcave/data/"
10#define SOUND_PATH "/opt/QtPalmtop/sounds/sfcave/"
11#else
12#define IMAGES_PATH "./images/"
13#define SOUND_PATH "./sounds/"
14#endif
15
16// Width and height of app
17 #define WIDTH240
18 #define HEIGHT320
19
20//Number of map segments
21#define MAPSIZE 51
22
23// Maximum number of blocks visible on screen at any one time
24#define BLOCKSIZE 6
25
26// length of players trail
27#define TRAILSIZE 60
28
29// Game States
30 #define STATE_QUIT -1
31 #define STATE_PLAYING 0
32 #define STATE_CRASHING 1
33 #define STATE_CRASHED 2
34 #define STATE_NEWGAME 3
35 #define STATE_MENU 4
36 #define STATE_REPLAY 5
37#define STATE_HELP 6
38
39// Menu Options
40 #define MENU_STARTGAME 1
41 #define MENU_REPLAYS 2
42 #define MENU_OPTIONS 3
43 #define MENU_HELP 4
44 #define MENU_QUIT 5
45 #define MENU_PLAY_REPLAY 6
46 #define MENU_LOAD_REPLAY 7
47 #define MENU_SAVE_REPLAY 8
48 #define MENU_BACK 9
49 #define MENU_GAME_TYPE 10
50 #define MENU_DIFFICULTY 11
51 #define MENU_CLEAR_SCORES 12
52 #define MENU_GAME_SFCAVE13
53 #define MENU_GAME_GATES 14
54 #define MENU_GAME_FLY 15
55 #define MENU_DIFFICULTY_EASY16
56 #define MENU_DIFFICULTY_NORMAL17
57 #define MENU_DIFFICULTY_HARD18
58 #define MENU_SOUNDS 19
59 #define MENU_SOUND_ON 20
60 #define MENU_SOUND_OFF 21
61 #define MENU_MUSIC_ON 22
62 #define MENU_MUSIC_OFF 23
63
64// Sounds
65 #define SND_EXPLOSION 0
66 #define SND_THRUST 1
67#endif