forked from jaildesigner-jailgames/jaildoctors_dilemma
Limpieza y orden de código
This commit is contained in:
@@ -10,6 +10,10 @@
|
||||
class MovingSprite : public Sprite
|
||||
{
|
||||
protected:
|
||||
// Objetos y punteros
|
||||
SDL_Point *center; // Centro de rotación
|
||||
|
||||
// Variables
|
||||
float x; // Posición en el eje X
|
||||
float y; // Posición en el eje Y
|
||||
|
||||
@@ -30,16 +34,12 @@ protected:
|
||||
int rotateSpeed; // Velocidad de giro
|
||||
double rotateAmount; // Cantidad de grados a girar en cada iteración
|
||||
int counter; // Contador interno
|
||||
SDL_Point *center; // Centro de rotación
|
||||
SDL_RendererFlip currentFlip; // Indica como se voltea el sprite
|
||||
|
||||
public:
|
||||
// Constructor
|
||||
MovingSprite(float x = 0, float y = 0, int w = 0, int h = 0, float velx = 0, float vely = 0, float accelx = 0, float accely = 0, Texture *texture = nullptr, SDL_Renderer *renderer = nullptr);
|
||||
|
||||
// Destructor
|
||||
~MovingSprite();
|
||||
|
||||
// Mueve el sprite
|
||||
void move();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user