Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
#include "SDL.h"
#include <iostream>
#include "GameH.h"
Game *game = nullptr;
int main(int argc, char *argv[])
{
//// create the game ////
game = new Game;
//// start the game ////
game->init("GameALL", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 800, 640, false);
while (game->running())
{
game->handleEvents();
game->update();
game->render();
}
//// clean the game ////
game->clean();
return 0;
}