Retocando mapas
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user