D
D
Denis Kulikov2021-10-09 21:34:43
Python
Denis Kulikov, 2021-10-09 21:34:43

I can't compile a game made with pygame, what's wrong?

I made a simple game from the 90s (the same space shooter from slot machines) and now I want to compile it into an exe file (which I basically did). I transferred the resulting file to the directory with the files needed for the game (graphics and music), but I got this error:
6161e084aed24643815521.png
Please help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2021-10-09
@sergey-gornostaev

Python programs do not compile. You just received a self-extracting archive that contains the interpreter, all the necessary libraries and the script of your program. When launched, the working directory of the script becomes the temporary directory into which the archive was unpacked. There your script searches for game files, but does not find them.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question