Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Multiplayer online game using Python
-
I would like to create a multiplayer online game using Python. Is this technically possible? If so, where would I begin?
-
Perhaps with the SimpleHTTPServer module and the webbrowser module.
I know pythonista's webviews support html 5 canvas.
Integrate it with html Scene module perhaps?
-
I'd say use sockets, build yourself a server and client.
-
Are you looking to build an adhock or a scalable multiplayer system? If the former, then you need at least one of your nodes to act as both player machine and as server machine at the same time. You also need to worry about how other player machines find the server machine(s).
If I was going to attempt this, I would use BlueMix or Heroku or similar to build a simple Python server at a well known URL and let all the clients connect to that URL. This requires that you learn the modern way to build webapps but it simplifies both the scalability and discovery issues. These services are hungry to onboard new developers so they allow you to do low usage experimentation for free if you keep your server side small/simple and shut down your server process when it is not in use. Full disclosure: I work for IBM.