Article Preview
Buy Now
| Print: | |
| PDF: |
From Scratch
From Scratch: Groups And Whispers In TanGram
Issue: 3.6 (July/August 2005)
Author: William Leshner
Author Bio: William Leshner has spent a good deal of the last several years having a blast building REALbasic applications, utilities, and plugins. His REALbasic accomplishments include KidzMail, KidzLog, and SQLiteManager. You can also check out his REALbasic weblog at
Article Description: No description available.
Article Length (in bytes): 11,736
Starting Page Number: 40
RBD Number: 3619
Resource File(s):
3619.sit Updated: Monday, July 25, 2005 at 11:27 AM
Related Web Link(s):
http://www.rbgazette.com/
Known Limitations: None
Excerpt of article text...
Introduction
This is the third (and final) article about designing and building a networked version of TanGram, a game in which players drag around polygonal shapes and arrange them to make pictures. As you may recall from the two previous articles, I have been adding networked play to the original TanGram application that we built over six earlier articles in this column. In this article I will wrap up TanGram once and for all by implementing the ability to automatically gather up and display a list of all the players in a TanGram network group. This is functionality we would get for free if we used the AutoDiscovery class, but I decided to use EasyUDPSocket and not the AutoDiscovery class to implement TanGram's networking. So if we want a group list, we will have to write it ourselves.
Another feature I intend to implement in this article is the ability to whisper to individual players. Whispers are messages to a single player that are not seen by the entire group. It turns out to be quite simple to add such a feature, as we will see.
...End of Excerpt. Please purchase the magazine to read the full article.
Article copyrighted by REALbasic Developer magazine. All rights reserved.
|







