0

I have problem. How I can to allow players to upload their image as theirs profile?

while True:
    for event in pygame.event.get():
        if event.type == KEYDOWN:
            if event.key == K_ESCAPE:
                pygame.quit()
                sys.exit()
    
    screen.fill(((12, 211, 224)))

This is only part of full code because full code have 130 lines. I want add option to upload a picture at the end of this code.

Rabbid76
  • 202,892
  • 27
  • 131
  • 174
Vioar
  • 3
  • 5
  • From player's pc to file of game (\home\$USER\Big_Chungus_Adventure) – Vioar Sep 27 '22 at 19:30
  • Yes, this game will runs only in player's pc. – Vioar Sep 27 '22 at 19:31
  • But the player must determine which image. I want him to keep it simple and not have to write out the entire text for the image, but a window "pops up" where he finds and selects the image. – Vioar Sep 27 '22 at 19:36
  • [Quick and easy file dialog in Python?](https://stackoverflow.com/questions/9319317/quick-and-easy-file-dialog-in-python) – Rabbid76 Sep 27 '22 at 19:38

0 Answers0