working on text notifications
This commit is contained in:
@@ -41,20 +41,20 @@ un tipo asociado diferente a NO_KIND
|
||||
int main(int argc, char *args[])
|
||||
{
|
||||
// Inicia el generador de numeros aleatorios
|
||||
//srand(time(nullptr));
|
||||
std::srand(static_cast<unsigned int>(SDL_GetTicks()));
|
||||
|
||||
// Crea el objeto mDirector
|
||||
Director *mDirector = new Director(args[0]);
|
||||
printf("Starting the game...\n\n");
|
||||
|
||||
// Crea el objeto Director
|
||||
Director *mDirector = new Director(args[0]);
|
||||
|
||||
// Bucle principal
|
||||
mDirector->run();
|
||||
|
||||
// Libera todos los recursos y cierra SDL
|
||||
// Destruye el objeto Director
|
||||
delete mDirector;
|
||||
mDirector = nullptr;
|
||||
printf("Shutting down the game...\n");
|
||||
printf("\nShutting down the game...\n");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user