I am a newbie in Python following a tutorial online for making an AI learn to play Flappy bird. My problem is that I can't seem to load the images for the game that I have saved in a folder using this syntax:
BIRD_IMGS =
[pygame.transform.scale2x(pygame.image.load(os.path.join("imgs","bird1.png"))),
pygame.transform.scale2x(pygame.image.load(os.path.join("imgs","bird2.png"))),
pygame.transform.scale2x(pygame.image.load(os.path.join("imgs","bird3.png")))]
The error I get is the following:
pygame.error: Couldn't open imgs\bird1.png
My paths are:
C:\Users\Admin\Documents\Web Development\Python\Flappy_Bird_AI\master.py
C:\Users\Admin\Documents\Web Development\Python\Flappy_Bird_AI\imgs\bird1.png
for the code and image, respectively.
Anyone know why I'm getting this error?