I was digging through some old code and found this by Elias Pschernig from back in 1999. I only really had to change 1 line of code for this to be up to date with Allegro 4 (the textprintf line).

I just thought that this was a nice little gem that shows how to code large 2D tile scrolling maps for anyone looking for help in this area. This does it all, creates it's own bitmaps for the example, uses keyboard or mouse and has a really large map.

Hope this helps someone, I hate to see this kind of thing go to waste, it really helped me understand how to do it back then. (note: I doubt that Elias' email is still at geocities, but I left it in for kicks )

Edit: Oh yes, I also changed the mouse code so that when you press the left mouse button it acts more like you are dragging the map around (it was the opposite before). So now with the left mouse button clicked the map can be "dragged", which is kind of a kewl effect.

This new example really shows off the new Allegro. No keyboard needed, completely mouse controlled, re-sizable, and closed with the mouse properly with some very easy to use code. Allegro has come a long way since 1999.