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 2.6


From Scratch: More TanGram UI

Issue: 2.6 (July/August 2004)
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 and SQLitePluginPro.
Article Description: No description available.
Article Length (in bytes): 10,755
Starting Page Number: 40
Article Number: 2620
Resource File(s):

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

Related Link(s): None

Excerpt of article text...


This is the third of six articles in which we are building a puzzle game called TanGram. As you may recall from the previous articles, Tangram is a game where players drag around polygonal shapes and arrange them to make pictures. As a challenge, players are presented with pre-created pictures that they must recreate, and players can also save their own pictures to challenge their friends.

In this article we will finish the UI for manipulating puzzle pieces. We will also see how to save a picture to a file and how to read it back in. Using our file saving technology, we will create a starting position for our game pieces so that they are arranged in a particular pattern every time a player starts a new game.

Flipping And Rotating

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