Commit de anar al llit amb el portatil

This commit is contained in:
2024-10-08 23:15:55 +02:00
parent bd3aa0bb06
commit 3c1dcad3ab
2 changed files with 3 additions and 6 deletions

View File

@@ -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