(cambio de ordenador)
This commit is contained in:
23
main.cpp
23
main.cpp
@@ -26,20 +26,26 @@ int gradColorMin = 64; // Minimo color más alto del degradado
|
|||||||
int gradColorMax = 192; // Minimo color más alto del degradado
|
int gradColorMax = 192; // Minimo color más alto del degradado
|
||||||
int gradCurrentColor = 192; // Color actual más alto del degradado
|
int gradCurrentColor = 192; // Color actual más alto del degradado
|
||||||
int gradBreathDirection = 0; // Indica si gradCurrentColor crece o decrece
|
int gradBreathDirection = 0; // Indica si gradCurrentColor crece o decrece
|
||||||
|
struct options_t *options;
|
||||||
|
Asset *asset;
|
||||||
|
SDL_Window *window;
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
|
||||||
{
|
|
||||||
// Inicializa las opciones
|
// Inicializa las opciones
|
||||||
struct options_t *options = new options_t;
|
void initOptions()
|
||||||
|
{
|
||||||
|
options = new options_t;
|
||||||
initOptions(options);
|
initOptions(options);
|
||||||
options->screen.nativeWidth = 320;
|
options->screen.nativeWidth = 320;
|
||||||
options->screen.nativeHeight = 240;
|
options->screen.nativeHeight = 240;
|
||||||
options->screen.nativeZoom = 2;
|
options->screen.nativeZoom = 2;
|
||||||
options->screen.windowZoom = 1;
|
options->screen.windowZoom = 1;
|
||||||
options->console = true;
|
options->console = true;
|
||||||
|
}
|
||||||
|
|
||||||
// Inicializa la lista de recursos
|
// Inicializa la lista de recursos
|
||||||
Asset *asset = new Asset(argv[0]);
|
void initAsset()
|
||||||
|
{
|
||||||
|
asset = new Asset(argv[0]);
|
||||||
asset->add("/data/music.ogg", t_music);
|
asset->add("/data/music.ogg", t_music);
|
||||||
asset->add("/data/sound.wav", t_sound);
|
asset->add("/data/sound.wav", t_sound);
|
||||||
asset->add("/data/smb2.txt", t_font);
|
asset->add("/data/smb2.txt", t_font);
|
||||||
@@ -55,6 +61,15 @@ int main(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
int main(int argc, char *argv[])
|
||||||
|
{
|
||||||
|
// Inicializa las opciones
|
||||||
|
initOptions();
|
||||||
|
|
||||||
|
// Inicializa la lista de recursos
|
||||||
|
initAsset();
|
||||||
|
|
||||||
// Inicializa SDL y la ventana
|
// Inicializa SDL y la ventana
|
||||||
SDL_Init(SDL_INIT_EVERYTHING);
|
SDL_Init(SDL_INIT_EVERYTHING);
|
||||||
|
|||||||
Reference in New Issue
Block a user