Skip to content

Allegro Vivace

SiegeLord edited this page May 15, 2022 · 44 revisions


  1. Introduction
  2. Basic game structure
  3. Graphics
  4. Input
  5. Sound
  6. Gameplay
  7. Epilogue


This tutorial aims to introduce you to cross-platform game programming in C/C++ using Allegro.

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 C/C++ programming and have a compiler set up with Allegro installed. If not, read the Quickstart first.

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.

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 ▶