using this code everything seems right to me. First the player should go up, then once jumpcount turns negative, it should go down, but the movement seems more like a rocket that is never going to land. Could someone tell me what’s wrong with my code?
def movement():
    jump = False
    jumpcount = 10
    keyspressed = pygame.key.get_pressed()
    if keyspressed[pygame.K_w]:
        jump = True
    if jump == True:
        if jumpcount>=-10:
            player.y -= (jumpcount * abs(jumpcount))*0.5
            jumpcount-=1
        else:
            jump = False
            jumpcount = 10
 
    