afinaments

This commit is contained in:
2026-04-11 19:05:29 +02:00
parent 72741896c1
commit c1764ba0d8
4 changed files with 28 additions and 11 deletions

View File

@@ -35,6 +35,7 @@ class Player {
// --- Constantes de física ---
static constexpr float HORIZONTAL_VELOCITY = 75.0F;
static constexpr float HORIZONTAL_ACCEL = 500.0F;
static constexpr float WALK_INERTIA_THRESHOLD = 0.16F;
static constexpr float MAX_VY = 160.0F;
static constexpr float JUMP_VELOCITY = -178.5F;
static constexpr float GRAVITY_FORCE = 360.0F;
@@ -98,6 +99,7 @@ class Player {
float y_ = 0.0F;
float vx_ = 0.0F;
float vy_ = 0.0F;
float walk_time_ = 0.0F;
Direction wanna_go_ = Direction::NONE;
bool wanna_jump_ = false;