You are here:About>Computing & Technology>C / C++ / C#> Projects> Star Trek Conversion> Star Trek Game Conversion Project
About.comC / C++ / C#
Newsletters & RSSEmail to a friendSubmit to Digg

Star Trek Game Conversion Project

From David Bolton,
Your Guide to C / C++ / C#.
FREE Newsletter. Sign Up Now!

Converting Tiny Trek from Tiny Basic to C

Screenshot of Game
Previous | Next >>
Project One- Converting Tinytrek from Tiny Basic to C

Tiny trek is a command line Star Trek game written in Palo Alto Tiny Basic. This is a very old dialect of Basic, written more to fit in a small amount of ROM and RAM ( 8 Kilobytes) with less concern for the developer and readability. Given that it dates from June 1976, there are a few things to understand before starting this project. Star Trek games like this were very popular in the mid 70s to late 80s even after the first home computers appeared and what we'd call proper games from about 1982 on.

In this project, I started with Tiny Trek in Basic, rewrote it in C, and in the future will make it Object Oriented (but still a command line game) in C++ and then convert it into a simple GUI game in C# and MFC Win 32 game in C++. My intention is not to enhance the game but to get it working and explain how I did it.

You can download the zip file in the project folder and the C Source. The zip file contains information about Tiny Basic, including an interpreter, the listing of the game- some 150- lines and a bit of documentation on both.

Disclaimer. The original zip file is originally as it's packaged so if it crashes your PC or causes your harm, it's nothing to do with us!

On the next page Converting by cut and paste

  1. Converting Tiny Trek from Tiny Basic to C
  2. Learn About Tiny Basic and Converting it to C
  3. How I Approached the conversion from Basic to C
  4. Notes about the Original code
  5. How to use Arrays (and How Not to!)
  6. What Each Variable Holds
  7. Game Architecture Changes
  8. Final Thoughts

Previous | Next >>

 All Topics | Email Article | | |
Advertising Info | News & Events | Work at About | SiteMap | Reprints | HelpOur Story | Be a Guide
User Agreement | Ethics Policy | Patent Info. | Privacy Policy©2008 About, Inc., A part of The New York Times Company. All rights reserved.