#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.
|
| int | main (int argc, char **argv) |
| | The main function of the game.
|
| |
◆ DELAY
◆ HEIGHT
◆ WIDTH
◆ 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
-
| argc | The number of command-line arguments. |
| argv | An array of command-line arguments. |
- Returns
- An integer representing the exit status of the program.
Definition at line 31 of file main.cpp.