Special

Special Print Closeout!

We're clearing out the remainder of our print issues at fire sale prices -- as much as 75% off! Quantities are extremely limited and only available while supplies last. Hurry to take advantage of this one-time offer.

RBD Magazines

Once these printed back issues are gone, they are gone!

Article Preview


Buy Now

Print:
PDF:

From Scratch

From Scratch: Puzzles & Solutions

Issue: 3.1 (September/October 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, KidzLog, and SQLitePluginPro.
Article Description: No description available.
Article Length (in bytes): 10,801
Starting Page Number: 40
RBD Number: 3119
Resource File(s):

Download Icon 3119.sit Updated: Wednesday, September 15, 2004 at 4:28 PM

Related Link(s): None
Known Limitations: None

Excerpt of article text...

Introduction

This is the fourth 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 work on the puzzles and solutions features of TanGram. The idea is to present puzzles to the player in a small area next to the main playing area. A puzzle is a small, black colored version of a TanGram picture in which the individual pieces are indistinguishable. The player is supposed to recreate the puzzle in the main playing area using the large blue pieces. A "Show Answer" button is provided to reveal the solution (by outlining each piece of the picture). A "Next Puzzle" button shows the next puzzle in the series of puzzles. Let's get started.

The Plan

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

Article copyrighted by REALbasic Developer magazine. All rights reserved.


 


|

 


Weblog Commenting and Trackback by HaloScan.com