title: pygame create multiple moving objects
body: <p>I am trying to create a simple game with pygame. Currently I am working on having multiple "star" objects and have them move down the screen. How do I make the class take the "i1" without overwriting it every time the game loops runs?</p>
  
  <p>Class code:</p>
  
  <pre><code>class Stars(object): # ok, no way around classes now
      def __init__(self, i, i1):
          self.stars_speed = 2
          self.stars_radius = 5
          #self.stars_n = 5
          self.color = white
          self.i1 = i1
          self.i = i
      def draw(self):
          pygame.draw.circle(gameDisplay, self.color, (self.i, self.i1),self.stars_radius)
          print(self.i1)
          #print(i1)
          if self.i1 &lt; display_height:
              self.i1 = 200
              print ("moving star")
              print(self.i1)
          else:
              self.i1 = 0
              self.i = random.randint(0,display_width)
              print ("respawning star")
  </code></pre>