Nous grafics per a la powerball

Nou comportament per a la powerball
This commit is contained in:
2024-11-16 12:13:00 +01:00
parent 6262b5814d
commit 79d25fb812
6 changed files with 62 additions and 72 deletions

View File

@@ -96,6 +96,12 @@ void MovingSprite::setAngle(double value)
rotate_.angle = value;
}
// Establece el valor de la variable
void MovingSprite::setRotatingCenter(SDL_Point *point)
{
rotate_.center = point;
}
// Incrementa el valor del ángulo
void MovingSprite::updateAngle()
{
@@ -172,41 +178,6 @@ SDL_RendererFlip MovingSprite::getFlip()
return flip_;
}
// Obtiene el valor de la variable
float MovingSprite::getPosX() const
{
return x_;
}
// Obtiene el valor de la variable
float MovingSprite::getPosY() const
{
return y_;
}
// Obtiene el valor de la variable
float MovingSprite::getVelX() const
{
return vx_;
}
// Obtiene el valor de la variable
float MovingSprite::getVelY() const
{
return vy_;
}
// Obtiene el valor de la variable
float MovingSprite::getAccelX() const
{
return ax_;
}
// Obtiene el valor de la variable
float MovingSprite::getAccelY() const
{
return ay_;
}
// Establece la posición y_ el tamaño del objeto
void MovingSprite::setPos(SDL_Rect rect)