• Stars
    star
    106
  • Rank 325,871 (Top 7 %)
  • Language
    C
  • Created almost 2 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

C port of Ken Thompson's Space Travel

Space Travel

This is a C port of Ken Thompson's Space Travel, ported from PDP-7 assembly. The original source files are in src/cmd/st*.s in the pdp7-unix repository.

Install

The SDL2 library is required.

Run make to build st.

Run make install to install to /usr/local/bin.

Controls

Key Action
1 Quit
2 New game
3 Thrust down
4 Thrust up
5 Yaw right
6 Yaw left
7 Scale up
8 Scale down

You can also use the arrow keys for yaw and scale.

Gameplay

For controls, there were several buttons: jet forward, jet back, turn left, turn right; go up scale on the display, go down scale. The acceleration of the ship was fixed, but it scaled with the display scale--it was thus fixed in terms of pixels/sec/sec. Normally the ship was in the center of the screen and always pointed up; the display showed the plan view of the solar system, so that the "rotate" controls rotated the solar system around you on the display.

No relativity; scale up enough and you travel to Pluto in a few seconds. But don't scale up too much, or you might not find the Solar System again without restarting.

The object of the game was simply to fly around, get into orbits, land. "Land" meant to cross the surface with a small enough speed.

Space Travel: Exploring the solar system and the PDP-7 by Dennis Ritchie

The current dominating attractor, scale, and landing status (L/CL for landed/crash landed) are displayed at the bottom. The moving dot on the line below the main view represents the horizontal velocity relative to the current dominating attractor.

More Repositories

1

languages

A graph of programming languages connected through compilers.
JavaScript
174
star
2

jawk

Awk for JSON.
Shell
39
star
3

ghget

A script to download files/directories from GitHub.
Shell
24
star
4

jify

JSON indexed file database/querying library/tool
TypeScript
24
star
5

todo

A simple, cross-platform todo application in C
C
23
star
6

base16-pygments

Python
14
star
7

sw

A stopwatch program for the terminal.
Rust
14
star
8

tisk

Alternative TypeScript compiler CLI
JavaScript
13
star
9

item.tf

A website for finding and getting TF2 items through various methods
Python
11
star
10

compilers

A list of compilers with some metadata.
CoffeeScript
11
star
11

vscode-html-format

A Visual Studio Code extension for formatting HTML documents.
TypeScript
10
star
12

html-format

A Node.js library for formatting HTML strings
JavaScript
7
star
13

pip-vid

PiP video browser extension
JavaScript
6
star
14

synpy

A Python library for keyboard and mouse simulation
Python
4
star
15

equation

A fast equation editor in CoffeeScript
JavaScript
4
star
16

simple-id

A Node.js library for generating short, user-friendly, random IDs.
JavaScript
4
star
17

redactor

Browser extension to redact social media posts that match word filters.
TypeScript
2
star
18

os-lock

Cross-platform file locking for Node.js
C
2
star
19

excelwriter

Excel writer for Node.js with chart and image support
C++
2
star
20

blog

CSS
2
star
21

webhelpers

Python
1
star
22

tic-tac-toe

Tic-tac-toe with AI and 2 player in C
C
1
star
23

illusion

An animated optical illusion
JavaScript
1
star
24

rollup-plugin-typescript

Third time's the charm.
TypeScript
1
star
25

anything

Anything
1
star
26

github-file-diff

A browser extension for viewing diffs of specific files and directories on GitHub. Chrome: https://chrome.google.com/webstore/detail/github-file-diff/lmhbkinmjbfihpkihjdhcagnigpklinh Originally made to explore https://github.com/apple-open-source/macos
JavaScript
1
star