Wolfenstein 3-D in CGA by Frenkel.
First release:               5-May-2009.
Second and current release: 15-Jun-2009.

In the help section of Wolfenstein 3-D v1.4 shareware version, there are a
couple of quotes from the creators of the game. Adrian Carmack, who did the
graphics, said: "Okay, now for the CGA version . . . NOT!"
This demo shows what a CGA version of Wolfenstein 3-D could have looked like.

Run this demo in DOSBox in CGA mode and set the cycles to a low value like 300.
If you run this program not in DOSBox but on a real computer, I cannot be held
responsible for any damage that may occur to your hardware. You run this
program at your own risk. Even if you run this demo in DOSBox.
Do not run it on a machine with a Hercules or EGA card. It might run,
but it won't look right. It does run on a machine with a VGA or better card,
but the title screen won't look as a good as when it is run on a CGA, PCjr or
Tandy machine.

If you do run this program on a real computer with a CGA card and it doesn't
do any damage to your hardware, I would love to hear about the performance of
this demo. The slowest computer I have access to is a 386 running at 7 MHz
with a VGA card and I get about 12.8 frames per second when I run the demo
in a resolution of 80x100.


File description:
DEMO.BIN       Demo walk file
MAP.BIN        Map
TITLE.BIN      Title screen
WALLBLUE.BMP   Blue wall texture
WALLBROW.BMP   Brown wall texture
WALLEND.BMP    End wall texture
WALLWHIT.BMP   White/grey wall texture
WC40X25.EXE    Wolf3D CGA 40x25 resolution
WC40X50.EXE    Wolf3D CGA 40x50 resolution
WC40X100.EXE   Wolf3D CGA 40x100 resolution
WC80X25.EXE    Wolf3D CGA 80x25 resolution
WC80X50.EXE    Wolf3D CGA 80x50 resolution
WC80X100.EXE   Wolf3D CGA 80x100 resolution
WC80X10R.EXE   Wolf3D CGA 80x100 resolution, interactive version
WLF3DCGA.CPP   Source code
WLF3DCGA.TXT   This file


A note about the source code:
I don't have access to a computer with an 8086 or 8088 cpu. I've used DOSBox
running at 300 cycles for testing the performance. In DOSBox every instruction
has a duration of 1 cycle. On a real machine this is not the case. This has the
consequence that I've tried to make the main loop as short as possible, by
doing its stuff in the least amount of instructions, instead of the fastest
instructions. For example, when I want to multiply by a constant I use the IMUL
instruction, instead of using bit shifts.
I've used Borland C++ Version 3.1 to compile the source code.
There's a bug somewhere in the code that has the consequence that the player
can't turn around the full 360 degrees. This explains the weird turn at the
end of the demo :).


I would like to thank the following people:
- Ken Silverman, for his raycaster Labdemo2. I used it as
the basis for this demo. You can download Labdemo2.bas at
http://www.advsys.net/ken/klab.htm
- MobyGamer, for the ??x50 resolutions. I got it from
http://vogons.zetafleet.com/viewtopic.php?p=77424&highlight=#77424
- I can't remember where I got the ??x100 resolution from, but thanks anyway :)
- John Romero, for the title screen. I got it from
http://rome.ro/archive/news/news_11_2000_to_05_07_2001.htm

Of cource, I would also like to thank id Software for the original game.


Version history:
Second release: 15-Jun 2009.
- Doubled the resolution of the title screen to make it look better.
- Included an interactive version of the program, so the user run around.
- Included the source code.

First release: 5-May-2009.
Initial release.


Frenkel
frenkel_smeijers@hotmail.com
http://www.student.tue.nl/p/f.a.m.smeijers/sfp