Star Trek game from the early 1970's era

ProjectName=Star_Trek_Mayfield_1972

I'm developing a Snap! version of an early 1970's game called Star Trek (based on the TV series)
It's all text based - here is a link to my blog on it

Instructions are at end of blog

This is a very famous early computer game and many variants were made. I even made quite a good real-time version for the BBC Micro but sadly I never kept hold of any of my floppy discs :frowning:

This version is intended to be as close as possible to the HP TSB 2000F BASIC version for the HP 2100 computer invented and written by Mike Mayfield

Current Snap! version 95% complete

Still to add
Ability to get computer to calculate photon torpedo trajectories- but not a priority as only quiche eaters need that :slight_smile:

To play in test mode - click the T(test) icon at top left - click N to go back to normal mode
image

In Test mode, galaxy is only 4x4, you always start with same configuration in quadrant 3,2- your shields a pre-set to 1000 so you won't get killed when encountering Klingons

In the proper version, the game starts with different layout/klingons/starbases

Also note, co-ords are Y then X with 0,0 being top left
Commands are
0 = SET COURSE
1 = SHORT RANGE SENSOR SCAN
2 = LONG RANGE SENSOR SCAN
3 = FIRE PHASERS
4 = FIRE PHOTON TORPEDO
5 = SHIELD CONTROL
7 = LIBRARY COMPUTER

Hints

  • Klingons (+++) will only fire at you if you move within a quadrant and/or fire at them
  • To move within a quadrant use Warp Factor <1
  • To update the computer galaxy map (command 7 option 0) you need to do LR scans as you move around
  • You have to move around to get damaged stuff fixed

Notable Snap! things in the project

An emulation of an old style VDU and using a BASIC PRINT statement to write to it
Handles using ; to supress EOL CR

image

Customs blocks to set/get cell values from 2D matrices

Custom block to read the keyboards and set the value the Snap! answer reporter returns
image

A rnd block that returns random number 0 to .999999999 that can be seeded

Some things are literal transcoding of BASIC commands - others are more native Snap! like

Green on black! I love it!

Photon torpedeos now working

image

waoh...cool!

Graphics changed to properly emulate the HP TSB 2000F version

But for playing around I've added a T(est) mode

image

See OP for details

The game is 95% complete (the missing bit isn't important at all)

You can get damaged now and you can win/lose the game.

Screenshot_85