Code Monkey home page Code Monkey logo

startrek's Introduction

STARTREK

For the APPLE II computer by W SANDER, January 1978

screenshoot

This is the source code of one of the oldest game for the Apple II and also one of the best text only STARTREK version one can play : it features animations and sounds !

Needs the INTEGER BASIC ROMS.
Note : despite being able to run it, reinette-II does not support sound and LinApple or AppleWin are recommended.

The original source embeded a binary routine at $3FA1 to play various sound effects, followed by some mysterious data :

3FA1-   A0 32       LDY   #$32  
3FA3-   A2 00       LDX   #$00  
3FA5-   8A          TXA  
3FA6-   18          CLC  
3FA7-   E9 01       SBC   #$01  
3FA9-   D0 FC       BNE   $3FA7  
3FAB-   8D 30 C0    STA   $C030  
3FAE-   E8          INX  
3FAF-   E0 03       CPX   #$03  
3FB1-   D0 F2       BNE   $3FA5  
3FB3-   88          DEY  
3FB4-   D0 ED       BNE   $3FA3  
3FB6-   60          RTS  
<some data following>

First, you have to load it from the monitor (CALL -151) using :

3FA1: A0 32 A2 00 8A 18 E9 01 D0 FC 8D 30 C0 E8
:E0 03 D0 F2 88 D0 ED 60 EB 60 C1 01 45 20 4E 5D
:B4 B4 B4 B4 B4 B4 B4 B4 5A 87 99 A2 A6 A9 AB AC
:5A 75 87 92 99 9E A2 A4 5A 6C 7C 87 8F 95 99 9D
:5A 68 75 7F 87 8D 92 96 5A 65 70 79 81 87 8C 90
:5A 63 6C 75 7C 82 87 8B 5A 62 6A 71 78 7E 83 87
:01

Then jump to basic by hitting CTRL-B and ENTER
Copy and paste the BASIC source code
and type RUN

Running 16K Startrek

If you have 16K Bytes or larger memory in your Apple, you will also
receive a "STARTREK" game tape. Load this program just as you did
the previous two, but before you "RUN" it, type in "HIMEM: 16384"
to set exactly where in memory this program is to run.
       -.-.-.-.-.-.-.-.-    APPLE II  STARTREK VERSION  -.-.-.-.-.-.-.-.-.-.-

             THIS IS A SHORT DESCRIPTION OF HOW TO PLAY STARTREK ON THE
       APPLE COMPUTER.
         THE UNIVERSE IS MADE UP OF 64 QUADRANTS IN AN 8 BY 8 MATRIX.
         THE QUADRANT IN WHICH YOU 'THE ENTERPRISE ' ARE, IS IN WHITE,
         AND A BLOW UP OF THAT QUADRANT IS FOUND IN THE LOWER LEFT
         CORNER.   YOUR SPACE SHIP STATUS IS FOUND IN A TABLE TO
         THE RIGHT SIDE OF THE QUADRANT BLOW UP.
            THIS IS A SEARCH AND DESTROY MISSION.   THE OBJECT IS TO LONG-RANGE
       SENSE FOR INFORMATION AS TO WHERE KLINGONS (K) ARE, MOVE TO THAT QUADRANT,
       AND DESTROY.
              NUMBERS DISPLAYED FOR EACH QUADRANT DENOTE:
                                          * OF STARS IN THE ONES PLACE
                                          * OF BASES IN THE TENS PLACE
                                          * OF KLINGONS IN THE HUNDREDS PLACE
           AT ANY TIME DURING THE GAME, FOR INSTANCE BEFORE ONE TOTALLY
      RUNS OUT OF ENERGY, OR NEEDS TO REGENERATE ALL SYSTEMS, ONE MOVES TO A
      QUADRANT WHICH INCLUDES A BASE, IONS NEXT TO THAT BASE (B) AT WHICH TIME
      THE BASE SELF-DESTRUCTS AND THE ENTERPRISE (E) HAS ALL SYSTEMS 'GO'
      AGAIN.

        TO PLAY:
       1.THE COMMANDS CAN BE OBTAINED BY TYPING A '0' (ZERO) AND RETURN.
        THEY ARE:
                     1. PROPULSION           2.REGENERATE
                     3. LONG RANGE SENSORS   4. PHASERS
                     5. PHOTON TORPEDOES     6. GALAXY RECORD
                     7. COMPUTER             8. PROBE
                     9. SHIELD ENERGY        10.DAMAGE REPORT
                     11.LOAD PHOTON TORPEDOES
       2.THE COMANDS ARE INVOKED BY TYPING 1HE NUMBER REFERING TO THEM
             FOLLOWED BY A 'RETURN'.
             A.IF RESPONSE IS 1 THE COMPUTER WILL ASK WARP OR ION AND
                    EXPECTS 'W' IF ONE WANTS TO TRAVEL IN THE GALAXY
                    BETWEEN QUADRANTS AND AN 'I' IF ONE WANTS ONLY
                    INTERNAL QUADRANT TRAVEL.
                    DURATION OF WARP FACTOR IS THE NUMBER OF SPACES OR
                    QUADRANTS THE ENTERPRISE WILL MOVE.
                    COURSE IS COMPASS READING IN DEGREES FOR THE DESI-
                    RED DESTINATION.
             B.A 2 REGENERATES THE ENERGY AT 1HE EXPENSE OF TIME.
             C.A 3 GIVES THE CONTENTS OF THE IMMEDIATE. ADJACENT QUADRANTS.
                    THE GALAXY IS WRAP-AROUND IN ALL DIRECTIONS.
             D.4 FIRES PHASERS AT THE EXPENSE OF AVAILABLE ENERGY.
             
             
             E.5 INITIATES A SET OF QUESTIONS FOR TORPEDO FIRING.
                    THEY CAN BE FIRED AUTOMATICALLY IF THEY HAVE
                    BEEN LOCKED ON TARGET WHILE IN THE COMPUTER
                    MODE, OR MAY BE FIRED MANUALLY IF THE TRAGECTORY ANGLE
                    IS KNOWN.
            F.6, 8 AND 10 ALL GIVE INFORMATION ABOUT THE STATUS OF THE SHIP
                    AND ITS ENVIRONMENT.
           G.9 SETS THE SHIELD ENERGY/AVAILABLE ENERGY RATIO.
           H.11 ASKS FOR INFORMATION ON LOADING AND UNLOADING OF
                    PHOTON TORPEDOES AT THE ESPENSE OF AVAILABLE ENERGY.
                            THE ANSWER SHOULD BE A SIGNED NUMBER. FOR EXAMPLE
                            +5 OR -2.
           I. 7 ENTERS A COMPUTER WHICH WILL RESPOND TO THE FOLLOWING
                   INSTRUCTIONS:
                           1. COMPUTE COURSE   2.LOCK PHASERS
                           3.LOCK PHOTON TORPEDOES
                           4.LOCK COURSE       5. COMPUTE TREJECTORY
                           6.STATUS            7. RETURN TO COMAND MODE
                   IN THE FIRST FIVE ONE WILL HAVE TO GIVE COORDINATES.
                   COORDINATES ARE GIVEN IN MATHMATICAL NOTATION WITH
                   THE EXCEPTION THAT THE 'Y' VALUE IS GIVEN FIRST.
                   AN EXAMPLE WOULD BE 'Y,X'
                   
                   COURSE OR TRAJECTORY:

                                   0
                                   |
                                   |
                                   |
                                   |
                   270-------------+---------------90
                                   |
                                   |
                                   |
                                   |
                                  180
   -.-.-.-.-.-.-.- THIS EXPLANATION WAS WRITTEN BY ELWOOD -.-.-.-.-.-.-.-.-
                           NOT RESPONSIBLE FOR
                                   ERRORS        

One year later, in January 1979, the program was renamed APPLETREK and modified to remove any reference to the Star Trek franchise :

  • DILITHIUM => TRILITHIUM
  • KLINGONS => KLARNONS
  • ENTERPRISE => ENDEAVOR

The binary portion of the game remained the same

startrek's People

Contributors

arthurferreira2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.