forked from jaildesigner-jailgames/jaildoctors_dilemma
commit de moure a un Linux a gastar eines de home
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
#include <algorithm> // for max, min, replace
|
||||
#include "animated_sprite.h" // for AnimatedSprite
|
||||
#include "asset.h" // for Asset
|
||||
#include "const.h" // for GAMECANVAS_HEIGHT, GAMECANVAS_CENTER_X
|
||||
#include "defines.h" // for GAMECANVAS_HEIGHT, GAMECANVAS_CENTER_X
|
||||
#include "input.h" // for Input, REPEAT_FALSE, inputs_e
|
||||
#include "jail_audio.h" // for JA_SetVolume, JA_DeleteMusic, JA_Loa...
|
||||
#include "moving_sprite.h" // for MovingSprite
|
||||
@@ -319,7 +319,7 @@ void Ending2::loadSprites()
|
||||
// Carga los sprites
|
||||
for (auto sl : spriteList)
|
||||
{
|
||||
sprites.emplace_back(std::make_shared<AnimatedSprite>(renderer, resource->getAnimation(sl + ".ani")));
|
||||
sprites.emplace_back(std::make_shared<AnimatedSprite>(resource->getTexture(sl + ".png"), resource->getAnimation(sl + ".ani")));
|
||||
maxSpriteWidth = std::max(sprites.back()->getWidth(), maxSpriteWidth);
|
||||
maxSpriteHeight = std::max(sprites.back()->getHeight(), maxSpriteHeight);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user