Retocando mapas

This commit is contained in:
2022-10-23 22:55:17 +02:00
parent a57a19ca4a
commit e6b3d5ea13
8 changed files with 12 additions and 11 deletions

View File

@@ -189,7 +189,7 @@ bool AnimatedSprite::loadFromFile(std::string filePath)
if (file.good())
{
// Procesa el fichero linea a linea
std::cout << "Loading animation from file: " << filePath.c_str() << std::endl;
std::cout << "Animation loaded: " << filename << std::endl;
while (std::getline(file, line))
{
// Si la linea contiene el texto [animation] se realiza el proceso de carga de una animación

View File

@@ -194,7 +194,7 @@ void Credits::render()
SDL_RenderCopy(renderer, textTexture, nullptr, nullptr);
// Dibuja la textura que cubre el texto
const int offset = std::min(counter / 4, 192 / 2);
const int offset = std::min(counter / 8, 192 / 2);
SDL_Rect rect = {0, offset * 2, 256, 192};
SDL_RenderCopy(renderer, coverTexture, nullptr, &rect);