Unity 3D - Lidgren Demo Chat

Português

O componente para criação de clientes e servidores chamado Lidgren Gen3 pode ser integrado com a Unity 3D. Fiz um demo de um chat inspirado nas implementações dos exemplos do próprio componente Lidgren.

O demo e o pacote com o código fonte pode ser baixado na seção de "Anexos" no final desta página.

O exemplo de utilização da biblioteca Lidgren permite criar um servidor ou um cliente de chat. Uma vez instanciado um servidor de chat podemos instanciar também diversos clientes para se conectar ao servidor.

Imagens do programa gerado pela Demo:

Tela Inicial - aperte S para criar um servidor ou C para criar um cliente.


Tela Cliente - Aqui podemos configurar alguns parâmetros do cliente. Após configurado, podemos inicializa-lo apertando o botão "Start Client!". Depois para parar o seviço cliente, apertamos o mesmo botão novamente, que trocou o texto do botão para "Stop Client!".


Tela Servidor - Aqui podemos configurar alguns parâmetros do servidor. Após configurado, podemos inicializa-lo apertando o botão "Start Server!". Depois para parar o seviço servidor, apertamos o mesmo botão novamente, que trocou o texto do botão para "Stop Server!".



Sobre a Lidgren:

code.google.com/p/lidgren-network-gen3/
English

The component for creating clients and servers called Gen3 can be integrated with Unity 3D. I did a demo a chat implementation inspired in the examples of component.

Demo and source code package for Unity3D can be downloaded in the "Anexo" at bottom of this page.

This Lidgren's example lets you create a same server or a chat client. Once instantiated a chat server can also instantiate several clients to connect to the same server.

Images generated by the program Demo:

Home screen - press S to create a same server or C to create a customer.


Customer Screen - Here you can configure some parameters of the client. After setup, we can boot it by pressing the "Start Client". Then to stop the sevice client, we press the same button again, who changed the button text to "Stop Client".


Screen Server - Here you can configure some parameters of the server. After setup, we can boot it by pressing the "Start Server". Then to stop the sevice same server, we press the same button again, who changed the button text to "Stop Server".







About Lidgren:

code.google.com/p/lidgren-network-gen3/
ċ
LidgrenChatDemo-MMF-2011.unitypackage
(283k)
Mario Madureira Fontes,
22 de fev. de 2011, 01:31
ċ
LidgrenClientServerChat.zip
(6599k)
Mario Madureira Fontes,
22 de fev. de 2011, 02:04