Chatting with public messages
The most basic communication method in a virtual world is public chat channel. A public message is populated to all players within the same room. The public message mechanism is like people talking loudly in a room. All people can listen and join the conversation. However, when they leave the room, they cannot listen to the conversation anymore. This is exactly how public message behaves in a virtual world.
We are going to make a chat dialog for public chat. The chat is composited by two parties — the sender and the receiver. The sender is a client which speaks the message out loud. The receivers are the clients which ...
Get Flash Multiplayer Virtual Worlds now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.