ZAS is a 16-bit environment old-school adventure game on the Windows 3.x terminal built with the TurboC/C++ compiler (v3.2.2, 1992).
The program uses the ancient 1989 C++ 2.0 (C with Classes and more), the immediate precursor to the ISO/IEC 14882-1998 standard named C++98 which was later amended by C++03, C++11, C++14, C++17 and the latest as of this commit, C++20. We built what was our CS assignment as High School sophomores, on Borland's Turbo C/C++ IDE for hobbyists in the DOSBox emulator for 16-bit Windows. Around the same time of C++ 2.0 being popular, the pop-culture icon in the video game industry, Doom for MS-DOS was released.
...but why C++ 2.0? Because retro is cool! see also
The project documentation can be found in the docs
folder.
The 16-bit executable depends on DOSBox to run on modern 64 bit systems (variable OS) and requires it to be installed first. The next step involves cloning this repository, mounting the bin
directory as legacy drive C
on DOSBox terminal, switching prompt to C:\>
and running ZAS.EXE
. I've cut down the complexity and prepared the executable binary before hand to avoid rebuilding the code using the TC compiler.
Please note that the executables anywhere in this repository are not stand-alone and require the BGI graphics library with the path
C:\TURBOC3\BGI\
relative to the directory mounted asC
(here,./bin
) as assigned in the source. Following a wrong mount path, aBGI Error
is encountered at the console and the program fails to load.
- Install DOSBox 0.74 from dosbox.com.
- Run DOSBox.
- Assuming you cloned the repository and the path to the repository root is
C:\path\to\repo\root
, run the following at theZ:\>
prompt and switch toC:
. Note the appended\bin
:
mount c C:\path\to\repo\root\bin
c:
- Then execute
ZAS.EXE
to play the game:
zas
- Install DOSBox 0.74.
sudo apt install dosbox
- Run DOSBox.
- Assuming you cloned the repository and the path to the repository root is
/path/to/repo/root
, run the following at theZ:\>
prompt and switch toC:
. Note the appended/bin
:
mount c /path/to/repo/root/bin
c:
- Then execute
ZAS.EXE
to play the game:
zas
- Install DOSBox 0.74 from dosbox.com or use brew:
brew install dosbox
- Run DOSBox.
- Assuming you cloned the repository and the path to the repository root is
/path/to/repo/root
, run the following at theZ:\>
prompt and switch toC:
. Note the appended/bin
:
mount c /path/to/repo/root/bin
c:
- Then execute
ZAS.EXE
to play the game:
zas
Out of sheer curiosity, if you feel like compiling the source code from scratch and see how things worked out for us, I've included the TurboC IDE binary labelled TC.EXE
in bin/TCC
. Follow the steps to get the prehistoric IDE up and running:
- Install and run DOSBox 0.74 (refer steps above).
- Assuming you cloned the repository and the path to the repository root is
/path/to/repo/root
orC:\path\to\repo\root
, run the following at theZ:\>
prompt and switch toC:
. Note the appended/bin
and\bin
:
Unix:
mount c /path/to/repo/root/bin
c:
Windows:
mount c C:\path\to\repo\root\bin
c:
cd
into theTCC
directory and executeTC.EXE
:
cd tcc
tc
File
➜Open
the sourceC:\TURBOC3\SOURCE\ZAS.CPP
in a new window ➜Run
➜Run (Ctrl + F9)
. This will build the 16-bit binary in the pathC:\TURBOC3\SOURCE
and run it on the terminal. An additional binary data file labelledPLAYPROF.DAT
will be created which will store the user profiles and player statistics.
Contributions are closed. This is an archived project and we treat the codebase as an artefact.
GPL License
This project is licensed under the GNU General Public License v3.0.