I'm making a text adventure in Batch and I was wondering why when I go to a level, the Window closes. Here's (some) of the code:
:C11x0y0 cls title Level C11x0y0 echo -Info- echo Coordinates: x0, y0 echo No Treasure if %cheat% = 1 echo CHEAT gem x1 y0 exit x-1 y1 echo -Keys- echo a - move left echo s - move backwards echo w - move forwards echo d - move right set /p direction= if %direction% == a goto C11x-1y0 if %direction% == s goto C11x0y-1 if %direction% == w goto C11x0y1 if %direction% == d goto C11x1y0
title Cave Advnture - Easy cls echo 1: Level 1 echo 2: Level 2 set /p choice= if %choice% == 1 goto C12x0y0 if %choice% == 2 goto C11x0y0
Level 2 works, that's a good sign, so I'll compare and contrast there.