fix: els globos fills estaven alineats cap a dalt en lloc de al centre
fix: les explosions eren de un tamany inferior (i per tant desalineades ademes)
This commit is contained in:
@@ -32,8 +32,8 @@ void Explosions::addTexture(int size, std::shared_ptr<Texture> texture, const st
|
||||
// Añade una explosión
|
||||
void Explosions::add(int x, int y, int size)
|
||||
{
|
||||
const auto index = getIndexBySize(size);
|
||||
explosions_.emplace_back(std::make_unique<AnimatedSprite>(textures_[index].texture, textures_[index].animation));
|
||||
const auto INDEX = getIndexBySize(size);
|
||||
explosions_.emplace_back(std::make_unique<AnimatedSprite>(textures_[INDEX].texture, textures_[INDEX].animation));
|
||||
explosions_.back()->setPos(x, y);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user