Ask coding questions

← Back to all posts
Why is it doing this?
MaciahLawson (32)

Ok, so I have the game code all done. Except that its saying I don't have a file even though I do. It's at line 25.

This is just an experimental test on pygame. I am testing the limits.

I will definitely touch up this code later.

Answered by Bookie0 (6281) [earned 5 cycles]
View Answer
Bookie0 (6281)

Hmm it says that pygame.error: Unsupported image format, but .pngs should be supported by pygame.

Maybe make sure the image is correctly uploaded? I don't see anything (unless that's supposed to be the image?)

Also, I've heard that pygame isn't really working that well (bugs and stuff), so perhaps that may be a reason?

Good luck! :)

Bookie0 (6281)

@MaciahLawson No problem! Mark as correct answer? (if it helped :)

robowolf (549)

You don't have any images in your repl. Add images corresponding to the file names. You can do this by clicking the three dots next to the new folder and then click upload file.