home *** CD-ROM | disk | FTP | other *** search
/ C++ Games Programming / CPPGAMES.ISO / fgl / fglight / expas.arj / TEMP / 09-08.PAS < prev    next >
Pascal/Delphi Source File  |  1995-01-20  |  604b  |  33 lines

  1. program main;
  2. uses fgmain, fgflic, fgmisc;
  3.  
  4. var
  5.   frames : integer;
  6.   status : integer;
  7.   context : array [1..16] of byte;
  8.  
  9. begin
  10.   fg_initpm;
  11.   fg_setmode(19);
  12.  
  13.   status := fg_flicopen('GLASS.FLI'+chr(0),context);
  14.   if (status = 0) then
  15.   begin
  16.     repeat
  17.     begin
  18.       frames := fg_flicplay(context,1,1);
  19.       fg_waitkey;
  20.     end;
  21.     until (frames = 0);
  22.     fg_flicdone(context);
  23.   end;
  24.  
  25.   fg_setmode(3);
  26.   fg_reset;
  27.  
  28.   if (status = -1) then
  29.     writeln('GLASS.FLI not found.')
  30.   else if (status = -2) then
  31.     writeln('GLASS.FLI is not an FLI or FLC file.');
  32. end.
  33.