casse-brick
Loading...
Searching...
No Matches
Macros | Functions
main.cpp File Reference
#include <SDL2/SDL.h>
#include <SDL_image.h>
#include <SDL2/SDL_timer.h>
#include "WALL.h"
#include "platform.h"
#include "hexagon.h"
#include "grille.h"
#include "triangle.h"
#include "CollisionManager.h"
#include "Ball.h"
#include <iostream>
#include <memory>

Go to the source code of this file.

Macros

#define WIDTH   800
 
#define HEIGHT   600
 
#define DELAY   3000
 

Functions

int main (int argc, char **argv)
 The main function of the game.
 

Macro Definition Documentation

◆ DELAY

#define DELAY   3000

Definition at line 19 of file main.cpp.

◆ HEIGHT

#define HEIGHT   600

Definition at line 18 of file main.cpp.

◆ WIDTH

#define WIDTH   800

Definition at line 17 of file main.cpp.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

The main function of the game.

This function initializes SDL, sets up the game window and renderer, creates game objects, handles user input, and runs the game loop until the user quits.

Parameters
argcThe number of command-line arguments.
argvAn array of command-line arguments.
Returns
An integer representing the exit status of the program.

Definition at line 31 of file main.cpp.