Mail Archives: djgpp/1999/04/27/03:20:46
From: | moshe <mosdoron AT netvision DOT net DOT il>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | ALLEGRO KEY[]
|
Date: | Sun, 25 Apr 1999 15:19:55 +0300
|
Organization: | NetVision Israel
|
Lines: | 17
|
Message-ID: | <3723086A.F27609C9@netvision.net.il>
|
NNTP-Posting-Host: | ras6-p7.jlm.netvision.net.il
|
Mime-Version: | 1.0
|
X-Trace: | news.netvision.net.il 925129335 12221 62.0.163.135 (26 Apr 1999 12:22:15 GMT)
|
X-Complaints-To: | abuse AT netvision DOT net DOT il
|
NNTP-Posting-Date: | 26 Apr 1999 12:22:15 GMT
|
X-Mailer: | Mozilla 4.05 [en] (Win95; I)
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
hi i have the following problem into my progarm. i use this code to
move
object by user arrows:
while (!key[1]){
if (key[72] && (Yi<SCREEN_H-4)) {Yi=Yi+5;}
if (key[80] && (Yi>4)) {Yi=Yi-5;}
if (key[77] && (Xi<SCREEN_W-4)) {Xi=Xi+5;}
if (key[75] && (Xi>4)) {Xi=Xi-5;}
blit(color[2],screen, 0,0, Xi,Yi, 5,5);
rest(200);
}
when i'm compile it its oll ok but in run time allegro kick my program
off does some1 know the problem?
- Raw text -