canvi de pc (toquejant Options)

This commit is contained in:
2025-06-14 16:28:36 +02:00
parent 4b8cc67b5c
commit 23e8f90274
27 changed files with 505 additions and 454 deletions

View File

@@ -21,7 +21,7 @@ Logo::Logo()
{
// Inicializa variables
section::name = section::Name::LOGO;
Section::name = Section::Name::LOGO;
dest_.x = param.game.game_area.center_x - jail_texture_->getWidth() / 2;
dest_.y = param.game.game_area.center_y - jail_texture_->getHeight() / 2;
since_sprite_->setPosition(SDL_FRect{
@@ -69,12 +69,12 @@ void Logo::checkEvents()
SDL_Event event;
while (SDL_PollEvent(&event))
{
globalEvents::check(event);
GlobalEvents::check(event);
}
}
// Comprueba las entradas
void Logo::checkInput() { globalInputs::check(); }
void Logo::checkInput() { GlobalInputs::check(); }
// Gestiona el logo de JAILGAMES
void Logo::updateJAILGAMES()
@@ -113,7 +113,7 @@ void Logo::updateJAILGAMES()
// Comprueba si ha terminado el logo
if (counter_ == END_LOGO_COUNTER_MARK + POST_LOGO_DURATION)
{
section::name = section::Name::INTRO;
Section::name = Section::Name::INTRO;
}
}
@@ -179,7 +179,7 @@ void Logo::render()
void Logo::run()
{
Audio::get()->fadeOutMusic(300);
while (section::name == section::Name::LOGO)
while (Section::name == Section::Name::LOGO)
{
checkInput();
update();