Allegro 5 Tutorials

Allegro is a cross-platform game development library written in C. The latest version, Allegro 5, is still in development, and the API is subject to change. That said, most of the development lately has been additions, and not changes. I would recommend you learn this version if you have not used previous versions of Allegro.

This page is here for those who had bookmarked it and are returning to it. All the documentation here has been relocated to the Allegro Wiki, to ensure that it stays up-to-date. The links below will take you to the wiki page for each article.

Visit http://alleg.sf.net for more information about Allegro.
The documentation can be found at http://docs.liballeg.org.
Monster 2 is an awesome example of what you can do with the Allegro library.

Screenshot

1. Installing Allegro 5 svn Using cmake

Learn how to obtain and compile the latest version of Allegro 5. Currently only details how to use gcc in Windows and Linux.

Screenshot

2. TrueType Fonts and Display Modes

Learn how to set up a display for graphical elements, and how to output text onto that display using TrueType fonts.

Screenshot

3. Timers

Learn how to use Allegro 5's timers to make your program run at the same speed on every computer.

Screenshot

4. Introduction to Bitmaps and Keyboard Input

Learn how to load and display bitmap images, and how to make the keyboard routines do your bidding.

Screenshot

5. Basic Mouse Input and Bitmap Flags

Learn how to process mouse events, and how to use the bitmap drawing flags to flip

Screenshot

6. Blending and Display Features

Learn how to give your game a modern appearance with blending. Also, learn how to make your program's window resizeable.

Screenshot

7. High Level Drawing Primitives and Framerate Calculations

Learn how to draw basic shapes such as squares, circles, lines, etc. Also, we will find out exactly how many frames are being drawn each second.