User Tools

Site Tools


tutorials:startrek

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
tutorials:startrek [2016/10/16 10:07]
papa created
tutorials:startrek [2016/10/17 04:44] (current)
papa
Line 1: Line 1:
-5820    &"     INSTRUCTIONS" +**Star Trek/Space War** is a text-based strategy game inspired by the television series //Star Trek// and popular on minicomputers, mainframes, and early PCs in the 1970s and -80s. It was originally programmed in 1971 by high-schooler Mike Mayfield for the SDS Sigma 7 mainframe. The TWENEX version of the program is based on David Ahl's DEC BASIC port[*], which Ahl distributed under the name of //Space War// (file name ''SPACWR.BAS'').  
-5821    PRINT + 
-5822    &"THE GALAXY IS DIVIDED INTO AN 8,8 QUADRANT GRID" +The //Instructions// section below duplicates the original in-game help text, which Ahl adopted unchanged from Mayfield's source. In addition to adapting the text format, minor corrections have been made to spelling and punctuation. In the game, commands are selected by the number indicated in the headings below (this page's table of contents can serve as a quick command guide). 
-5823    &"WHICH IS IN TURN DIVIDED INTO AN 8,8 SECTOR GRID." + 
-5823    PRINT +There are two commands not documented below: 
-5824    &"THE CAST OF CHARACTERS IS AS FOLLOWS:" + 
-5830    &"<*> = ENTERPRISE" +  * **Command 8** -- to quit the game. 
-5840    &"+++ = KLINGON" +  * (Any other number) -- to display a short list of valid commands. 
-5850    &">!< = STARBASE" +  
-5851    & " *  = STAR" +===== Invocation ===== 
-5870    &"COMMAND 0 = WARP ENGINE CONTROL:" + 
-5880    &"  COURSE IS IN A CIRCULAR NUMERICAL       4  3  2" +To play //Star Trek//, log-in to your TWENEX account, enter ''BASIC'', then run the following commands: 
-5890    &"  VECTOR ARRANGEMENT AS SHOWN.             \ ^ /" + 
-5900    &"  INTEGER AND REAL VALUES MAY BE            \^/" +     OLD <PAPA.BASIC>SPCWR10.BAS 
-5910    &"  USED.  THEREFORE COURSE 1.5 IS         5 ----- 1" +     RUN 
-5920    &"  HALF WAY BETWEEN 1 AND 2.                 /^\" + 
-5930    &"                                           / ^ \" +===== Instructions ===== 
-5940    &"  A VECTOR OF 9 IS UNDEFINED, BUT         6  7  8" + 
-5950    &"  VALUES MAY APPROACH 9." +The galaxy is divided into an 8,8 quadrant grid which is in turn divided into an 8,8 sector grid
-5960    &"                                          COURSE" + 
-5970    &"  ONE WARP FACTOR IS THE SIZE OF" +The cast of characters is as follows
-5980    &"  ONE QUADRANT THEREFORE TO GET" + 
-5990    &"  FROM QUADRANT 6,5 TO 5,5 YOU WOULD" +   <*> = Enterprise 
-6000    &"  USE COURSE 3. WARP FACTOR 1" +   +++ = Klingon 
-6005    PRINT +   >!< = Starbase 
-6010    &"COMMAND 1 = SHORT RANGE SENSOR SCAN" +    *  = Star 
-6020    &"  PRINT THE QUADRANT YOU ARE CURRENTLY IN INCLUDING" + 
-6030    &"  STARSKLINGONSSTARBASESAND THE ENTERPRISEALONG" +==== Command 0 = Warp Engine Control ==== 
-6040    &"  WITH OTHER PERTINATE INFORMATION." + 
-6045    PRINT +Course is in a circular numerical vector arrangement as shown. 
-6046    &"COMMAND 2 = LONG RANGE SENSOR SCAN" + 
-6060    &"  SHOWS CONDITIONS IN SPACE FOR ONE QUADRANT ON EACH SIDE" +      4  3  2 
-6070    &"  OF THE ENTERPRISE IN THE MIDDLE OF THE SCANTHE SCAN" +       \ ^ / 
-6080    &"  IS CODED IN THE FORM XXX, WHERE THE UNITS DIGIT IS THE " +        \^/ 
-6090    &"  NUMBER OF STARSTHE TENS DIGIT IS THE NUMBER OF STAR-" +     5 ----- 1 
-6100    &"  BASES THE HUNDREDS DIGIT IS THE NUMBER OF KLINGONS." +        /^\ 
-6110    PRINT +       / ^ \ 
-6111    &"COMMAND 3 = PHASER CONTROL" +      6  7  8 
-6120    &"  ALLOWS YOU TO DESTROY THE KLINGONS BY HITTING HIM WITH" +      Course 
-6130    &"  SUITABLY LARGE NUMBERS OF ENERGY UNITS TO DEPLETE HIS " +Integer and real values may be used. Therefore course 1.5 is half way between 1 and 2. 
-6140    &"  SHIELD POWER KEEP IN MIND THAT WHEN YOU SHOOT AT HIM,+ 
-6150    &"  HE GONNA SHOOT AT YOUTOO!" +A vector of 9 is undefined, but values may approach 9. 
-6160    PRINT + 
-6161    &"COMMAND 4 = PHOTON TORPEDO CONTROL" +One warp factor is the size of one quadrantTherefore to get from quadrant 6,5 to 5,5 you would use course 3, warp factor 1
-6170    &"  COURSE IS THE SAME AS USED IN WARP ENGINE CONTROL" + 
-6180    &"  IF YOU HIT THE KLINGONHE IS DESTROYED AND CANNOT FIRE" +==== Command 1 = Short Range Sensor Scan ==== 
-6190    &"  BACK AT YOU IF YOU MISSYOU ARE SUBJECT TO HIS " + 
-6200    &"  PHASER FIRE." +Print the quadrant you are currently inIncluding starsKlingonsstarbasesand the Enterprisealong with other pertinant information
-6210    PRINT + 
-6211    &"  NOTE THE LIBRARY COMPUTER (COMMAND 7) HAS AN OPTION" +==== Command 2 = Long Range Sensor Scan ==== 
-6220    &"  TO COMPUTE TORPEDO TRAJECTORY FOR YOU (OPTION 2)." + 
-6230    PRINT +Shows conditions in space for one quadrant on each side of the Enterprise in the middle of the scanThe scan is coded in the form XXX, where the units digit is the number of starsthe tens digit is the number of starbasesThe hundreds digit is the number of Klingons
-6231    &"COMMAND 5 = SHIELD CONTROL" + 
-6240    &"  DEFINES NUMBER OF ENERGY UNITS TO BE ASSIGNED TO SHIELDS" +==== Command 3 = Phaser Control ==== 
-6250    &"  ENERGY IS TAKEN FROM TOTAL SHIP'S ENERGY.+ 
-6251    &"  NOTE THAT TOTAL ENERY INCLUDES SHIELD ENERGY." +Allows you to destroy the Klingons by hitting him with suitably large numbers of energy units to deplete his shield powerKeep in mind that when you shoot at himhe gonna shoot at youtoo
-6260    PRINT + 
-6261    &"COMMAND 6 = DAMAGE CONTROL REPORT" +==== Command 4 = Photon Torpedo Control ==== 
-6270    &"  GIVES STATE OF REPAIRS OF ALL DEVICES STATE OF REPAIR" + 
-6280    &"  LESS THAN ZERO SHOWS THAT THE DEVICE IS TEMPORARALY" +Course is the same as used in warp engine control. If you hit the Klingonhe is destroyed and cannot fire back at youIf you missyou are subject to his phaser fire
-6290    &"  DAMAGED." + 
-6300    PRINT +**Note**The library computer (Command 7) has an option to compute torpedo trajectory for you (Option 2). 
-6301    &"COMMAND 7 = LIBRARY COMPUTER" + 
-6310    &"  THE LIBRARY COMPUTER CONTAINS THREE OPTIONS:" +==== Command 5 = Shield Control ==== 
-6320    &"    OPTION 0 = CUMULATIVE GALACTIC RECORD" + 
-6330    &"      WHICH SHOWS COMPUTER MEMORY OF THE RESULTS" +Defines number of energy units to be assigned to shields. Energy is taken from total ship's energyNote that total energy includes shield energy
-6340    &"      OF ALL PREVIOUS LONG RANGE SENSOR SCANS" + 
-6350    &"    OPTION 1 = STATUS REPORT" +==== Command 6 = Damage Control Report ==== 
-6360    &"      WHICH SHOWS NUMBER OF KLINGONSSTARDATES,+ 
-6370    &"      AND STARBASES LEFT." +Gives state of repairs of all devices. A state of repair less than zero shows that the device is temporarily damaged
-6380    &"    OPTION 2 = PHOTON TORPEDO DATA" + 
-6390    &"      GIVES TRAJECTORY AND DISTANCE BETWEEN THE" +==== Command 7 = Library Computer ==== 
-6400    &"      ENTERPRISE AND ALL KLINGONS IN YOUR QUADRANT" + 
-6500    GOTO 230 +The library computer contains three options
-6+ 
 +=== Option 0 = Cumulative Galactic Record === 
 + 
 +Which shows computer memory of the results of all previous long range sensor scans. 
 + 
 +=== Option 1 = Status Report === 
 + 
 +Which shows number of Klingonsstardatesand starbases left
 + 
 +=== Option 2 = Photon Torpedo Data === 
 + 
 +Gives trajectory and distance between the Enterprise and all Klingons in your quadrant. 
 + 
 + 
 +===== Notes ===== 
 + 
 +[*] Minor incompatibilities between DEC BASIC and TWENEX's BASIC-10 required some modification of the source code: 
 + 
 +  * Arguments removed from calls to function ''RND'' 
 +  * Multiple colon-separated statements per line split into multiple single-statement lines. 
 +  * Semicolons inserted between items in ''PRINT'' statements.
tutorials/startrek.1476612448.txt.gz · Last modified: 2016/10/16 10:07 by papa