Ya sed puede saltar la sección de credits/instrucciones con cualquier tecla

This commit is contained in:
2022-10-25 13:11:39 +02:00
parent 0886afd1db
commit 284a99e6e9
2 changed files with 4 additions and 7 deletions

View File

@@ -104,13 +104,10 @@ void Credits::checkEventHandler()
section.name = SECTION_PROG_QUIT;
break;
case SDL_SCANCODE_RETURN:
default:
section.name = SECTION_PROG_TITLE;
section.subsection = 0;
break;
default:
break;
}
}
}
@@ -227,8 +224,8 @@ void Credits::render()
SDL_Rect rect = {0, offset * 2, 256, 192};
SDL_RenderCopy(renderer, coverTexture, nullptr, &rect);
//text->write(0,0,std::to_string(counter));
//text->write(0,8,std::to_string(counterEnabled));
// text->write(0,0,std::to_string(counter));
// text->write(0,8,std::to_string(counterEnabled));
// Vuelca el contenido del renderizador en pantalla
screen->blit();