Skip to content

Commit

Permalink
Reverse to make slightly more sense
Browse files Browse the repository at this point in the history
  • Loading branch information
kraxarn committed Jun 20, 2021
1 parent ced9587 commit 72e01dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/entity/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ void player::update(const ce::input &input, const ce::level &level)
}
else
{
velocity.y -= gravity;
velocity.y += gravity;
}

#ifndef NDEBUG
Expand Down
4 changes: 2 additions & 2 deletions src/entity/player.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 72e01dc

Please sign in to comment.