title: Python Pygame image not displaying
body: <p>I am trying to display a game in pygame. But it won't work for some reason, any ideas? Here is my code:</p>
  
  <pre><code>import pygame, sys
  from pygame.locals import *
  pygame.init()
  screen=pygame.display.set_mode((640,360),0,32)
  pygame.display.set_caption("My Game")
  p = 1
  green = (0,255,0)
  pacman ="imgres.jpeg"
  pacman_x = 0
  pacman_y = 0
  while True:
      pacman_obj=pygame.image.load(pacman).convert()
      screen.blit(pacman_obj, (pacman_x,pacman_y))
      blue = (0,0,255)
      screen.fill(blue)
      for event in pygame.event.get():
          if event.type == QUIT:
              pygame.quit()
              sys.exit()
          if event.type==KEYDOWN:
              if event.key==K_LEFT:
                  p=0
      pygame.display.update()
  </code></pre>