Reputation: 55
I have made a hangman-style game with python 3.3 using pygame and I would like to compile it somehow, so that it can be run on another computer, which doesn't have python or pygame installed (if that is possible). I've done some research on this, and I found that you can use py2exe, but I found that this isn't for python 3.3 yet (correct me if I'm wrong), so is there another way of doing this? I have also seen something about cx_Freeze, but I just can't understand how to use it.
Here is a download link for a .zip with all the files in it (images, sounds, etc.): https://www.dropbox.com/s/4187t1mv9iszwjh/Hangman%20Game.zip
How can I make that program into a windows executable? Also, if it is possible, how can I make it so that everything I need is in one .exe file and there aren't any .dll or external files of that sort?
Just letting you know, I'm a programming noob, so I cannot guarantee I'll understand answers that are not noobified. Also, I am new to this site, so if I do something wrong or unconventional, please let me know. Thank you in advance.
Upvotes: 0
Views: 2395
Reputation: 8043
Yes use something like Python 3 to 2 i think thats the only one thing to change 3 to 2 and there are a few that will compile it but i recommend using py2exe the thing is it will make and .exe file but there might be dependencies that have to be with the file but there are ways to get rid of those and put it all in one program
py2exe can be confusing so heres a Tutorial
also i recommend organizing your game images into differnt folders it makes it easier
Upvotes: 1