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 21 in printed book and digital formats -- plus a one-year subscription (beginning with 22.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.5

COLUMN

From Scratch: Networked TanGram

Issue: 3.5 (May/June 2005)
Author: William Leshner
Author Bio: William Leshner has been programming for twenty-five years and programming Macs for fifteen. He has spent a good deal of the last several years building REALbasic applications, utilities, and plugins, including KidzMail, KidzLog, and SQLitePluginPro. You can also check out his REALbasic weblog at http://www.rbgazette.com/.
Article Description: No description available.
Article Length (in bytes): 11,862
Starting Page Number: 40
Article Number: 3518
Resource File(s):

Download Icon 3518.zip Updated: 2013-03-11 19:07:58

Related Web Link(s):

http://www.rbgazette.com/

Excerpt of article text...

Introduction

This is the second of three bonus articles about designing and building TanGram, a game whereby players drag around polygonal shapes and arrange them to make pictures. As you may recall from the previous article, I have decided to add networked play to the original TanGram application. In this article we will implement the functionality necessary for broadcasting game moves to everybody in the multicast group. We need to make a number of changes to our original TanGram code in order to accommodate the new functionality. This often happens in software development. You should always be prepared to rip code up and rebuild it if the result is a more flexible design.

Before I go any further, I must correct an omission from my previous article. Aaron Ballman kindly answered my many questions about UDP and the EasyUDPSocket class. I utterly failed to thank him publicly for that help, so I am doing that now.

Moving Around

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