39 lines
828 B
C
39 lines
828 B
C
#pragma once
|
|
|
|
#include <SDL2/SDL.h>
|
|
#include <SDL2/SDL_image.h>
|
|
#include <SDL2/SDL_mixer.h>
|
|
#include "ltexture.h"
|
|
|
|
#ifndef GLOBALS_H
|
|
#define GLOBALS_H
|
|
|
|
//La ventana donde dibujamos
|
|
SDL_Window *gWindow = NULL;
|
|
|
|
//El renderizador de la ventana
|
|
SDL_Renderer *gRenderer = NULL;
|
|
|
|
//Texturas con gráficos
|
|
LTexture gPlayerTexture;
|
|
LTexture gGameBackgroundTexture;
|
|
LTexture gTitleBackgroundTexture;
|
|
LTexture gWhiteFontTexture;
|
|
LTexture gBlackFontTexture;
|
|
LTexture gMenuTexture;
|
|
LTexture gBalloonTexture;
|
|
LTexture gBulletTexture;
|
|
LTexture gMiscTexture;
|
|
|
|
//Manejador para el mando 1
|
|
SDL_Joystick* gGameController = NULL;
|
|
|
|
//Objetos con la música del juego
|
|
Mix_Music *gTitleMusic = NULL;
|
|
Mix_Music *gPlayingMusic = NULL;
|
|
|
|
//Objetos con los efectos de sonido del juego
|
|
Mix_Chunk *gPopBalloonFX = NULL;
|
|
Mix_Chunk *gBulletFX = NULL;
|
|
|
|
#endif |