title: Python: Basic program to drop an image
body: <p>I am just trying to learn <strong>python gaming</strong> and I just tried to drop a image on the screen by using the below code but I am unable to do it. Can any one tell me where I have done the mistake? Thanks in advance.</p>
  
  <pre><code>import sys,os,pygame
  from livewires import games,colour
  os.environ['SDL_VIDEODRIVER'] = 'windib'
  x=320
  y=320
  class apple(games.Sprite):
      def __init__sprite(screen,x,y,image,dx,dy):
          x+=dx
          y+=dy
          print(x)
          print(y)
          self.init_sprite(my_screen,x,y,"G:\\Documents and Settings\\SAI\\Desktop\\py2.2\\apple.PNG")
  
  
  my_screen=games.Screen(640,640)
  image=games.load_image("G:\\Documents and     Settings\\SAI\\Desktop\\py2.2\\bg.JPG",transparent = 0)
  my_screen.set_background(image)
  games.Text(my_screen,500,40,"Score:0",50,colour.black)
  scrollimage=games.load_image("G:\\Documents and Settings\\SAI\\Desktop\\py2.2\\apple.PNG",transparent = 0)
  for i in range(0,6):
      apple(my_screen,x,y,scrollimage,80,0)
  
  my_screen.mainloop()
  </code></pre>