title: creating multiple instances in pygame
body: <p>I have a bit of a problem with working with pygame. See, I have a class called blockClass, but I am not quite sure how to create multiple instance of blockClass, without creating dozens of objects. Is there a way that I can instantiate this class?</p>
  
  <p>here is my code:</p>
  
  <pre><code>#imports
  import pygame, sys
  from pygame.locals import *
  
  #init game
  pygame.init()
  screen = pygame.display.set_mode((640,480))
  pygame.key.set_repeat(True) 
  clock = pygame.time.Clock()
  
  #classes
  class playerClass:
      x = 100
      y = 100
      boundingBox_X = 32
      boundingBox_Y = 32
      sprite = pygame.image.load("Image2.png").convert_alpha()
  
  class blockClass:
      x = 0
      y = 0
      boundingBox_X = 32
      boundingBox_y = 32
      sprite = pygame.image.load("Image1.png").convert_alpha()
  
  #objects
  playerObject = playerClass()
  block = blockClass()
  
  #object variables
  
  #colors
  white = 255,255,255
  
  #main loop
  quitting = False
  while quitting == False:
      for event in pygame.event.get():
  
      #event processing
          if event.type == pygame.QUIT:
              quitting = True
  
  #drawing
      screen.fill((white))
  
      screen.blit(playerObject.sprite,(playerObject.x,playerObject.y))
      screen.blit(blockObject.sprite,(blockObject.x,blockObject.y))
  
      pygame.display.flip()
  
  #ending
      clock.tick(60)
  </code></pre>
  
  <p>Thanks for any help!</p>