- Main Page
- Classes
- Files

- File List
- File Members

# C:/Users/Public/AGS Final Folder/BFLETCHER D4010283/Source/Game/Source/GameConfig.h

Go to the documentation of this file.

    00001 //GameConfig.h is a file for all configuration options for the game, this would typically be done by loading configuration options from file,
    00002 //but due to the goal of this game to be one single executable this is the best way of adding configurable elements without adding huge amounts
    00003 //of global data.
    00004 #ifndef _GAMECONFIG_H_
    00005 #define _GAMECONFIG_H_
    00006
    00007 #include "Colour.h"
    00008
    00009
    00010 //Visualisation properties
    00011 #define SCREEN_WIDTH 320
    00012 #define SCREEN_HEIGHT 240
    00013 #define SCREEN_DEPTH 16
    00014
    00015 //Engine properties
    00016 #define GAME_TICK_RATE 30
    00017
    00018 //Splash screen properties
    00019 #define SPLASH_SCREEN_TIME 3000
    00020
    00021 //Text properties
    00022 #define CHARACTER_WIDTH 8
    00023 #define CHARACTER_HEIGHT 8
    00024
    00025 //Level properties
    00026 #define LEVEL_LEAD_IN_TIME 1500
    00027
    00028 //Player properties
    00029 #define PLAYER_START_LIVES 5
    00030
    00031 //Game properties
    00032 #define GAME_TITLE "B r e a k  D o w n !"
    00033 #define GAME_TITLE_COLOUR ColourRGB(255,255,255)
    00034 #define GAME_TITLE_SHADOW_COLOUR ColourRGB(128,128,128)
    00035 #define GAME_OVER_TEXT "G A M E    O V E R"
    00036 #define GAME_POINTS_PER_HIT 10
    00037
    00038 //Breakout box dimensions
    00039 #define BOX_AREA_POS_X 10
    00040 #define BOX_AREA_POS_Y 10
    00041 #define BOX_AREA_WIDTH 300
    00042 #define BOX_AREA_HEIGHT 180
    00043
    00044 #define BOX_LOCATION_PADDING 1
    00045
    00046 #define BOX_MIN_TIME_BETWEEN_HITS 100
    00047
    00048 #define SMALL_BOX_WIDTH 12
    00049 #define SMALL_BOX_HEIGHT 5
    00050 #define MEDIUM_BOX_WIDTH 28
    00051 #define MEDIUM_BOX_HEIGHT 13
    00052 #define LARGE_BOX_WIDTH 50
    00053 #define LARGE_BOX_HEIGHT 20
    00054
    00055 #define WALL_BORDER_SIZE 5
    00056
    00057 #define NUM_BOX_COLOURS 7
    00058
    00059 //Paddle properties
    00060 #define PADDLE_SPEED 10
    00061 #define PADDLE_SPIN_PRECISION 8
    00062
    00063 //Ball properties
    00064 #define BALL_START_SPEED_X 2
    00065 #define BALL_START_SPEED_Y 5
    00066 #define BALL_MAX_SPEED_X 10
    00067 #define BALL_MAX_SPEED_Y 10
    00068
    00069 //Menu properties
    00070 #define MENU_NORMAL_COLOUR ColourRGB(0,0,255)
    00071 #define MENU_SELECTED_COLOUR ColourRGB(255,0,0)
    00072
    00073 #define MENU_START_GAME_TEXT "Start Game"
    00074 #define MENU_QUIT_GAME_TEXT "End Game"
    00075 #define MENU_PLAY_AGAIN_GAME_TEXT "Play Again"
    00076
    00077 //Sound properties
    00078 #define SOUND_VOLUME_STEP 10
    00079 #define SOUND_MAX_VOLUME 100
    00080
    00081 #endif