Problem solved
AmanUllah6

Edit: The problem has been solved.

Hi, I'm trying to make a snake game and following a tutorial using pygame. My problem is when I use I try to load an image using block = pygame.image.load("resources/greenblock.jpg").convert() it gives me a file not found error even though I do have the file and it's in pictures. Any solutions?

(Link to tutorial: https://www.youtube.com/watch?v=8dfePlONtls&ab_channel=freeCodeCamp.org)

You are viewing a single comment. View All
Answered by MrVoo [earned 5 cycles]
View Answer
MrVoo

You don't have any files in your project except for main.py, what are you talking about :P

MrVoo

@AmanUllah6 Replit cannot access files on your computer because of the security risk, upload it to the project

AmanUllah6

@MrVoo Sorry for the confusion. When I mean files mean the one downloaded on my pc.

AmanUllah6

@MrVoo Thanks for the solution.