Files
volcano_2022/source/main.cpp

39 lines
713 B
C++

/*
Volcano (abans "Rise of the Bal1")
Programat i dissenyat per
Sergio Valor @JailDesigner
Editor, música i suport técnic per
Raimon Zamora @JailDoc
Gràfics per
Diego Valor @JailBrother
Començat un 19 de febrer de 2016
Repres un 14 de febrer de 2021
*/
#include "ifdefs.h"
#include <time.h>
#include <stdio.h>
#include <string>
#include "const.h"
#include "director.h"
int main(int argc, char *args[])
{
// Inicia el generador de numeros aleatorios
srand(time(nullptr));
// Crea el objeto director
Director *director = new Director(args[0]);
// Bucle principal
director->run();
// Libera todos los recursos y cierra SDL
delete director;
printf("Shutting down the game...\n");
return 0;
}