views:

46

answers:

1

Hi, i'm trying to develop a simple multiplayer video game (2d) in C#, SDL.NET and obviously .NET. Two, or more player over internet, can control a car (class CAR) who move on the screen with X and Y. One PC is the server, others are client.

So, i think "The only value to 'pass' between Players are the value of variables X, Y, and someother 'state' variable". The graphics and other "stuff" must be accomplished from single client. What i need, i think, is only the Socket Class.

Does this approach is correct ? Someother advice or examples to show me ?

Thanks in advance

A: 

This is a bit of a high level answer but your question is pretty high level as well.

I'd suggest that the best place to start would be with the Microsoft DirectX website which covers all sorts of APIs and examples relating to implementing games. There's native support for drawing as well as the network libraries required for multiplayer interaction.

Here' a getting started guide on the Microsoft DirectX website

There also other alternatives. Unity is a nice framework which allows you to develop simulatenously for desktop, web and mobile such as iPhone and Android.

Brian Scott
I'm using SDL not directx!
stighy