'Pygame Module' not working
Dennis Lee Bieber
wlfraed at ix.netcom.com
Sat Jul 31 15:46:05 EDT 2021
On Sat, 31 Jul 2021 14:07:05 +0530, 37_VA_VEER CHAKRABORTY
<veerchakraborty612 at gmail.com> declaimed the following:
>pygame.image.load('assets/Flappy Bird.png')
>However, when I ran the script it was showing an error message - File not
>found
>Please advise me on how to upload the sprites and where I was going wrong.
First attempt: use a full pathname.
Second: determine what the "current working directory" is in which your
program is running, then use a pathname relative to that directory.
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed at ix.netcom.com http://wlfraed.microdiversity.freeddns.org/
More information about the Python-list
mailing list