home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume25 / letters / config.h next >
Encoding:
C/C++ Source or Header  |  1992-01-02  |  1.7 KB  |  65 lines

  1. /*
  2.  * configurable stuff in letters.  Most things here probably shouldn't need
  3.  * to be changed but are here because someone may want to tinker with this
  4.  * stuff to affect the way it performs on different systems.  The stuff
  5.  * most likely to require changes is at the top of the file.
  6.  */
  7. #ifndef DICTIONARY
  8. #define DICTIONARY "/usr/dict/words"
  9. #endif
  10.  
  11. #ifndef HIGHSCORES
  12. #define HIGHSCORES "letters.high"
  13. #endif
  14.  
  15. /*
  16.  * probably best to leave these so it's the same everywhere.  Otherwise,
  17.  * anyone with an xterminal is likely to get higher scores.
  18.  */
  19. #ifdef AMIGA
  20. #define SCREENLENGTH    22
  21. #else
  22. #define SCREENLENGTH    23
  23. #endif
  24. #define SCREENWIDTH    80
  25.  
  26. /*
  27.  * initial delay in usecs before words move to the next line
  28.  */
  29. #define START_DELAY    750000
  30.  
  31. /*
  32.  * this implements "graduated" (non-linear) decreasing delay times:
  33.  * each level, delay gets reduced by smaller and smaller amounts
  34.  * (eventually, when delay would get below PAUSE, it is simply set to PAUSE)
  35.  *
  36.  * if you change START_DELAY or DELAY_CHANGE, DECEL must be tuned carefully,
  37.  * otherwise DELAY(lev) will drop suddenly to PAUSE at some point
  38.  */
  39. #define DELAY_CHANGE    60000
  40. #define DECEL        1200
  41. #define DELAY(lev)    ( ((lev)*DECEL > DELAY_CHANGE/2) ? PAUSE :\
  42.               (START_DELAY-(DELAY_CHANGE-(lev)*DECEL)*(lev)) )
  43.  
  44. /*
  45.  * number of words to be completed before level change
  46.  */
  47. #define LEVEL_CHANGE    15
  48.  
  49. /*
  50.  * length of pause before reading keyboard again (in usecs).  There has to
  51.  * be some pause.
  52.  */
  53. #define PAUSE        10000
  54.  
  55. /*
  56.  * This is how likely it is that another word will appear on the screen
  57.  * while words are falling.  there isa 1/ADDWORD chance of a new word
  58.  */
  59. #define ADDWORD        6
  60.  
  61. /*
  62.  * length of words in bonus round
  63.  */
  64. #define BONUSLENGTH    10
  65.