There is some kind of Python game. What do you need to be able to create the opportunity to play on the network, for example, as in Minecraft?

Is it necessary to create a website for this? Or you can do without it (entered aypishnik and play with a neighbor)?

  • 2
    Nothing is necessary, except for network support in the game itself, and there already enter your IP address as you wish - andreymal

2 answers 2

It depends on how support for online play is implemented.

If the game (the code that players will launch) provides support for launching the server, then any player will be able to raise the server, and any other players will be able to connect to this person (provided that this IP address is available - that is, they must be in the same local network, or the server must be with a static public IP address, or ...)

Taking into account that the game is written in Python, it is not safe to give the source code to the server-side source (hello, cheating).

If the game does not know how to raise a local server, then there is enough server (virtual one) on which the server part of the game will spin, and to which players will connect. Web hosting for this, as such, is not needed, if you register, change your nickname, password, email and all that stuff from the game itself.

The site will be convenient at least if the player has forgotten his password or wants to do something (change a nickname or password, for example) without starting the game itself.

    To do this, first of all write the game itself. Then there will be two questions: on which hosting to host it, and where to get so much money.

    • And without hosting, the game on the network will not work? The COP went on LAN and on an Internet harm should not use hosting. - EmptyMan
    • one
      First, you need to write the game with an eye to the multiplayer. And secondly, hosting and money for multiplayer are desirable, but absolutely not necessary. - Kromster