tots els singletons tornats a fer a la vieja y gorda usanza

This commit is contained in:
2025-05-30 10:17:41 +02:00
parent 64b6f66044
commit f661da5215
29 changed files with 322 additions and 379 deletions

View File

@@ -60,7 +60,7 @@ Logo::~Logo()
{
jail_texture_->setColor(255, 255, 255);
since_texture_->setColor(255, 255, 255);
Audio::get().stopAllSounds();
Audio::get()->stopAllSounds();
}
// Comprueba el manejador de eventos
@@ -84,7 +84,7 @@ void Logo::updateJAILGAMES()
{
if (counter_ == 30)
{
Audio::get().playSound("logo.wav");
Audio::get()->playSound("logo.wav");
}
if (counter_ > 30)
@@ -181,7 +181,7 @@ void Logo::render()
// Bucle para el logo del juego
void Logo::run()
{
Audio::get().fadeOutMusic(300);
Audio::get()->fadeOutMusic(300);
while (section::name == section::Name::LOGO)
{
checkInput();