Article Preview
Buy Now
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
Article Description: No description available.
Article Length (in bytes): 11,862
Starting Page Number: 40
Article Number: 3518
Resource File(s):
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.