Game Development Community

networking questions

by Christopher Figueroa · in Torque Game Builder · 01/19/2010 (8:02 pm) · 1 replies

This is my first networked game and I have no idea where to even start. I just want to have two different players LAN and have them control different aspects of the level. Trying to go against each other to destroy the others base and eventually the player. It will sort of be like a 2d side scrolling rts. Any ideas on how to program the LAN part?

#1
01/20/2010 (8:29 am)
TGB ships with a Checkers game example. This example shows you the minimum parts you need to get a networked game in place. Basically your game will have both the client code and the server code inside of it so that any player can start a game (using the server code) and then any other player can join the game (using the client code). Once the basic connections are made, the client uses a commandToServer statement to call functions that exist on the server and the server uses commandToClient messages to call functions that exist on the client. As for the side scrolling aspect, there are some tutorials on the main TGB hub that show you the basics of that as well... sorry no time to post links at the moment.