renombrades les clases SSprite a SurfaceSprite
This commit is contained in:
@@ -9,8 +9,8 @@
|
||||
#include "core/resources/resource.hpp" // Para Resource
|
||||
#include "core/system/debug.hpp" // Para Debug
|
||||
#include "external/jail_audio.h" // Para JA_PlaySound
|
||||
#include "game/options.hpp" // Para Cheat, Options, options
|
||||
#include "game/gameplay/room.hpp" // Para Room, TileType
|
||||
#include "game/options.hpp" // Para Cheat, Options, options
|
||||
#include "utils/defines.hpp" // Para RoomBorder::BOTTOM, RoomBorder::LEFT, RoomBorder::RIGHT
|
||||
|
||||
// Constructor
|
||||
@@ -621,7 +621,7 @@ void Player::initSprite(const std::string& surface_path, const std::string& anim
|
||||
auto surface = Resource::get()->getSurface(surface_path);
|
||||
auto animations = Resource::get()->getAnimations(animations_path);
|
||||
|
||||
sprite_ = std::make_shared<SAnimatedSprite>(surface, animations);
|
||||
sprite_ = std::make_shared<SurfaceAnimatedSprite>(surface, animations);
|
||||
sprite_->setWidth(WIDTH_);
|
||||
sprite_->setHeight(HEIGHT_);
|
||||
sprite_->setCurrentAnimation("walk");
|
||||
|
||||
Reference in New Issue
Block a user