https://github.com/mohd-akram/st Skip to content Toggle navigation Sign up * Product + Actions Automate any workflow + Packages Host and manage packages + Security Find and fix vulnerabilities + Codespaces Instant dev environments + Copilot Write better code with AI + Code review Manage code changes + Issues Plan and track work + Discussions Collaborate outside of code + Explore + All features + Documentation + GitHub Skills + Blog * Solutions + For + Enterprise + Teams + Startups + Education + By Solution + CI/CD & Automation + DevOps + DevSecOps + Case Studies + Customer Stories + Resources * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles + Repositories + Topics + Trending + Collections * Pricing [ ] * # In this repository All GitHub | Jump to | * No suggested jump to results * # In this repository All GitHub | Jump to | * # In this user All GitHub | Jump to | * # In this repository All GitHub | Jump to | Sign in Sign up {{ message }} mohd-akram / st Public * Notifications * Fork 9 * Star 66 C port of Ken Thompson's Space Travel 66 stars 9 forks Star Notifications * Code * Issues 0 * Pull requests 1 * Actions * Projects 0 * Security * Insights More * Code * Issues * Pull requests * Actions * Projects * Security * Insights mohd-akram/st This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. master Switch branches/tags [ ] Branches Tags Could not load branches Nothing to show {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default View all tags Name already in use A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch? Cancel Create 1 branch 0 tags Code * Local * Codespaces * Clone HTTPS GitHub CLI [https://github.com/m] Use Git or checkout with SVN using the web URL. [gh repo clone mohd-a] Work fast with our official CLI. Learn more. * Open with GitHub Desktop * Download ZIP Sign In Required Please sign in to use Codespaces. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching Xcode If nothing happens, download Xcode and try again. Launching Visual Studio Code Your codespace will open once ready. There was a problem preparing your codespace, please try again. Latest commit @mohd-akram mohd-akram Add more comments about planet constants ... 7cfa61b Feb 5, 2023 Add more comments about planet constants 7cfa61b Git stats * 19 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time .gitignore Update .gitignore January 29, 2023 03:19 Makefile Add install target to Makefile January 29, 2023 03:03 README.md Add information about UI to README February 5, 2023 19:27 font.h Improve font digits January 31, 2023 20:22 st.c Add more comments about planet constants February 5, 2023 21:06 View code Space Travel Install Controls Gameplay README.md 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. About C port of Ken Thompson's Space Travel Topics game c unix space space-travel ken-thompson Resources Readme Stars 66 stars Watchers 2 watching Forks 9 forks Releases No releases published Packages 0 No packages published Contributors 2 * @mohd-akram mohd-akram Mohamed Akram * @sebras sebras Sebastian Rasmussen Languages * C 97.9% * Makefile 2.1% Footer (c) 2023 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.