Allegro.pas

Vivace

Tutorial index

Introduction

This tutorial aims to introduce you to cross-platform game programming in Pascal and Object Pascal using Allegro.pas.

In addition to teaching you the basics of Allegro's API, we'll have a look at some common concepts, patterns and pitfalls in program structure and game design.

As with most of this wiki, we'll assume you have some basic knowledge of Pascal and have the compiler set up with Allegro and Allegro.pas installed. If not, read the apropriate documentation first.  All the programs of this tutorial work with both Free Pascal an Delphi compilers.

Why 'vivace'?

This tutorial is based on an ancient (but brilliant) tutorial of the same name, written by George Foot, which is still available to read should you fancy seeing how Allegro used to look.  The Pascal translation has been done with permission.

Allegro, as you may know, is also a musical tempo marking - meaning fast, quick, lively. Vivace (vee-vah-chay) is the tempo marking just above allegro, and allegro vivace is even faster. You might see where we're going with this...

The conductor is now raising his baton, so you should probably click the below link.

Basic game structure ▶