Skip to content

Instantly share code, notes, and snippets.

@anpage
Last active December 7, 2016 04:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anpage/5f44a75dbb82c7c1296aecbbf5a5a012 to your computer and use it in GitHub Desktop.
Save anpage/5f44a75dbb82c7c1296aecbbf5a5a012 to your computer and use it in GitHub Desktop.
Config for Duke Nukem with DOSBox Daum in Windows
[sdl]
fullscreen=true
fullresolution=desktop
output=direct3d
[render]
aspect=true
scaler=none
[autoexec]
@ECHO OFF
MOUNT C .
C:
:MENU
CLS
ECHO 
ECHO ╔══════════════════════════════════════╗
ECHO ║ Duke Nukem ║
ECHO ╠══════════════════════════════════════╣
ECHO ║ 1) Episode 1: Shrapnel City ║
ECHO ║ 2) Episode 2: Mission: Moonbase ║
ECHO ║ 3) Episode 3: Trapped in the Future ║
ECHO ╟──────────────────────────────────────╢
ECHO ║ Esc) Exit ║
ECHO ╠══════════════════════════════════════╣
ECHO ║ Please select an episode: ║
ECHO ╚══════════════════════════════════════╝
ECHO 
CHOICE /C123 /N /M ""
if ERRORLEVEL 4 GOTO EXIT
if ERRORLEVEL 3 GOTO EPISODE3
if ERRORLEVEL 2 GOTO EPISODE2
if ERRORLEVEL 1 GOTO EPISODE1
:EPISODE1
CLS
CD C:\DUKE1
DN1.EXE
GOTO MENU
:EPISODE2
CLS
CD C:\DUKE2
DN2.EXE
GOTO MENU
:EPISODE3
CLS
CD C:\DUKE3
DN3.EXE
GOTO MENU
:EXIT
EXIT
@anpage
Copy link
Author

anpage commented Dec 7, 2016

This uses ANSI escape sequences for the episode select menu. Make sure to copy from the Raw version and paste it into a file with the DOS CP437 encoding. It will not render properly otherwise.

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