Jump to content
  • Advertisement
Sign in to follow this  
jad_salloum82

Online Game

This topic is 4238 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hey guys, 1st of all it is nice having this site back after long time although there is lots of errors that needs to be corrected. i need to develop a game in directX c# to be able to play it on the internet, i think it will be developed using peer to peer . i am aiming to make online games such as the games in windows like "Internet Checkers , Internet Spades , ..." can anyone put me on the right track plzz , i made a network game the uses Host And Join can i use it as online game and how ?? am using Direct Play Thanks 4 the help

Share this post


Link to post
Share on other sites
Advertisement
DirectPlay is dead - let it rest in peace [smile]

I'll shunt this over to the multiplayer and networking forum - they'll be able to give you some better guidance and suggestions.

hth
Jack

Share this post


Link to post
Share on other sites
Obligatory self pimpage.

That might be more than you are looking for, though; that's a lobby server which lets many people connect to one place and arrange games, not just an individual game. If that is what you want to do, there is a sample game (Bridge) included in the source download.

Basically what you need is (a) a server, and (b) a client. These can both be in the same program with a switch to decide which mode you're in. The server needs to keep track of the game state and transmit it to the clients, and it needs to process actions made by the clients and modify the gamestate. Clients need to be able to read the game state and transmit actions.

As far as network protocol is concerned, you will need message based communication (either through UDP or through a messaged TCP library – more shameless self promotion) and you will almost certainly need broadcast capability on your server.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!