Allegro Examples

Have a look around!

Introduction • N-In-A-RowMoving SpritesSnake-FuTetris




If you're interested in some of oldschool Allegro's abilities, you should find this site relatively interesting.

N-In-A-Row
This section contains all three games written using my n-in-a-row algorithm. Tic Tac Toe, Connect Four, and Go-Moku are all listed here. It was relatively simple to write and is pretty easily reproduced by anyone out of first year computer science.
Moving Sprites
This section contains some samples of making sprites move around on the screen, both top-down and sidescroller. Hit detection is not demonstrated here, and will only be demonstrated in much later examples that are not yet created.
Snake-Fu
For those of you that have seen my Pascal code, I wrote a game like this once that failed pretty miserably. This is only a marginal improvement; it was meant only to test by-pixel hit detection.
Gem Slider
What will soon be written as a full-fledged Allegro game called Kouriku Snow, this is the ASCII version (but still uses some Allegro handling). When this game is re-written (probably after Tetris), it will have it's own section on S^2.




Examples provided require djgpp and Allegro graphics librarys.
All examples are free to be copied, plagiarized, and distributed.
-Michael Raymond Vendittelli