Cambiados muchos DEFINEs por variables de param
This commit is contained in:
@@ -32,6 +32,7 @@ private:
|
||||
int kind; // Especifica el tipo de objeto que es
|
||||
bool enabled; // Especifica si el objeto está habilitado
|
||||
circle_t collider; // Circulo de colisión del objeto
|
||||
SDL_Rect *playArea; // Rectangulo con la zona de juego
|
||||
|
||||
// Alinea el circulo de colisión con la posición del objeto
|
||||
void shiftColliders();
|
||||
@@ -43,7 +44,7 @@ public:
|
||||
Uint16 timeToLive; // Temporizador con el tiempo que el objeto está presente
|
||||
|
||||
// Constructor
|
||||
Item(int kind, float x, float y, Texture *texture, std::vector<std::string> *animation);
|
||||
Item(int kind, float x, float y, SDL_Rect *playArea, Texture *texture, std::vector<std::string> *animation);
|
||||
|
||||
// Destructor
|
||||
~Item();
|
||||
|
||||
Reference in New Issue
Block a user