Special

Special Print Offer

Get the RBD Archive 6 printed book for FREE when you buy an Ultimate Combo printed back issue package! This perfect-bound book is over 300 pages and contains the full year 6 of RBD, including issues that were originally PDF-only. Normally this book sells for $50, but with this special offer you not only save 25% off the normal package price, you get the book included for free!

RBD Magazines

Supplies are limited, so take advantage of this offer before it goes away.

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