Skip to content

Instantly share code, notes, and snippets.

@anpage
Last active December 7, 2016 04:08
Show Gist options
  • Select an option

  • Save anpage/5f44a75dbb82c7c1296aecbbf5a5a012 to your computer and use it in GitHub Desktop.

Select an option

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

anpage commented Dec 7, 2016 •

Copy link
Copy Markdown
Author

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