Añadidos enemigos tipo path
This commit is contained in:
@@ -28,15 +28,15 @@ AnimatedSprite::~AnimatedSprite()
|
||||
// Obtiene el indice de la animación a partir del nombre
|
||||
int AnimatedSprite::getIndex(std::string name)
|
||||
{
|
||||
int result = -1;
|
||||
int index = 0;
|
||||
for (int i = 0; i < animation.size(); i++)
|
||||
{
|
||||
if (animation[i].name == name)
|
||||
{
|
||||
result = i;
|
||||
index = i;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
return index;
|
||||
}
|
||||
|
||||
// Calcula el frame correspondiente a la animación
|
||||
|
||||
Reference in New Issue
Block a user