On 31/07/2021 03.37, 37_VA_VEER CHAKRABORTY wrote:
Hi,
I am a beginner in Python and I have started with the 'Pygame' module. I
was making a 'Flappy Bird' game with the module with the help of Youtube
videos. I was able to create a blank window. I had downloaded the game
assets in my computer in a folder called 'Python' and in a subfolder called
'assets'. I tried to upload the Flappy Bird picture and other sprites with
the code -
pygame.image.load('assets/Flappy Bird.png')
However, when I ran the script it was showing an error message - File not
found

Are you running your program in the parent directory of "assets"?

What happens when you go into the python interpreter (REPL) and import
pygame followed by executing that function?


--
Michael F. Stemper
Why doesn't anybody care about apathy?
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to