Mail Archives: djgpp/1998/01/25/12:00:35
>can someone give me an example on how I would make a flic start my game or
>program.
You just have to start the program, and then in some part of it call
the specific routine to display the fli. You can display it from
memory, if you previously loaded it or directly from disk.
Here's a small example. It will play the file fli_file.fli (There may
be a bug, I write this on-line)
#include <allegro.h>
int main(void)
{
allegro_init();
install_timer(); // I think you need this to play FLICS
set_gfx_mode(GFX_VGA,320,200,0,0);
play_fli( "fli_file.fli", screen, 0, NULL);
return 0;
}
Then, to see an example where a fli is played from memory, look the
file demo.c in the Allegro demo directory. Go to the main function,
and there, it should be in the first 30 or 40 lines.
- Grzegorz Adam Hankiewicz - gregorio AT jet DOT es - http://web.jet.es/gregorio
- Gogosoftware - http://web.jet.es/gregorio/gogosoftware
- Raw text -