The NEW Pong Game V13.2.1
An interesting implemnettaion of the pong game
Loading...
Searching...
No Matches
macros.hpp File Reference

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}
 

Detailed Description

Defines macros and constants used throughout the project.

Authors
Yanis Sadoun, Vasileios Filippos Skarleas, Dounia Bakalem

Macro Definition Documentation

◆ AI_MODE

#define AI_MODE   1

Game mode constants.

AI player mode (single player)

◆ AI_MODE_EASY

#define AI_MODE_EASY   0

AI difficulty level constants.

Easy AI difficulty (slower)

◆ AI_MODE_HARD

#define AI_MODE_HARD   2

Hard AI difficulty (faster)

◆ AI_MODE_NORMAL

#define AI_MODE_NORMAL   1

Normal AI difficulty

◆ AI_MODE_SELECTION

#define AI_MODE_SELECTION   1

AI difficulty selection menu

◆ BALL_TYPE_SELECTION

#define BALL_TYPE_SELECTION   2

Menu type constants.

Ball type selection menu

◆ FUN_MODE

#define FUN_MODE   4

Fun mode with special features

◆ GAME_NAME

#define GAME_NAME   "The NEW Pong"

Game name constant.

◆ GAME_SAVED

#define GAME_SAVED   5

Game saved state flag

◆ STORYTIME_MODE

#define STORYTIME_MODE   3

Story mode with words to collect

◆ TWO_PLAYERS_MODE

#define TWO_PLAYERS_MODE   2

Two human players mode

Variable Documentation

◆ black

const SDL_Color black = {0, 0, 0, 255}

Black color

◆ blue

const SDL_Color blue = {0, 0, 255, 255}

Blue color

◆ green

const SDL_Color green = {34, 139, 34, 255}

Green color

◆ orange

const SDL_Color orange = {255, 165, 0, 255}

Orange color

◆ purple

const SDL_Color purple = {128, 0, 128, 255}

Purple color

◆ red

const SDL_Color red = {220, 20, 60, 255}

Red color

◆ white

const SDL_Color white = {255, 255, 255, 255}

Color constants.

White color

◆ WINDOW_HEIGHT

const int WINDOW_HEIGHT = 600

Window height in pixels

◆ WINDOW_WIDTH

const int WINDOW_WIDTH = 800

Window dimensions constants.

Window width in pixels

◆ yellow

const SDL_Color yellow = {255, 255, 0, 255}

Yellow color