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

Passing the Data

After you have established the game, DarkBASIC provides you with many ways to pass data back and forth between the computers in the game. Passing data is a lot like passing notes in class. The data is written at your end, passed through the network, and read at the other end. If the other end has something to say to you, it performs the same series of events. The only difference between passing data and passing notes is that the teacher won’t take your data and read it in front of the class.

Getting the Number and Names of Players

The very first piece of data you will probably want to obtain is the number of players and their names. You pass this data differently from the other data you send because it already resides on your ...

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