home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / TOP / USR / SRC / wanderer2.t.Z / wanderer2.t / help.c < prev    next >
Text File  |  1988-11-23  |  5KB  |  118 lines

  1. /* From jason@uucp.aeras */
  2.  
  3. #include "wand_head.h"
  4.  
  5. char *help[]={
  6. "      **  W A N D E R E R  **      ", /* 0 */
  7. "    ===========================    ", /* 1 */
  8. "        by Steven Shipway          ", /* 2 */
  9. "How to play:                       ", /* 3 */
  10. " Collect all the treasure:    /$\\  ", /* 4 */
  11. "                              \\$/  ", /* 5 */
  12. " Then go through the exit:    Way  ", /* 6 */
  13. "                              out  ", /* 7 */
  14. "  h  Left       j  Down            ", /* 8 */
  15. "  k  Up         l  Right           ", /* 9 */
  16. "  1  Loud       q  Quit game       ", /* 10 */
  17. "  0  Quiet      !  Look at map     ", /* 11 */
  18. "  S  Save game  R  Restore Game    ", /* 12 */
  19. "  ?  Help mode  @  Center screen   ", /* 13 */
  20. "  ~  Jump level #  Switch mode     ", /* 14 */
  21. " nb: No level bonus for jumping.   ", /* 15 */
  22.  
  23. "This is you:  You are a spider.    ", /* 0 */
  24. "      o       (At least, that's    ", /* 1 */
  25. "     <|>      what you look like)  ", /* 2 */
  26. "                                   ", /* 3 */
  27. "The other items you will find are: ", /* 4 */
  28. "                                   ", /* 5 */
  29. "  ###     -=-                      ", /* 6 */
  30. "  ### and =-=    Solid rock        ", /* 7 */
  31. "                                   ", /* 8 */
  32. "  <O>   Time capsule (5 points,    ", /* 9 */
  33. "        +250 extra moves)          ", /* 10 */
  34. "   .                               ", /* 11 */
  35. "  . .   Passable earth (one point) ", /* 12 */
  36. "                                   ", /* 13 */
  37. " (*)   Teleport  (50 points for    ", /* 14 */
  38. " (*)              using it)        ", /* 15 */
  39.  
  40. "  /^\\   Boulder (falls down, other ", /* 0 */
  41. "  \\_/   boulders and arrows fall   ", /* 1 */
  42. "        off of it)                 ", /* 2 */
  43. "                                   ", /* 3 */
  44. "  <--     -->  Arrows              ", /* 4 */
  45. "  <-- and -->  (run left and right)", /* 5 */
  46. "                                   ", /* 6 */
  47. "  TTT   Cage - holds baby monsters ", /* 7 */
  48. "  III   and changes into diamonds  ", /* 8 */
  49. "                                   ", /* 9 */
  50. "  /$\\    (10 points)               ", /* 0 */
  51. "  \\$/    Money  (collect it)       ", /* 1 */
  52. "                                   ", /* 2 */
  53. "  -o-  Baby monster (kills you)    ", /* 3 */
  54. "  /*\\                              ", /* 4 */
  55. "                                   ", /* 5 */
  56.  
  57. "When a baby monster hits a cage it ", /* 0 */
  58. "is captured and you get 50 points. ", /* 1 */
  59. "The cage also becomes a diamond.   ", /* 2 */
  60. "                                   ", /* 3 */
  61. "  I   Instant annihilation         ", /* 4 */
  62. "  o                                ", /* 5 */
  63. "                                   ", /* 6 */
  64. " \\_       _/   Slopes (boulders    ", /* 7 */
  65. "   \\ and /     and etc slide off)  ", /* 8 */
  66. "                                   ", /* 9 */
  67. " }o{  Monster  (eats you up whole. ", /* 0 */
  68. " /^\\  Yum Yum yum..) (100 points)  ", /* 1 */
  69. "      (kill with a rock or arrow)  ", /* 2 */
  70. "                                   ", /* 3 */
  71. " Way  Exit -- Must Collect all the ", /* 4 */
  72. " out  treasure first. (250 bonus)  ", /* 5 */
  73. " /~\\  A new addition for version   ", /* 0 */
  74. " \\_X  2.2M . The balloon rises,    ", /* 1 */
  75. "      and is popped by arrows. It  ", /* 2 */
  76. "      does *not* kill you.         ", /* 3 */
  77. "                                   ", /* 4 */
  78. " OOO  Unrecognised symbol in map.  ", /* 5 */
  79. " OOO  This is probably a **bug** ! ", /* 6 */
  80. "                                   ", /* 7 */
  81. " ENVIRONMENT VARIABLES:            ", /* 8 */
  82. "                                   ", /* 9 */
  83. "   NEWNAME,NAME : Checked in that  ", /* 0 */
  84. "       order for the hiscore table ", /* 1 */
  85. "   NEWKEYS : Redefine movement keys", /* 2 */
  86. "       eg- 'hlkj' for default      ", /* 3 */
  87. "   SAVENAME : File used for saved  ", /* 4 */
  88. "       games.                      ", /* 5 */
  89. };
  90.  
  91.  
  92.  
  93. void
  94. helpme()    /* routine to show help menu. */
  95. {
  96.     int i = 0, i1 = 0, i2 = 0;  /* loop counters */
  97.     char *ptr;  /* pointer in array.. */
  98.     char ch;
  99.  
  100.     for(i1 = 0; i1 < 5; i1++)  /* times to show loop. */
  101.     {
  102.         for(i = 0; i < 16; i++)    /* show one menu. */
  103.         {
  104.             ptr = help[i2++];
  105.             move(i,0);  /* move to start of line. */
  106.             addstr(ptr);
  107.         }
  108.         move(i,0);  /* move to start of line. */
  109.         addstr("<return> to continue, <space> to exit");
  110.         refresh();    /* show on screen. */
  111.         ch = (char) getchar();    /* just for now, get anything. */
  112.         if(ch == ' ') /* if return or what ever.. */
  113.             break;  /* exit routine now. */
  114.     }
  115.     move(i,0);  /* move to start of line. */
  116.     addstr("                                        ");
  117. }
  118.