I am making a game in Pygame and this is my code to jump:
keys = pygame.key.get_pressed()
if isjump == False:
#Up arrow key
if keys[pygame.K_UP]:
isjump = True
v = 5
else:
m = 1 if v >= 0 else -1
F = m * (v**2)
player.rect.y -= F
v -= 1
if v == -6:
isjump = False
I want it to jump farther and higher. How can I do it?