forked from jaildesigner-jailgames/jaildoctors_dilemma
i per fi ja comença a tornar tot a la normalitat
This commit is contained in:
@@ -712,12 +712,12 @@ void Player::applySpawnValues(const PlayerSpawn &spawn)
|
||||
}
|
||||
|
||||
// Inicializa el sprite del jugador
|
||||
void Player::initSprite(const std::string &texture_path, const std::string &animations_path)
|
||||
void Player::initSprite(const std::string &surface_path, const std::string &animations_path)
|
||||
{
|
||||
auto texture = Resource::get()->getSurface(texture_path);
|
||||
auto surface = Resource::get()->getSurface(surface_path);
|
||||
auto animations = Resource::get()->getAnimations(animations_path);
|
||||
|
||||
sprite_ = std::make_shared<SAnimatedSprite>(texture, animations);
|
||||
sprite_ = std::make_shared<SAnimatedSprite>(surface, animations);
|
||||
sprite_->setWidth(WIDTH_);
|
||||
sprite_->setHeight(HEIGHT_);
|
||||
sprite_->setCurrentAnimation("walk");
|
||||
|
||||
Reference in New Issue
Block a user