Welcome to the home page for the allegro.plt package. This page will be dedicated to the promotion and community surrounding allegro.plt.
allegro.plt is a package for drscheme that lets you take advantage of the multimedia abilities of your pc, namely graphics, sound, keyboard, and mouse handling. allegro.plt is built on top of a C library also named Allegro so it is very fast.
Example code: show the mouse on the screen
(require (prefix image- (planet "image.ss" ("kazzmir" "allegro.plt" 2 3))))
(require (prefix mouse- (planet "mouse.ss" ("kazzmir" "allegro.plt" 2 3))))
(require (planet "util.ss" ("kazzmir" "allegro.plt" 2 3)))
(require (planet "keyboard.ss" ("kazzmir" "allegro.plt" 2 3)))
(easy-init 640 480 16)
(game-loop
(lambda ()
(keypressed? 'ESC))
(lambda (screen)
(let ((x1 (- (mouse-x) 10))
(y1 (- (mouse-y) 10))
(x2 (+ (mouse-x) 10))
(y2 (+ (mouse-y) 10)))
(image-rectangle-fill screen x1 y1 x2 y2 (image-color 255 255 255))))
(frames-per-second 30))
(easy-exit)
News
** 9/31/2007
Use the runtime path library to make creating executable easiert.
** 5/6/2007
Moved the internal libraries around to make it easier to build stand-alone executables.
** 1/14/2007
Fixed a bug with (save) and re-uploaded allegro.plt 2.1. Also updated the documentation a little bit. I uploaded a few screenshots, one of each game so far on the left.
** 1/2/2007
allegro.plt 2.1 is ready to be downloaded. Changelog is
* Provide the image? predicate
* Allow make-world to create a graphics context using non-default parameters
* Add 'hdindex' file for HTML docs
* Add i386 macosx support
** 12/25/2006
Added raptor.ss and pong.ss
** 12/24/2006
This site is created and allegro.plt 2.0 is ready to be downloaded.