Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

simple Allegro example (Announce)

posted by Rugxulo Homepage, Usono, 03.05.2008, 22:25
(edited by Rugxulo on 03.05.2008, 22:46)

> > Why not fix Allegro instead?
>
> Possible in theory ... I'm still waiting to see at least one stable
> Allegro-based app.

mono.c May 14, 2004

"My own ScreenHack 2004 entry, which won the contest. The whole source code sits in an 80x25 screen (2000 bytes). It's a shoot 'em up, featuring 5 monocolor sprites, scrolling starfield, one repeating level, chasing mines, unlimited number of player bullets, and more... Keep playing to improve the high score! Requires Allegro to compile." -- Angelo Mottola

http://www.ecplusplus.com/index.php?page=downloads

EDIT: Okay, I thought it looked cool even though I never played it (well, I couldn't figure out how to shoot, heh). But don't ask me why, it seems that %DJDIR%/include/allegro/keyboard.h says "__allegro_KEY_UNKNOWN3 = 109", which makes no sense. So, in MONO.C, just change "109" to "75" (spacebar), and it should work okay (tested successfully in DOSBox). Oh, and use GNU indent if you want clearer code. ;-)

http://rugxulo.googlepages.com/mono.zip (orig. + tweaked src + DOS .EXE, 234k)

 

Complete thread:

Back to the forum
Board view  Mix view
22632 Postings in 2109 Threads, 402 registered users, 455 users online (0 registered, 455 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum