![]() |
The NEW Pong Game V13.2.1
An interesting implemnettaion of the pong game
|
Defines macros and constants used throughout the project. More...
#include <string>
Go to the source code of this file.
Macros | |
#define | AI_MODE 1 |
Game mode constants. | |
#define | AI_MODE_EASY 0 |
AI difficulty level constants. | |
#define | AI_MODE_HARD 2 |
#define | AI_MODE_NORMAL 1 |
#define | AI_MODE_SELECTION 1 |
#define | BALL_TYPE_SELECTION 2 |
Menu type constants. | |
#define | FUN_MODE 4 |
#define | GAME_NAME "The NEW Pong" |
Game name constant. | |
#define | GAME_SAVED 5 |
#define | STORYTIME_MODE 3 |
#define | TWO_PLAYERS_MODE 2 |
Variables | |
const SDL_Color | black = {0, 0, 0, 255} |
const SDL_Color | blue = {0, 0, 255, 255} |
const SDL_Color | green = {34, 139, 34, 255} |
const SDL_Color | orange = {255, 165, 0, 255} |
const SDL_Color | purple = {128, 0, 128, 255} |
const SDL_Color | red = {220, 20, 60, 255} |
const SDL_Color | white = {255, 255, 255, 255} |
Color constants. | |
const int | WINDOW_HEIGHT = 600 |
const int | WINDOW_WIDTH = 800 |
Window dimensions constants. | |
const SDL_Color | yellow = {255, 255, 0, 255} |
Defines macros and constants used throughout the project.
#define AI_MODE_HARD 2 |
Hard AI difficulty (faster)
#define AI_MODE_NORMAL 1 |
Normal AI difficulty
#define AI_MODE_SELECTION 1 |
AI difficulty selection menu
#define BALL_TYPE_SELECTION 2 |
Menu type constants.
Ball type selection menu
#define FUN_MODE 4 |
Fun mode with special features
#define GAME_NAME "The NEW Pong" |
Game name constant.
#define GAME_SAVED 5 |
Game saved state flag
#define STORYTIME_MODE 3 |
Story mode with words to collect
#define TWO_PLAYERS_MODE 2 |
Two human players mode
const SDL_Color black = {0, 0, 0, 255} |
Black color
const SDL_Color blue = {0, 0, 255, 255} |
Blue color
const SDL_Color green = {34, 139, 34, 255} |
Green color
const SDL_Color orange = {255, 165, 0, 255} |
Orange color
const SDL_Color purple = {128, 0, 128, 255} |
Purple color
const SDL_Color red = {220, 20, 60, 255} |
Red color
const SDL_Color white = {255, 255, 255, 255} |
Color constants.
White color
const int WINDOW_HEIGHT = 600 |
Window height in pixels
const int WINDOW_WIDTH = 800 |
Window dimensions constants.
Window width in pixels
const SDL_Color yellow = {255, 255, 0, 255} |
Yellow color