Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

  • 2 weeks later...
Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...