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

@@ -65,12 +65,12 @@ public:
void render() override;
// Obtiene la variable
float getPosX() const;
float getPosY() const;
float getVelX() const;
float getVelY() const;
float getAccelX() const;
float getAccelY() const;
float getPosX() const { return x_; }
float getPosY() const { return y_; }
float getVelX() const { return vx_; }
float getVelY() const { return vy_; }
float getAccelX() const { return ax_; }
float getAccelY() const { return ay_; }
// Establece la variable
void setVelX(float value);
@@ -87,6 +87,7 @@ public:
// Establece el valor de la variable
void setAngle(double vaue);
void setRotatingCenter(SDL_Point *point);
// Activa o desactiva el efecto derotación
void enableRotate();