#🔒 Making a program accessible to others

29 messages · Page 1 of 1 (latest)

inland wraith
#

I have made a game in Python using pygame. I would like a few friends to be able to play the game, how would I go about making it so that my friends can play the game I made. I don’t want them to have to just copy the code and paste it into an IDE of their own. Maybe I’m asking how I’d make an executable but I don’t know if that’s what I’m asking

tribal bisonBOT
#

@inland wraith

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

coarse phoenix
#

you could send them the .py?

muted kindle
#

you can use something like pyinstaller or py2exe but your friends device would flag your game as a virus

floral hollow
#

!pip nuitka

tribal bisonBOT
#

Python compiler with full language support and CPython compatibility

Released on <t:1743152100:D>.

earnest gull
floral hollow
#

I know it from around a year

earnest gull
#

is bot lying to us

floral hollow
earnest gull
#

ah

inland wraith
#

Like how do other people make games that you can play online

floral hollow
#

three.js, babylon.js

#

static site hosting or firebase-like alternatives

#

but, coming back to pygame

#

you can use a replit

#

for pygame

inland wraith
#

Okay I’ve heard of replit

#

What is it exactly

floral hollow
#

it's a platform to code online, in many languages; or when I used to use it back then (2021)
now there's some AI shit in there

#

but it just claims to run pygame apps

inland wraith
#

Interesting I’ll be looking in to that

floral hollow
#

usually 3d/games on web is done using js; and python is not as distributed as js (browsers)

inland wraith
#

I see

floral hollow
#

but throw in nuitka and see if it's able to make a working exe

tribal bisonBOT
#
Python help channel closed for inactivity

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.