forked from jaildesigner-jailgames/jaildoctors_dilemma
Implementado cambio de paleta en el game over
This commit is contained in:
@@ -151,12 +151,10 @@ void GameOver::checkEventHandler()
|
||||
break;
|
||||
|
||||
case SDL_SCANCODE_F5:
|
||||
// switchPalette();
|
||||
switchPalette();
|
||||
break;
|
||||
|
||||
default:
|
||||
// section.name = SECTION_PROG_TITLE;
|
||||
// section.subsection = 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -230,4 +228,10 @@ void GameOver::updateCounters()
|
||||
section.name = SECTION_PROG_LOGO;
|
||||
section.subsection = SUBSECTION_LOGO_TO_TITLE;
|
||||
}
|
||||
}
|
||||
|
||||
// Cambia la paleta
|
||||
void GameOver::switchPalette()
|
||||
{
|
||||
options->palette = (options->palette == p_zxspectrum) ? p_zxarne : p_zxspectrum;
|
||||
}
|
||||
Reference in New Issue
Block a user