Commit de anar al llit amb el portatil
This commit is contained in:
@@ -8,9 +8,10 @@
|
|||||||
|
|
||||||
// Constructor
|
// Constructor
|
||||||
Balloon::Balloon(float x, float y, Uint8 kind, float velx, float speed, Uint16 creationtimer, Texture *texture, std::vector<std::string> *animation)
|
Balloon::Balloon(float x, float y, Uint8 kind, float velx, float speed, Uint16 creationtimer, Texture *texture, std::vector<std::string> *animation)
|
||||||
|
: kind(kind), speed(speed)
|
||||||
{
|
{
|
||||||
sprite = std::make_unique<AnimatedSprite>(texture, "", animation);
|
sprite = std::make_unique<AnimatedSprite>(texture, "", animation);
|
||||||
disable();
|
//disable();
|
||||||
|
|
||||||
enabled = true;
|
enabled = true;
|
||||||
|
|
||||||
@@ -268,10 +269,6 @@ Balloon::Balloon(float x, float y, Uint8 kind, float velx, float speed, Uint16 c
|
|||||||
|
|
||||||
counter = 0;
|
counter = 0;
|
||||||
travelY = 1.0f;
|
travelY = 1.0f;
|
||||||
this->speed = speed;
|
|
||||||
|
|
||||||
// Tipo
|
|
||||||
this->kind = kind;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Centra el globo en la posición X
|
// Centra el globo en la posición X
|
||||||
|
|||||||
@@ -1933,7 +1933,7 @@ void Game::update()
|
|||||||
|
|
||||||
// Vacia los vectores
|
// Vacia los vectores
|
||||||
freeBullets();
|
freeBullets();
|
||||||
freeBalloons();
|
//freeBalloons();
|
||||||
freeItems();
|
freeItems();
|
||||||
freeSmartSprites();
|
freeSmartSprites();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user