Advertisement
Guest User

Untitled

a guest
Feb 13th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. while Menu == True:
  2. gameDisplay.blit(BG, (0,0))
  3. for event in pygame.event.get():
  4. if event.type == pygame.QUIT or (event.type == pygame.KEYDOWN and event.key == pygame.K_ESCAPE):
  5. Menu = False
  6.  
  7. for i in range(0, len(Button_variable)):
  8. Button_variable[i].function()
  9.  
  10. for i in range(0, len(Button_variable)):
  11. Button_variable[i].place_button()
  12.  
  13.  
  14. if fps_disp == 1:
  15. fps = math.trunc(clock.get_fps())
  16. print_text(str(fps), 1200, 16, yellow)
  17.  
  18. if first == 1:
  19. pygame.display.update()
  20. first = 0
  21. pygame.display.update(rect_update)
  22. clock.tick(60)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement