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