Special

Clearance Sale!

We've been publishing for over five years now and it's time to clear out our inventory of back issues, so we're slashing prices!

RBD Magazines

Check out this amazing clearance sale of all our past issues. Missing some issues? This is a great time to complete your RBD collection. Save up to 40% off the regular price of our printed back issue packages. These prices are only good until the end of the year May 2008 and supplies are limited, so place your order today.

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