Arreglos y limpieza de código
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
#include "player.h"
|
||||
|
||||
// Constructor
|
||||
Player::Player(float x, int y, SDL_Renderer *renderer, std::vector<LTexture *> texture, std::vector<std::vector<std::string> *> animations)
|
||||
Player::Player(float x, int y, SDL_Renderer *renderer, std::vector<Texture *> texture, std::vector<std::vector<std::string> *> animations)
|
||||
{
|
||||
// Copia los punteros
|
||||
this->renderer = renderer;
|
||||
@@ -578,7 +578,7 @@ void Player::shiftColliders()
|
||||
}
|
||||
|
||||
// Obtiene el puntero a la textura con los gráficos de la animación de morir
|
||||
LTexture *Player::getDeadTexture()
|
||||
Texture *Player::getDeadTexture()
|
||||
{
|
||||
return deathSprite->getTexture();
|
||||
;
|
||||
@@ -617,7 +617,7 @@ void Player::updatePowerUpHeadOffset()
|
||||
}
|
||||
|
||||
// Pone las texturas del jugador
|
||||
void Player::setPlayerTextures(std::vector<LTexture *> texture)
|
||||
void Player::setPlayerTextures(std::vector<Texture *> texture)
|
||||
{
|
||||
headSprite->setTexture(texture.at(0));
|
||||
bodySprite->setTexture(texture.at(1));
|
||||
|
||||
Reference in New Issue
Block a user