añadidos nuevos ficheros de clases
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
|
||||
#include "volcano.h"
|
||||
|
||||
void allocatePointers()
|
||||
/*void allocatePointers()
|
||||
{
|
||||
// Textures
|
||||
hud.sprite = new LTexture();
|
||||
@@ -20,13 +20,13 @@ void allocatePointers()
|
||||
prog.sprite = new LTexture();
|
||||
|
||||
// Sounds
|
||||
game.sound_drop_enemy = new Mix_Chunk();
|
||||
game.sound_drop_splat = new Mix_Chunk();
|
||||
menu.sound_logo = new Mix_Chunk();
|
||||
menu.sound_start = new Mix_Chunk();
|
||||
player.sound_coin = new Mix_Chunk();
|
||||
player.sound_death = new Mix_Chunk();
|
||||
player.sound_jump = new Mix_Chunk();
|
||||
game.sound_drop_enemy = new JA_Sound();
|
||||
game.sound_drop_splat = new JA_Sound();
|
||||
menu.sound_logo = new JA_Sound();
|
||||
menu.sound_start = new JA_Sound();
|
||||
player.sound_coin = new JA_Sound();
|
||||
player.sound_death = new JA_Sound();
|
||||
player.sound_jump = new JA_Sound();
|
||||
|
||||
// Music
|
||||
//game.music = new Mix_Music();
|
||||
@@ -74,18 +74,14 @@ bool loadTextureFromFile(LTexture *texture, std::string path, SDL_Renderer *rend
|
||||
return success;
|
||||
}
|
||||
|
||||
void CloseSound(Mix_Chunk *sound)
|
||||
void CloseSound(JA_Sound *sound)
|
||||
{
|
||||
if (sound != nullptr)
|
||||
Mix_FreeChunk(sound);
|
||||
sound = nullptr;
|
||||
|
||||
}
|
||||
|
||||
void CloseMusic(Mix_Music *music)
|
||||
{
|
||||
if (music != nullptr)
|
||||
Mix_FreeMusic(music);
|
||||
music = nullptr;
|
||||
|
||||
}
|
||||
|
||||
void ClosePicture(LTexture *picture)
|
||||
@@ -2321,3 +2317,4 @@ deletePointers();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
*/
|
||||
Reference in New Issue
Block a user