The Oregon Trail
A TUI game heavily based on MECC's 1990 The Oregon Trail
Samples
More
Features
- Written in C
- Save and load progress
- Settings menu
- Colorful
- Mini-games
- Blackjack
- Cross platform
I quite adore the simplicity of oldy video games such as MECC's 1998 The Oregon Trail. That's why I attempted my own version. At the time of writing, it is not even close to completion, but I didn't that to happen.
Implementing baseline, framework-related features such as TUI borders and selection was quite enjoyable. This was my first large C-based project, so, on a recommendation, I used CMake, a popular build system for C/C++.
I wanted to stay away from cross platform input libraries such as ncurses, mostly for educational purposes. However, this meant I had to research and account for the various querks of Windows and Unix (via termios); I would not recommend doing so yourself.
For the screen figures shown in Samples, I wrote a seperate program to capture console output and convert it to HTML. Given a PID, it uses the Win32 API to attach to the console and gather screen buffer text and styles, and cursor position (however, I could not get GetConsoleCursorInfo to cooperate; it always returned an access denied error. If anyone suspects the reason, I am most curious to know).