Migració de SDL_Mixer a JailAudio completa
This commit is contained in:
@@ -32,9 +32,9 @@ struct Tprogram
|
||||
struct Tgame
|
||||
{
|
||||
bool enabled;
|
||||
Mix_Chunk *sound_drop_enemy;
|
||||
Mix_Chunk *sound_drop_splat;
|
||||
Mix_Music *music;
|
||||
JA_Sound sound_drop_enemy;
|
||||
JA_Sound sound_drop_splat;
|
||||
JA_Music music;
|
||||
Uint8 zone; // Zona en la que estamos
|
||||
};
|
||||
|
||||
@@ -45,9 +45,9 @@ struct Tmenu
|
||||
int timer;
|
||||
LTexture *sprite_animation;
|
||||
LTexture *sprite;
|
||||
Mix_Chunk *sound_logo;
|
||||
Mix_Chunk *sound_start;
|
||||
Mix_Music *music;
|
||||
JA_Sound sound_logo;
|
||||
JA_Sound sound_start;
|
||||
JA_Music music;
|
||||
SDL_Rect dst_rect_animation;
|
||||
SDL_Rect dst_rect_fondo;
|
||||
SDL_Rect dst_rect_logo_zoom;
|
||||
@@ -80,9 +80,9 @@ struct Tplayer
|
||||
int speed_x; // Cantidad de pixeles a desplazarse
|
||||
int speed_y; // Cantidad de pixels a desplazarse
|
||||
LTexture *sprite; // Textura con los graficos del jugador
|
||||
Mix_Chunk *sound_coin; // Sonido al coger monedas
|
||||
Mix_Chunk *sound_death; // Sonido al morir
|
||||
Mix_Chunk *sound_jump; // Sonido al saltar
|
||||
JA_Sound sound_coin; // Sonido al coger monedas
|
||||
JA_Sound sound_death; // Sonido al morir
|
||||
JA_Sound sound_jump; // Sonido al saltar
|
||||
SDL_Rect dst_rect; // Rectangulo donde dibujar el sprite del jugador. Es la posición del jugador
|
||||
SDL_Rect src_rect; // Rectangulo con el dibujo del jugador a pintar
|
||||
Tanimation animation[8]; // Vector con las animaciones del jugador
|
||||
@@ -171,9 +171,9 @@ void ApplyGravity();
|
||||
void CheckPlayerCollisionWithActors();
|
||||
void CheckPlayerCollisionWithActors();
|
||||
void CheckPlayerCollisionWithMap();
|
||||
void CloseMusic(Mix_Music *music);
|
||||
void CloseMusic(JA_Music music);
|
||||
void ClosePicture(LTexture *picture);
|
||||
void CloseSound(Mix_Chunk *sound);
|
||||
void CloseSound(JA_Sound sound);
|
||||
void CreateActor(Tactor &a, Uint8 kind, Uint8 id, Sint16 dstx, Sint16 dsty, Sint16 dstw, Sint16 dsth, Sint16 srcx, Sint16 srcy, Sint16 sx, Sint16 sy, Sint16 timer, Sint16 frame, Uint8 direction, Uint8 parent);
|
||||
void DrawHud();
|
||||
void DrawMap();
|
||||
|
||||
Reference in New Issue
Block a user