añadido a param.txt los parametros de los globos para velocidad y gravedad

This commit is contained in:
2024-08-03 07:56:26 +02:00
parent 8390dfd8be
commit 9ad6001046
6 changed files with 94 additions and 18 deletions

View File

@@ -85,6 +85,7 @@ private:
// Objetos y punteros
AnimatedSprite *sprite; // Sprite del objeto globo
param_t *param; // Puntero con todos los parametros del programa
// Variables
float posX; // Posición en el eje X
@@ -139,7 +140,7 @@ private:
public:
// Constructor
Balloon(float x, float y, Uint8 kind, float velx, float speed, Uint16 creationtimer, Texture *texture, std::vector<std::string> *animation, SDL_Renderer *renderer);
Balloon(float x, float y, Uint8 kind, float velx, float speed, Uint16 creationtimer, Texture *texture, std::vector<std::string> *animation, param_t *param);
// Destructor
~Balloon();