Skip to content

Instantly share code, notes, and snippets.

@nasajpledu
Created September 9, 2021 23:55
Show Gist options
  • Save nasajpledu/fa0ea698a3b59631c287518097274d03 to your computer and use it in GitHub Desktop.
Save nasajpledu/fa0ea698a3b59631c287518097274d03 to your computer and use it in GitHub Desktop.
#update all game graphics
pygame.display.update()
clock.tick(self.TICK_RATE)
# Restart game loop for wins, break if losses
if did_win:
self.run_game_loop(level_speed + 0.5)
else:
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment