fguihen Posted August 28, 2006 Posted August 28, 2006 i want to improve my programming ( or get back to my programming after a bit of an occupational detour). i want to create a simple 2 player game, like pong, where there is constant action (in this case, the ball moving).i want to be able to play this between two computers, linked by a server. my aim is to write the server to allow the two pc's to play the game and the client to be on each pc. how do i link the 2 client apps, and keep the ball in the same place on the screen in each client? does it involve constant sending of data? would i be better to go through the server or just use the server to link the two clients? has anyone any examples i may look at or tutorials? thanks all Quote
Gill Bates Posted September 7, 2006 Posted September 7, 2006 You do not need an intermediate server to do this. Just make the application able to function as both a server and a client. Have the server listen on a specific port. And, yes, you will need to send data every time something is updated on one of the clients. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.