Special

Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 17 in printed book and digital formats -- plus a one-year subscription (beginning with 18.1) so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview


Buy Now

Issue 3.6

COLUMN

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 http://www.rbgazette.com/.
Article Description: No description available.
Article Length (in bytes): 12,599
Starting Page Number: 40
Article Number: 3619
Related Web Link(s):

http://www.rbgazette.com/

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.

I highly recommend you download the project that accompanies this article. The explanation and code snippets will make much more sense when they can be seen in the context of the rest of the code. It might also be a good idea to go back and take a look at the previous two articles in this series, if you happen to have them handy.

...End of Excerpt. Please purchase the magazine to read the full article.