Treballant en la intro

This commit is contained in:
2025-03-13 14:18:19 +01:00
parent a3d4b13f3b
commit 5a6b96f7ab
7 changed files with 126 additions and 50 deletions

View File

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