i per fi ja comença a tornar tot a la normalitat
This commit is contained in:
@@ -31,6 +31,8 @@ Enemy::Enemy(const EnemyData &enemy)
|
||||
|
||||
collider_ = getRect();
|
||||
|
||||
color_ = stringToColor(color_string_);
|
||||
|
||||
// Coloca un frame al azar o el designado
|
||||
sprite_->setCurrentAnimationFrame((enemy.frame == -1) ? (rand() % sprite_->getCurrentAnimationSize()) : enemy.frame);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user