home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / games / sot.zip / SOT.C next >
Text File  |  1988-08-25  |  581b  |  38 lines

  1. /********** The Son of Tetris Project ************/
  2.  
  3. /* WRW  August '88  V1.0 */
  4.  
  5. /***************** Main file ********************/
  6.  
  7. #include <setjmp.h>
  8.  
  9. #include "sot.h"
  10.  
  11. /* Global data */
  12.  
  13. int        arena[BLW][BLH];   /* Where everything is stored */
  14. SHP_TYPE  *shp_lst;
  15. int        no_of_shapes;
  16. jmp_buf    end_game;
  17.  
  18.  
  19.  
  20. /* Main function */
  21.  
  22. main(int argc, char *argv[])
  23. {
  24.  
  25.   if (argc)
  26.     init_score(argv[0]);
  27.   init_shapes();
  28.   init_video();
  29.  
  30.   if (!setjmp(end_game))
  31.     game();
  32.  
  33.   end_video();
  34.   end_score();
  35.  
  36.   return 0;
  37. }  /* main */
  38.