O'Reilly logo

DarkBASIC Pro Game Programming, Second Edition by Joshua R. Smith, Jonathan S. Harbour

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Establishing a Network Connection

After you select the connection, you must set up the game. A network game requires a minimum of two people. To that end, you need to call two different paths to create a network game—the client and server paths. There is only a difference of a single command between the two paths, but it’s important to understand both of them.

Creating the Server Path

In the server/client model, the server is the computer that is hosting the game. In the peer-to-peer model, the server is the starting point for the game, but everyone acts as a server after the game is begun.

Before the game is established, you need to set the connection type that you got from PERFORM CHECKLIST FOR CONNECTIONS. Use the SET NET CONNECTION Connection ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required