May 8, 2007
Allegro offers a wide range of multimedia use such as graphics, sound, keyboard, and mouse handling. It also provides a set of game utilities for some of the mechanics real-time games need. The Allegro package is based on a C library, also named Allegro, by Shawn Hargreaves.
The goal of the C library and consequently the scheme package is to make multimedia, especially games, very easy and straight-forward to program.
More information about the C library can be found here:
Where to start?
If you are just looking to write a game look at the game-chapter and graphics-chapter chapter. The allegro.plt package contains high-level and low-level mechanisms, but you don't need to be familiar with all of them to use it.
The Allegro package is quite large and I apologize in advance for any inconsistencies in this documentation. Please send any typos or other bugs in this documentation to email@example.com.
Allegro can be installed via planet. Either require a file from the distribution in mzscheme/drscheme
(require (planet "util.ss" ("kazzmir" "allegro.plt")))
Or download the allegro.plt file from the planet site and install it by hand
$ planet -f allegro.plt kazzmir X Y
Where X and Y is the version of the package such as 1 1 or 1 6.
The planet package comes with the underlying C library. On Windows and OSX this library is a prebuilt shared library( dll or dylib ). On UNIX/Linux the C library is built from source which could potentially take a few minutes to complete. During this time you will not see any indication of what planet is doing, but it should complete and be useable in the time it takes to get a cup of coffee.