Ya precarga todos los recursos del juego
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
#include "balloon.h"
|
||||
|
||||
// Constructor
|
||||
Balloon::Balloon(float x, float y, Uint8 kind, float velx, float speed, Uint16 creationtimer, LTexture *texture, std::vector<std::string> *buffer, SDL_Renderer *renderer)
|
||||
Balloon::Balloon(float x, float y, Uint8 kind, float velx, float speed, Uint16 creationtimer, LTexture *texture, std::vector<std::string> *animation, SDL_Renderer *renderer)
|
||||
{
|
||||
sprite = new AnimatedSprite(texture, renderer, "", buffer);
|
||||
sprite = new AnimatedSprite(texture, renderer, "", animation);
|
||||
disable();
|
||||
|
||||
enabled = true;
|
||||
|
||||
Reference in New Issue
Block a user