title: pygame error, No video mode has been set
body: <p>I am just setting up some functions for my game but my script fails to load the image</p>
  
  <pre><code>#used variables
  # x, y for alien location
  # nPc for the aliens image
  #
  #
  #
  #
  #
  #
  #
  #
  #
  #
  
  
  
  #set up
  import pygame, sys, random, time, math
  from pygame.locals import *
  pygame.init()
  
  
  nPc = '/home/claude/Dropbox/Bowtie/Prisim/Images/Alien_Races/Standered/alien_1.png'
  
  
  nPc = pygame.image.load(nPc).convert_alpha()
  
  def loc_alien():
          x = random.randint(0, 400)
          y = randaom.randint(0, 400)
  
  
  def spawn_alien(x, y):
          screen.blit(nPc, (x, y))
  </code></pre>
  
  <p>when I run this I wont nothing to happen as I am not using the functions yet, but when I do run it I get this error</p>
  
  <pre><code>Traceback (most recent call last):
    File "/home/claude/Dropbox/Bowtie/Prisim/Scripts/aliens.py", line 26, in &lt;module&gt;
      nPc = pygame.image.load(nPc).convert_alpha()
  error: No video mode has been set
  </code></pre>
  
  <p>anyone know what I'm doing wrong?</p>