|
From: Ivan C. G. <iva...@cm...> - 2010-11-11 17:45:03
|
Hi all, I"m interesting in the graphics library, I developed a
component to comunicate clients made in C# with a server made in Erlang
of realtime mode, specialy to make games, so, I'm new in this graphic
stuffs I have some people specialized in design developing I need some
help about to start a new project for example
If I give an interface that offer the posibility of move a caracter
through the screen and fires an event that sends the information to a
server and the server sends to all other clients the new position of
that caracter and other information about it, and fire other event in
those clients with the new information for that caracter you move in
other client.
to get more detail information, imagine that
public void Move(int, x, int y, int z)
{
// your graphics stuff here
// now you must to fire the event.
SendMove(CharacterName, x, y, z);
}
void SendMove(string CharacterName, int x, int y, int z)
{
erlangServerRequest1.Request(new object[] {" 'move_char' ",
CharacterName, x, y, z});
}
OnMove - sends the information to the server so in the other clients an
event is fired
void OnMove(string CharacterName, int x, int y, int z)
{
// your graphics stuff here for the guest character.
}
something like that is the idea.
Best.
|