Hey guys, recently I started playing around with pygame. Right now im making a little orb move when you hit a key. But its stuck with the image loading!
background_image_filename = 'C:\\orb\\backroundorb.jpeg' sprite_image_filename = 'C:\\orb\\orbsprite.jpeg' import pygame from pygame.locals import * from sys import exit pygame.init() screen = pygame.display.set_mode((640, 480), 0, 32) background = pygame.image.load(background_image_filename) sprite = pygame.image.load(sprite_image_filename)
does anyone see the problem with this part of the code? It comes up with the error message
Traceback (most recent call last):
File "C:\Python25\orb", line 14, in <module>
background = pygame.image.load(background_image_filename)
error: Couldn't open C:\orb\backroundorb.jpeg
There is a folder called orb and there are images called
backroundorb.jpeg and orbsprite.jpeg.
Can anyone help me with this?