[Tutor] accessing an image with pygame.image.load()
Christopher Spears
cspears2002 at yahoo.com
Mon Nov 3 22:37:10 CET 2008
I want to access a spaceship image with pygame.image.load(), so I wrote
self.image = pygame.image.load("C:Users\Chris\Documents\python\assignment07\chris_graphics\spaceship.gif")
However, I got this error message:
error: Couldn't open C:Users\Chris\Documents\python\assignment07\chris_graphics\spaceship.gif
I can't give pygame.image.load a path? Does anyone know how I would load an image located in a seperate directory?
More information about the Tutor
mailing list