title: python pygame how to incorporate loops?
body: <p>I made a picture of Pacman and I am trying to make it move to the right across the screen. This is my code so far. I have the Pacman drawing but it is many shapes combined together and I don't know how to move all of them at once. </p>
  
  <pre><code>import os
  os.environ['SDL_VIDEO_WINDOW_POS'] = "%d, %d" %(20, 20)
  import pygame
  pygame.init()
  BLACK = (0,0,0)
  YELLOW = (255, 245, 59)
  WHITE = (242, 242, 242)   
  SIZE = (500, 500)                
  screen = pygame.display.set_mode(SIZE)
  
  # Fill background
  pygame.draw.rect(screen, WHITE, (0,0, 500, 500))
  pygame.draw.circle(screen, YELLOW, (250,250), 100,)
  pygame.draw.circle(screen, BLACK, (250,250), 100, 3)
  pygame.draw.circle(screen, BLACK, (260,200), 10,)
  pygame.draw.polygon(screen, WHITE, ((250,250),(500,500),(500,100)))
  pygame.draw.line(screen, BLACK, (250, 250), (334, 198), 3)
  pygame.draw.line(screen, BLACK, (250, 250), (315, 318), 3)     
  pygame.display.flip()
  pygame.time.wait(5000)
  </code></pre>