Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

constants.h

Go to the documentation of this file.
00001 #ifndef __CONSTANTS_H
00002 #define __CONSTANTS_H
00003 
00004 #include <string>
00005 using namespace std;
00006 
00007 #ifdef QWS
00008 #define IMAGES_PATH "/opt/QtPalmtop/pics/sfcave/data/"
00009 #define SOUND_PATH "/opt/QtPalmtop/sounds/sfcave/"
00010 #else
00011 #define IMAGES_PATH "./images/"
00012 #define SOUND_PATH "./sounds/"
00013 #endif
00014 
00015 // Width and height of app
00016 #define WIDTH   240
00017 #define HEIGHT  320
00018 
00019 //Number of map segments
00020 #define MAPSIZE 51
00021 
00022 // Maximum number of blocks visible on screen at any one time
00023 #define BLOCKSIZE 6
00024 
00025 // length of players trail
00026 #define TRAILSIZE 60
00027 
00028 // Game States
00029 #define STATE_QUIT                      -1
00030 #define STATE_PLAYING           0
00031 #define STATE_CRASHING          1
00032 #define STATE_CRASHED           2
00033 #define STATE_NEWGAME           3
00034 #define STATE_MENU                      4
00035 #define STATE_REPLAY            5
00036 #define STATE_HELP          6
00037 
00038 // Menu Options
00039 #define MENU_STARTGAME          1
00040 #define MENU_REPLAYS            2
00041 #define MENU_OPTIONS            3
00042 #define MENU_HELP                       4
00043 #define MENU_QUIT                       5
00044 #define MENU_PLAY_REPLAY        6
00045 #define MENU_LOAD_REPLAY        7
00046 #define MENU_SAVE_REPLAY        8
00047 #define MENU_BACK                       9
00048 #define MENU_GAME_TYPE          10
00049 #define MENU_DIFFICULTY         11
00050 #define MENU_CLEAR_SCORES       12
00051 #define MENU_GAME_SFCAVE        13
00052 #define MENU_GAME_GATES         14
00053 #define MENU_GAME_FLY           15
00054 #define MENU_DIFFICULTY_EASY    16
00055 #define MENU_DIFFICULTY_NORMAL  17
00056 #define MENU_DIFFICULTY_HARD    18
00057 #define MENU_DIFFICULTY_HARD    18
00058 #define MENU_DIFFICULTY_CUSTOM  19
00059 #define MENU_SOUNDS                             20
00060 #define MENU_SOUND_ON                   21
00061 #define MENU_SOUND_OFF                  22
00062 #define MENU_MUSIC_ON                   23
00063 #define MENU_MUSIC_OFF                  24
00064 #define MENU_CUSTOM_THRUST      25
00065 #define MENU_CUSTOM_GRAVITY     26
00066 #define MENU_CUSTOM_MAXSPEEDUP  27
00067 #define MENU_CUSTOM_MAXSPEEDDOWN    28
00068 #define MENU_CUSTOM_INCREASE    29
00069 #define MENU_CUSTOM_DECREASE    30
00070 #define MENU_CUSTOM_SAVE        31
00071 #define MENU_CUSTOM_CANCEL      32
00072 
00073 // Sounds
00074 #define SND_EXPLOSION           0
00075 #define SND_THRUST                      1
00076 #define INGAME_MUSIC            SOUND_PATH "ingame.mod"
00077 
00078 // Constants for player values
00079 #define PLAYER_THRUST           0
00080 #define PLAYER_GRAVITY          1  
00081 #define PLAYER_MAX_SPEED_UP     2
00082 #define PLAYER_MAX_SPEED_DOWN   3
00083 
00084 #endif

Generated on Sat Nov 5 16:17:24 2005 for OPIE by  doxygen 1.4.2