This is my code where I get the error:
# main loop
while True:
events()
keys = pygame.key.get_pressed()
if not keys(K_SPACE): continue
if player_y <= platform_y <= player_y + falling_velocity:
player_y = platform_y
else:
player_y += falling_velocity
pygame.draw.circle(DS, WHITE, (player_y, player_x - 25), 25, 0)
pygame.draw.line(DS, WHITE, (0, platform_y), (W, platform_y), 1)
pygame.display.update()
CLOCK.tick(FPS)
DS.fill(BLACK)
I think the error is in this line of code:
if not keys(K_SPACE): continue
Error:
tuple object not callable