Article Preview
Buy Now
COLUMN
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):
2620.zip Updated: 2013-03-11 19:07:58
Related Link(s): None
Excerpt of article text...
Introduction
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.