Mail Archives: djgpp/1999/04/27/06:37:21
moshe writes:
> while (!key[1]){
> if (key[72] && (Yi<SCREEN_H-4)) {Yi=Yi+5;}
Please don't hardcode those key numbers. Not only does this make your
code less readable than using the KEY_* defines, but it is a certain
way to make sure that your program won't work with any future versions
of Allegro.
> when i'm compile it its oll ok but in run time allegro kick my
> program off does some1 know the problem?
It is impossible to say just from the fragment of code that you
posted. Please give a complete (but small) program that we can
actually compile and run.
Shawn Hargreaves.
- Raw text -