diff --git a/src/entity/player.cpp b/src/entity/player.cpp index 6833776..5185b8e 100644 --- a/src/entity/player.cpp +++ b/src/entity/player.cpp @@ -52,7 +52,7 @@ void player::update(const ce::input &input, const ce::level &level) } else { - velocity.y -= gravity; + velocity.y += gravity; } #ifndef NDEBUG diff --git a/src/entity/player.hpp b/src/entity/player.hpp index 4265058..8fe071c 100644 --- a/src/entity/player.hpp +++ b/src/entity/player.hpp @@ -35,8 +35,8 @@ class player: public ce::animated_sprite static constexpr float move_acceleration = 1.F; static constexpr float move_deceleration = -1.1F; - static constexpr float jump_force = 1.F; - static constexpr float gravity = -0.F; + static constexpr float jump_force = -1.F; + static constexpr float gravity = 0.1F; static constexpr float speed_limit = 10.F;