Home
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Lego
Through
the Origin

Tutorials

This is a set of tutorials to get started with Revolution and object-oriented programming using the Transcript language.

The tutorials use Revolution 1.2, which is easy to get and is fully functional.  However, the current version is significantly different in its interface from version 1.2

If you want to see what it looks like now, and what the current version can do, you can download a demo version (30 days operational) from the Runrev site.

The tutorials start from zero, they only assume you have an analytical approach and some curiosity .

The tutorials do have a sequence, in that each relies on what was learned in the previous one.

List of tutorials:

Squares

The most boring program you have ever seen!  It computes the square of a number typed into a text field.

The goal is to show how to make a very simple program, to introduce the user interface, scripts and object-oriented programming.

The program itself is worthless, but that's not the point!  Only 10 lines of code.

Summary of the squares program

Cannon

A first go at graphics:  set the elevation and gunpowder of a cannon and see how far the cannonball flies.

Introduces graphic functions and debugging.  Only 43 lines of code.

Summary of the cannon program

Shootout! (in preparation)

A game for two players, based on the cannon of the previous tutorial.  Shows how to use movies and sound.

Conventions

In the tutorials I use colours and styles to mark these items:  key words and phrases that are important to the understanding of the program and its objects, emphasis for phrases that need to stand out from the rest of the sentence, menu selections like File—>Save As... to indicate you have to take an action, program code snippets that are Transcript code.

Larger code sections like entire handlers are presented in a box like this:

on StartUp

put empty into field "Number"

put empty into field "Square"

end StartUp

and use the default coloring of the Revolution interface.

Libraries

OK, these are not tutorials but collections of handlers that might come in handy.  I'll add to the list when I have something that's interesting and documented.

  1. Rotating polygons
    because you can rotate images in Revolution by setting their "angle" property, but you can't do the same with polygons.





next planned revision: 2006-11-30