Historical allegro, Revision 2

Allegro and euphoria - a game programming kit

Allegro is a game programming library, which allows the use of sprites, maps, graphics, joystick controls and so on to create games. It will not create a agame for you, you still need your imagination to do that.

The version of Allegro I will use here is version 4.2, based on Ray Smith's excellent, and mostly complete library. There are one or two bits and pieces where I have had to add additional libraries to get the full functionality, for instance

  • mp3 s - while allegro comes with almp3.dll, this dll will not work with allegro 4.2, and unless you regress to 4.0 then you cannot use it. I have therefore created a fmod wrapper (loosely based and much mangled from a wrapper written by Aku), which will allow the playing of mp3 music and samples (and incidentally mods and xms - but jgmod can already do this) - the fmod.dll is version 3.6, which is frankly ancient, but it does it's job.
  • the joystick - while allegro is supposed to support the use of the joystick, Ray could never get it to work - and neither can I - I therefore added in another joystick reading function based on the joystick wrapper created by Mic

I have also rewritten parts of the library with the primary focus on Phix - I have concentrated on Phix modifications for the main libraries, but have put untested ifdefs - by all means try with Eu, but I won't be re writing it for Eu - by all means feel free to do so yourself.

I have also decided not to use the euallegro 5 library, mostly because the demos are very sparse - I have modified it's libraries for Phix, and the demos are running as they look like they should, and I am sure that one day I will revisit it. It is highly unlikely that I, or even you, will run out of functions for the foreseeable future, and be able to create some great games with the 4.2 library.

To see some of the possibilities that can be achieved with allegro, go to http://allegro.cc - there are a lot of documents and examples there too. Other resources would be the allegro wiki - http://wiki.allegro.cc, and the allegro home page http://liballeg.org/.

The organisation of this article - I will arrange the pages as chapters, indexed from here, so hopefully you can read them much like a book, and referencing them as you need to. The first chapter is about the installation of the 'pack' with lots of demos to get you started, and hopefully whet your whistles for the enthralling world of game programming.

  1. Chapter 1 - installing the allegro pack Install allegro 4.2 for euphoria

Search



Quick Links

User menu

Not signed in.

Misc Menu