omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    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

    Pythonista
    4
    4
    2332
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • techteej
      techteej last edited by

      I would like to create a multiplayer online game using Python. Is this technically possible? If so, where would I begin?

      1 Reply Last reply Reply Quote 0
      • TutorialDoctor
        TutorialDoctor last edited by

        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?

        1 Reply Last reply Reply Quote 0
        • briarfox
          briarfox last edited by

          I'd say use sockets, build yourself a server and client.

          1 Reply Last reply Reply Quote 0
          • ccc
            ccc last edited by

            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.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Powered by NodeBB Forums | Contributors