Trabajando en las colisiones

This commit is contained in:
2022-08-16 13:54:22 +02:00
parent 77980a4d70
commit a941f72208
7 changed files with 140 additions and 20 deletions

View File

@@ -12,6 +12,9 @@ protected:
float mPosX; // Posición en el eje X
float mPosY; // Posición en el eje Y
float mPosXPrev; // Posición anterior en el eje X
float mPosYPrev; // Posición anterior en el eje Y
float mVelX; // Velocidad en el eje X. Cantidad de pixeles a desplazarse
float mVelY; // Velocidad en el eje Y. Cantidad de pixeles a desplazarse
@@ -140,6 +143,9 @@ public:
// Devuelve el rectangulo donde está el sprite
SDL_Rect getRect();
// Deshace el último movimiento
void undoMove();
};
#endif