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