Treballant en la intro
This commit is contained in:
@@ -42,9 +42,10 @@ class PathSprite : public Sprite
|
||||
{
|
||||
private:
|
||||
// Variables
|
||||
bool enabled_ = false; // Indica si el objeto está habilitado
|
||||
int current_path_ = 0; // Path que se está recorriendo actualmente
|
||||
std::vector<Path> paths_; // Caminos a recorrer por el sprite
|
||||
bool enabled_ = false; // Indica si el objeto está habilitado
|
||||
bool has_finished_ = false; // Indica si el objeto ha finalizado el recorrido
|
||||
int current_path_ = 0; // Path que se está recorriendo actualmente
|
||||
std::vector<Path> paths_; // Caminos a recorrer por el sprite
|
||||
|
||||
// Coloca el sprite en los diferentes puntos del recorrido
|
||||
void moveThroughCurrentPath();
|
||||
@@ -63,6 +64,9 @@ public:
|
||||
// Actualiza la posición del sprite
|
||||
void update();
|
||||
|
||||
// Muestra el sprite por pantalla
|
||||
void render() override;
|
||||
|
||||
// Añade un recorrido
|
||||
void addPath(Path path, bool centered = false);
|
||||
void addPath(std::vector<SDL_Point> spots, int waiting_counter = 0);
|
||||
|
||||
Reference in New Issue
Block a user