title: Python - Pygame - Class __init___ question/Not drawing
body: <p>I'm learning OOP and I have a few questions.
  When the initiliazer is called, is the code automatically processed?
  Cause if that's the case, I don't understand why my game isn't drawing the rectangle i ask it to draw in the <strong>init</strong> part of the player class.
  I'm very new to OOP and as such I'm not sure of what I'm doing, to some extent.
  Here's my code:</p>
  
  <pre><code>import pygame
  
  white = (255, 255, 255)
  black = (0, 0, 0)
  
  class Game():
      width = 800
      height = 600
      screen = pygame.display.set_mode((width, height))
      def __init__(self):
          pass
      def fill_screen(self, color):
          self.color = color
          self.screen.fill(self.color)
  
  class Player(pygame.sprite.Sprite):
      lead_x = 800/2
      lead_y = 600/2
      velocity = 0.002
      block_size = 10
      def __init__(self):
          pygame.sprite.Sprite.__init__(self)
          self.image = pygame.draw.rect(game.screen, black, [self.lead_x, self.lead_y, self.block_size, self.block_size])
  
      def move_player_x_left(self):
          self.lead_x += -self.velocity
  
      def move_player_x_right(self):
          self.lead_x += self.velocity
  
      def move_player_y_up(self):
          self.lead_y += -self.velocity
  
      def move_player_y_down(self):
          self.lead_y += self.velocity
  
  game = Game()
  player = Player()
  
  exitGame = False
  while not exitGame:
      game.fill_screen(white)
      for event in pygame.event.get():
          if event.type == pygame.QUIT:
              exitGame = True
          if event.type == pygame.KEYDOWN:
              if event.key == pygame.K_w:
                  player.move_player_y_up()
              if event.key == pygame.K_s:
                  player.move_player_y_down()
              if event.key == pygame.K_d:
                  player.move_player_x_right()
              if event.key == pygame.K_a:
                  player.move_player_x_left()
      pygame.display.update()
  pygame.quit()
  quit()
  </code></pre>