Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. # Import a library of functions called 'pygame'
  2. import pygame
  3.  
  4. pygame.init()
  5.  
  6. size = [640, 480]
  7. screen = pygame.display.set_mode(size)
  8.  
  9. pygame.display.set_caption("svg to pygame converter")
  10.  
  11.  
  12.  
  13. done = False
  14. clock = pygame.time.Clock()
  15.  
  16. #bird = pygame.image.load(os.path.join('C:\Python27', 'player.png'))
  17. {loadimages}
  18.  
  19.  
  20. while not done:
  21.     clock.tick(10)
  22.      
  23.     for event in pygame.event.get(): # User did something
  24.         if event.type == pygame.QUIT: # If user clicked close
  25.             done=True # Flag that we are done so we exit this loop
  26.     {loadboxes}
  27.    
  28.     pygame.display.flip()
  29.  
  30. pygame.quit()