You move with A and D and jump with space bar and shoot with enter.You can wall jump too.
that was the framrate issue i accidently applied friction to y velocity which lead to object not moving down on high framerates.
implement the fix and it will work just fine
hello sorry but i found a bug.
it works differently on different framerate
if you comment
player.velocity.y *= 0.9;
and change the bit with
with space kwy press to this
if (GetKey(olc::Key::SPACE).bPressed && Onground) {
player.velocity.y = -speed * 1.5f;
}
it will work fine on all framerates
put the png files and executable in same file to work