Labyrinth Source Code
Hazaa! the day has finally come where I will post up the first version of Labyrinth! I mean sure it is in .BAT format, which for those unaware is rediculously archaic and outdated. But hey it was fun working within limits. And there were a few things that are really cool for Batch files, one of which is the goto command. Sometiems it would be really cool to have a simple equivalent in modern programming. Of course they do have things you can do, but yes... lets not get off track, the source code!

For those lazy sods who aren't interested in programming or anything of the sort and just want to try out the text based game Labyrinth you can download the latest version here. For those who want to take a look at the source code, which you can copy and paste into notepad and save as a .bat file, it is below
Due to the rediculous nature of batch programming and the few thousand lines of code that this small tid bit of entertianment holds I am unable to post the full source code. Probably for the best, I have posted a small excerpt from the start of the game below to get an idea of how simple batch programming is. You will have to use the download link to download the full file
:1-1
set input=
echo ##########################################
echo # #
echo # A dull room with grey light filtering #
echo # from barred windows to the north and #
echo # west. #
echo # #
echo # #
echo # Go [e]ast, [y]ank on bars #
echo # #
echo ##########################################
set /p input=What will you do?: %=%
if "%input%"=="e" goto mapeast
if "%input%"=="y" goto 1-1_y
goto 1-1
:1-1_y
echo # #
echo # you yank on the bars, nothing happens #
echo # #
echo # [o]kay then. #
echo # #
echo ##########################################
pause >nul
goto endmap
:1-2
set input=
echo ##########################################
echo # #
echo # A stone enclave to the east houses a #
echo # long forgotten soul now reduced to a #
echo # skeleton. Cruel really that they are #
echo # still shackled to the wall. #
echo # #
echo # Go [w]est, [s]outh, T[o]uch skeleton #
echo # #
echo ##########################################
set /p input=What will you do?: %=%
if "%input%"=="w" goto mapwest
if "%input%"=="s" goto mapsouth
if "%input%"=="o" goto 1-2_o
goto 1-2
:1-2_o
set input=
echo # #
echo # You get your jollies by touching the #
echo # skeletons chest. Your giggling echoes #
echo # throughout the room and freaks you out #
echo # #
echo # [o]kay then. #
echo # #
echo ##########################################
pause >nul
goto endmap
NOTE: there should be a lot more spaces in the source code, but due to HTML language restrictions it will only put 1 space where multiple adjacent spaces exist
Comments
Batch files are outdated dude
Batch files are outdated dude
My Bad
I just realised the link to the downloadable is a broken link! Oh the horror and humanity. I will post it again when I get the fresh source code from work. Sorry peeps!
Laby downloads
You can now download the following files:
Labyrinth batch file
Labyrinth archive file