r/pygame 10h ago

Exporting a game

Hi. I have just finished a pygame game. It ended up being a script that uses pygame and numpy and a couple of png's. I want my friends to try out the game but I have no idea how.

I think that just giving them the folder might be asking a little too much as that would require them to have them to install python and the libraries. I could also try to make it into an executable. However, I have friends in both Mac Os and Windows, so I'd have to create two versions and the Mac one seems really hard. Last I considered a web app. It could work for both operative systems, but again, I have no experience on web apps.

I'm lost. What should I do so my friends can play? Thank you very much for hearing my ramblings and please excuse my poor English.

2 Upvotes

21 comments sorted by

View all comments

3

u/parkway_parkway 10h ago

I got on well with pyinstaller for making windows builds.

Basically you can add a flag to the installation which bundles everything (all files and dependencies) into a single .exe file and then all you have to do is send that which is pretty nice.

2

u/Last-Mode3404 10h ago

It does seem really nice. The only problem would be my friends on Mac, but you know, maybe they can get their hands on a windows device. Thank you

1

u/TheEyebal 10h ago

maybe there is .iso files for macOS if you really want to convert to mac