Skip to content

Instantly share code, notes, and snippets.

@lucasw
Last active January 1, 2024 07:45
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save lucasw/af65aa7314886764e650ccf561ee6291 to your computer and use it in GitHub Desktop.
Save lucasw/af65aa7314886764e650ccf561ee6291 to your computer and use it in GitHub Desktop.
Open Source DOS Games

Actual dos games that could at least theoretically be recompiled with the right dos tools, and then played in dosbox or on real hardware.

Doom doesn't count because the dos source is not available.

Look at http://dosgames.com/forum/about19706.html

@lucasw
Copy link
Author

lucasw commented Jun 14, 2017

Catacomb

https://catacomb.games/

https://github.com/CatacombGames

Need Turbo Pascal 5.5

http://cc.embarcadero.com/Free.aspx?id=26015

3be4db22ef9402b31e16ec13258a8c68  tp55.zip

Unzip it and run dosbox, run install off of disk1.
Use C: as the floppy, drive, install to C:\TP

git clone https://github.com/CatacombGames/Catacomb.git

Need tasm Turbo Assembler
http://trimtab.ca/assets/files/tasm.zip

a2c542bc9b2784c4168d9d3e5fca275e  tasm.zip

(is there a more official link?)
unzip it, then

cd tasm
dosbox ~/.wine/dosdevices/c:
Z:
mount a .
A:
INSTALL.EXE

Too many subdirectories: Press ESC.

Not sure why that is, what about unpak.exe?

unpak x CMD16.PAK

That generates a TASM.EXE among others (should it be CMD32.PAK?)

cd CATACOMB
..\TURBOP\TASM\TASM.EXE catasm

(or whatever relative path to TASM.EXE is- How to put dos command in path?)

This will say:

Turbo Assembler   Version 4.1 ...
Assembling file:   CATASM.ASM
...
Remaining memory: 386k
..\TURBOP\TASM\TASM.EXE catasmtpc -b catacomb
...
Remaining memory:   465k
..\TURBOP\TP\TPC.EXE -b catacomb
Turbo Pascal Version 5.5 ...
SPKLIB.PAS(70)
...
CATACOMB.PAS(2268)
4607 lines, 0.9 seconds, 135392 bytes code, 45632 bytes data.
CATACOMB.EXE
File not found: SOUNDS.CAT

Need to download from elsewhere?
https://www.classicdosgames.com/files/games/softdisk/gameedge.zip
unzip it, then copy all the CATACOMB CAT files to the same directory the source was built in.

Now it works, press E for EGA.

Change the code

Don't know pascal but it doesn't look to bad, try changing some stuff.
Cheating would be the obvious thing, graphics next, sound, level layout.

http://bitsavers.informatik.uni-stuttgart.de/pdf/borland/turbo_assembler/Turbo_Assembler_Version_5_Users_Guide.pdf

https://github.com/jacmoe/retrogardens

@lucasw
Copy link
Author

lucasw commented Jun 16, 2017

Build Engine

Ken

http://advsys.net/ken/buildsrc/ has http://advsys.net/ken/buildsrc/kenbuild.zip, and it mentions newer releases (for dos?).

To run the already built package in dosbox, download http://advsys.net/ken/util/dos4gw.exe to the same directory.
Cranks the cycles way up, "If you need more than 20000, try core=dynamic in DOSBox's options." haven't tried that yet.

Duke Nukem 3D

Code review: http://fabiensanglard.net/duke3d/ - but it disregards the original dos source.

https://github.com/videogamepreservation/dukenukem3d - this looks like the original 3drealms release (is it dos not windows?) (https://github.com/videogamepreservation has a lot of source code)

@lucasw
Copy link
Author

lucasw commented Jun 18, 2017

@lucasw
Copy link
Author

lucasw commented Jun 22, 2017

Dosbox cut and paste

Can't cut and paste in dosbox- try dosemu instead- nope no cut and pase.

"select by dragging the left mouse button, and paste by pressing the middle mouse button."
What if no middle mouse button?

Dosbox scrolling

automounting, path

Put this in the autoexec part of dosbox.conf

MOUNT C ~
PATH=%PATH%;C:\other\retro\dos\TURBOP\TP;C:\other\retro\dos\TURBOP\TASM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment