Mail Archives: djgpp/1998/03/24/20:00:56
From: | tackmast AT aol DOT com (TackMast)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | graphics and allegro
|
Date: | 24 Mar 1998 04:40:48 GMT
|
Lines: | 43
|
Message-ID: | <1998032404404800.XAA26866@ladder01.news.aol.com>
|
NNTP-Posting-Host: | ladder01.news.aol.com
|
Organization: | AOL http://www.aol.com
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
i'm making my first game, and when i was making the title screen + select
screen i compiled it and got a million errors. after spending a long time
trying to track them down i wrote this program :
#include <allegro.h>
#define selecto 4;
main()
{
BITMAP *picture;
RGB *pal;
int allegro_init();
int install_keyboard();
int install_timer();
allegro_init();
install_keyboard();
install_timer();
set_gfx_mode(GFX_AUTODETECT, 320, 200, 0, 0);
clear(buff);
picture = load_bitmap("bmps[selecto].dat", pal);
blit(picture, screen, 0, 0, 0, 0, 320, 200);
readkey();
return 0;
}
to try to find out what's causing the error. when i compiled this program, i
got no errors and it was made into an .exe file. when i ran the file, the
screen went black and when i hit a key it exited(like it was supposed to). what
did i do wrong???
_____ _____
/ ___| | |
| | | ___|
\ \ | |
\ \ uper | | rogrammer
___ / / |__|
- Raw text -