Tiles--the tutorial program

This tutorial describes the development of a program called Tiles. The Tiles program displays three kinds of tiles, representing rock, paper, and scissors. Each tile also has a color associated with it: red, green, or blue.

The initial goal is simple: display three tiles, one of each kind, with their associated colors. To avoid having to concentrate on the drawing aspect of the program, each tile is represented by a simple geometric shape:


Each step of this tutorial will show you how to add functionality to the Tiles program, as follows:

  1. Building a document component that displays the three tiles
  2. Allowing the user to select a specific tile using the mouse
  3. Causing a tile to change color--for example, from red to green to blue back to red--whenever the user clicks on it
  4. Allowing the user to select a single tile
  5. Adding the Tiles menu with color choices (the color is applied to the currently selected tile) and with items for adding new tiles to the document component
  6. Allowing the user to move tiles using the mouse
  7. Allowing the user to cut, copy, and paste selected tiles between Tiles documents or into another Presentation framework document that can embed models
  8. Allowing the user to drag a color from the ColorChooser tool onto any tile

[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker