time-based: Player::setAnimation(dt_s) propaga dt_s als animate() dels sprites (corregeix animacio del jugador a 144Hz)
This commit is contained in:
@@ -30,7 +30,8 @@ class Player {
|
||||
|
||||
void setPlayerTextures(const std::vector<Texture *> &texture); // Pone las texturas del jugador
|
||||
void setInput(Input::Action input); // Actua en consecuencia de la entrada recibida
|
||||
void setAnimation(); // Establece la animación correspondiente al estado
|
||||
void setAnimation(); // Establece la animación correspondiente al estado (frame-based)
|
||||
void setAnimation(float dt_s); // Establece la animación correspondiente al estado (time-based)
|
||||
|
||||
[[nodiscard]] auto getPosX() const -> int; // Obtiene el valor de la variable
|
||||
[[nodiscard]] auto getPosY() const -> int; // Obtiene el valor de la variable
|
||||
|
||||
Reference in New Issue
Block a user