Modificados algunos recursos
This commit is contained in:
@@ -15,7 +15,7 @@ Repres un 14 de febrer de 2021
|
||||
#include <SDL2/SDL.h>
|
||||
#include <time.h>
|
||||
#include <stdio.h>
|
||||
#include "prog.h"
|
||||
#include "director.h"
|
||||
|
||||
int main(int argc, char *args[])
|
||||
{
|
||||
@@ -25,13 +25,13 @@ int main(int argc, char *args[])
|
||||
srand(time(nullptr));
|
||||
|
||||
// Crea el objeto director
|
||||
Prog *prog = new Prog(args[0]);
|
||||
Director *director = new Director(args[0]);
|
||||
|
||||
// Bucle principal
|
||||
prog->run();
|
||||
director->run();
|
||||
|
||||
// Libera todos los recursos y cierra SDL
|
||||
delete prog;
|
||||
delete director;
|
||||
printf("Shutting down the game...\n");
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user