home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 19 / 019.d81 / t.periscope < prev    next >
Encoding:
Text File  |  1986-01-01  |  3.7 KB  |  212 lines

  1. **************************************
  2.  
  3.              PERISCOPE
  4.  
  5. **************************************
  6.  
  7.  
  8. By: Herman M. Stevenson, Jr.
  9.  
  10.  
  11.  
  12.   It's back!! The old time "shoot the
  13.  
  14. ships out of the water" game. And
  15.  
  16. guess what?  It's written without
  17.  
  18. sprites.  You can enjoy the game
  19.  
  20. and/or use it  as an example of the
  21.  
  22. techniques used.  Some of us are
  23.  
  24. traditionalist, although we may use
  25.  
  26. "up to date" programing tools, it's
  27.  
  28. sometimes nice to reminisce and do it
  29.  
  30. the old way.  Well, Periscope proves
  31.  
  32. that you can design a program that is
  33.  
  34. fun to play using traditional
  35.  
  36. programming methods.
  37.  
  38.  
  39.   Instructions for the game are
  40.  
  41. included in the program, but an
  42.  
  43. overview is given below.
  44.  
  45.  
  46.   First you are prompted - 'Do you
  47.  
  48. need instuctions? (y/n).' Answer yes
  49.  
  50. and you are told...
  51.  
  52.      The object of this game is to
  53.      sink as many boats as you can
  54.      with your 12 torpedos.  To do
  55.      it, you fire them from your sub
  56.      using 1 of the 6 tubes...
  57.  
  58.   The tubes are marked one through
  59.  
  60. six. Tubes two and five fire at 30
  61.  
  62. degree angles from the bow of the
  63.  
  64. sub. Tube two fires 30 degrees to the
  65.  
  66. left and five to the right.
  67.  
  68.  
  69.   Press any key to view the next
  70.  
  71. instruction page which tells you that
  72.  
  73. you get one bonus if you make over
  74.  
  75. 500 points. The bonus is an
  76.  
  77. additional 6 torpedos and 12 more
  78.  
  79. boats. Next, you are shown the
  80.  
  81. various types of boats with their
  82.  
  83. point values.
  84.  
  85.  
  86.   To start the game, it is necessary
  87.  
  88. that you enter the speed that you
  89.  
  90. desire. You can choose from one to
  91.  
  92. nine. Nine is the slowest, giving you
  93.  
  94. 16 boats. One is the fastest, so you
  95.  
  96. get 24 boats.
  97.  
  98.  
  99.   Enter your choice and start your
  100.  
  101. mission.
  102.  
  103.  
  104.  
  105.  If you desire to learn or review the
  106.  
  107. program structure, below are some
  108.  
  109. interesting points:
  110.  
  111.  
  112.    Line           Explaination
  113.    ====           ============
  114.  
  115.       5  In the print statement,
  116.            there is a reversed "H".
  117.            This is the same as
  118.            chr$(8) which puts the
  119.            keyboard in graphic mode.
  120.  
  121.      10  Pokes in the sound for voice
  122.            number one.
  123.  
  124.      15  Pokes in the sound for voice
  125.            number two.
  126.  
  127.      35  Randomly selects the order
  128.            of the boats that sail
  129.            across the screen.
  130.  
  131.      40  Checks to see when the score
  132.            goes over 500 to give you
  133.            your bonus torpedoes.
  134.  
  135.      50  Works in conjunction with
  136.            line 40. It stops you from
  137.            getting more than one
  138.            bonus.
  139.  
  140.      55  Makes sure line 35 only
  141.            selects up to six boats.
  142.  
  143.      60  Sets the limits on the
  144.            length of the game.
  145.  
  146.     65-
  147.      70  Print the score at the
  148.            bottom of the screen.
  149.  
  150.    100-
  151.     665  Print the six boats at the
  152.            top of the screen.
  153.  
  154.    900-
  155.     925  Checks to see if a torpedo
  156.            is in motion.
  157.  
  158.   2000-
  159.    4650  Print  out each of the six
  160.            torpedo paths as
  161.            selected by the GET
  162.            statment.
  163.  
  164.  
  165.   10070  The reversed "I" in the
  166.            print statement,
  167.            equivalent to CHR$(9),
  168.            resets the graphic shift
  169.            key.
  170.  
  171.  
  172.  
  173.   Notice in line 35, where the random
  174.  
  175. generator selects the next boat. The
  176.  
  177. generator selects from one to ten
  178.  
  179. boats, although there are only six
  180.  
  181. boats to choose from. This attribute
  182.  
  183. causes a very small delay in time so
  184.  
  185. that a no-miss firing pattern is
  186.  
  187. changed. This stops someone from just
  188.  
  189. pushing a number to sink a boat every
  190.  
  191. few seconds.
  192.  
  193.               ------
  194.  
  195.    This program is copyrighted by
  196.  
  197. PowerPlay magazine.  All rights to it
  198.  
  199. are reserved.  LOADSTAR has relieved
  200.  
  201. you from the burden of keying in this
  202.  
  203.     program.  For more complete
  204.  
  205. information about this program, refer
  206.  
  207. to the January 1986 issue of PowerPlay
  208.  
  209.              Magazine.
  210.  
  211. --------------------------------------
  212.