precarrega les textures del jugador amb variants de paleta
This commit is contained in:
@@ -197,9 +197,9 @@ void AnimatedSprite::processConfigLine(const std::string& line, AnimationConfig&
|
||||
|
||||
// Actualiza los cálculos basados en las dimensiones del frame
|
||||
void AnimatedSprite::updateFrameCalculations(AnimationConfig& config) {
|
||||
config.frames_per_row = texture_->getWidth() / config.frame_width;
|
||||
const int WIDTH = texture_->getWidth() / config.frame_width;
|
||||
const int HEIGHT = texture_->getHeight() / config.frame_height;
|
||||
config.frames_per_row = getTexture()->getWidth() / config.frame_width;
|
||||
const int WIDTH = getTexture()->getWidth() / config.frame_width;
|
||||
const int HEIGHT = getTexture()->getHeight() / config.frame_height;
|
||||
config.max_tiles = WIDTH * HEIGHT;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user