Aug-06-2021, 07:53 PM
(Jul-26-2021, 07:15 AM)abscorpy Wrote: Here is the link for the Github Repo
https://github.com/abscorpy/Spaceship
Cheers
If the file structure looks like this then
pygame.image.load('spaceship_yellow.png')
should work. When doing pygame.image.load(os.path.join('First_Game', 'spaceship_yellow.png'))
Python is looking for a directory named First_Game within the root directory, or directory the main python file is running from. Since there is no such directory within the root directory, it throws an error.