Tag Info

New answers tagged


It's probably because you're subtracting from the y-coordinate i -= spacing. In pygame, the upper left of the screen is (0,0) and the lower right is (width, height) so you should have: i += spacing


RUNNING = True while RUNNING: # Loop while RUNNING == True do_something_200_times() for event in pygame.event.get() if event.type == pygame.QUIT: RUNNING = False # Set RUNNING = False and end the loop pygame.quit() # Quit pygame and allow the program to end Instead of creating an infinite loop, assign it's execution ...

Top 50 recent answers are included