el zoom del LOGO ja es correcte
This commit is contained in:
@@ -23,22 +23,22 @@ private:
|
||||
// Estructura per a cada lletra del logo
|
||||
struct LetraLogo {
|
||||
std::shared_ptr<Graphics::Shape> forma;
|
||||
Punt posicio; // Posició final en pantalla
|
||||
float ancho; // Ancho per a càlcul de centrat
|
||||
Punt posicio; // Posició final en pantalla
|
||||
float ancho; // Ancho del bounding box
|
||||
float offset_centre; // Distància de min_x a shape_centre.x
|
||||
};
|
||||
|
||||
std::vector<LetraLogo> lletres_; // 9 lletres: J-A-I-L-G-A-M-E-S
|
||||
|
||||
// Constants d'animació
|
||||
static constexpr float DURACIO_ZOOM = 1.5f; // Duració del zoom (segons)
|
||||
static constexpr float DURACIO_TOTAL = 3.0f; // Duració total abans d'anar al joc
|
||||
static constexpr float DURACIO_ZOOM = 4.0f; // Duració del zoom (segons)
|
||||
static constexpr float DURACIO_TOTAL = 20.0f; // Duració total abans d'anar al joc
|
||||
static constexpr float ESCALA_INICIAL = 0.1f; // Escala inicial (10%)
|
||||
static constexpr float ESCALA_FINAL = 1.0f; // Escala final (100%)
|
||||
static constexpr float ESCALA_FINAL = 0.8f; // Escala final (100%)
|
||||
static constexpr float ESPAI_ENTRE_LLETRES = 10.0f; // Espaiat entre lletres
|
||||
|
||||
// Mètodes privats
|
||||
void inicialitzar_lletres();
|
||||
float calcular_escala_zoom(float temps) const;
|
||||
void actualitzar(float delta_time);
|
||||
void dibuixar();
|
||||
void processar_events(const SDL_Event& event);
|
||||
|
||||
Reference in New Issue
Block a user