working on text notifications

This commit is contained in:
2021-08-27 22:40:48 +02:00
parent aac11d05aa
commit 3f53ba333b
15 changed files with 263 additions and 320 deletions

View File

@@ -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;
}