var start = function(){//The opening room while(choice != "door" || "window") { document.write("<p>There's a door north of which you sit, south is a small window with a slight breeze coming through</p>"); document.write("<p> inspect 'door' inspect 'window'</p>"); var choice = window.prompt("door or window"); if(choice == "door"){ document.write("<p>You stand up, aching in your joints you grunt. Inspecting the door you see, what seems to be, a large iron grated cell door? ''Why would I be in a cell?'' you think to yourself.</p>") startDoor() break; }else if(choice == "window"){ document.write("<p>You stand up, aching in your joints you grunt. Inspecting the window</p>"); startWindow() break; }else { document.write("<p>Please type the choices as shown</p>"); }; }; };
window.scrollTo(0,document.body.scrollHeight);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)