Millorades les paletes verda i taronja
Retocada la paleta sweetie-16 Afegida política al fitxer CMakeLists.txt
This commit is contained in:
@@ -116,7 +116,10 @@ void Game::run()
|
||||
render();
|
||||
}
|
||||
|
||||
JA_StopMusic();
|
||||
if (mode_ == GameMode::GAME)
|
||||
{
|
||||
JA_StopMusic();
|
||||
}
|
||||
}
|
||||
|
||||
// Actualiza el juego, las variables, comprueba la entrada, etc.
|
||||
@@ -704,10 +707,10 @@ void Game::DEMO_checkRoomChange()
|
||||
void Game::keepMusicPlaying()
|
||||
{
|
||||
const std::string music_path = mode_ == GameMode::GAME ? "game.ogg" : "title.ogg";
|
||||
|
||||
|
||||
// Si la música no está sonando
|
||||
if (JA_GetMusicState() == JA_MUSIC_INVALID || JA_GetMusicState() == JA_MUSIC_STOPPED)
|
||||
{
|
||||
JA_PlayMusic(Resource::get()->getMusic(music_path));
|
||||
}
|
||||
if (JA_GetMusicState() == JA_MUSIC_INVALID || JA_GetMusicState() == JA_MUSIC_STOPPED)
|
||||
{
|
||||
JA_PlayMusic(Resource::get()->getMusic(music_path));
|
||||
}
|
||||
}
|
||||
@@ -212,6 +212,7 @@ void Logo::update()
|
||||
// Gestiona el color de las texturas
|
||||
updateTextureColors();
|
||||
|
||||
// Actualiza el objeto Screen
|
||||
Screen::get()->update();
|
||||
|
||||
// Comprueba si ha terminado el logo
|
||||
@@ -243,9 +244,6 @@ void Logo::render()
|
||||
// Bucle para el logo del juego
|
||||
void Logo::run()
|
||||
{
|
||||
// Detiene la música
|
||||
JA_StopMusic();
|
||||
|
||||
while (options.section.section == Section::LOGO)
|
||||
{
|
||||
update();
|
||||
|
||||
Reference in New Issue
Block a user