Stashing changes for later
This commit is contained in:
parent
49f93574af
commit
8871c644fb
5 changed files with 116 additions and 21 deletions
|
|
@ -13,19 +13,16 @@ console.log(" / ' / / /
|
|||
console.log("---/__-------__---/---/----__---------_/_---------/-------__----__----__---__----__---_--_----__-------/___ /----__----__----__-/-");
|
||||
console.log(" / / ) / / / ) / / / o / / ) / ) /___) (_ ` / ) / / ) /___) / | / ) / ) / / ");
|
||||
console.log("_/________(___(_/___/___(___/_(___(__(_ __o_____/____/_(___/_/___/_(___ _(__)_(___/_/_/__/_(___ _____/_____|__(___/_(___(_(___/___");
|
||||
console.log("Credits: Bethesda Game Studio");
|
||||
console.log("Credits: Bethesda Game Studio\n")
|
||||
variables.sleep(1000);
|
||||
|
||||
console.log("What would you like to do?");
|
||||
console.log("--------------------------");
|
||||
console.log("1) Start new game");
|
||||
console.log("2) Learn How to play");
|
||||
console.log("3) Quit Game");
|
||||
console.log("4) Dev stuff for testing");
|
||||
|
||||
|
||||
|
||||
while(true) {
|
||||
console.log("What would you like to do?");
|
||||
console.log("--------------------------");
|
||||
console.log("1) Start new game");
|
||||
console.log("2) Learn How to play");
|
||||
console.log("3) Quit Game");
|
||||
console.log("4) Dev stuff for testing");
|
||||
let mainMenuInput = variables.userInput("Enter: ")
|
||||
switch(mainMenuInput) {
|
||||
case "1":
|
||||
|
|
@ -40,8 +37,7 @@ while(true) {
|
|||
variables.sleep(1000);
|
||||
break;
|
||||
case "4":
|
||||
let testarr = [1,2,3,4]
|
||||
console.log(testarr[testarr.length - 1]);
|
||||
game.travelScreen();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
@ -64,8 +60,10 @@ function startGame() { // So far what I have is filler and testing, feel free to
|
|||
for (variables.location = 0; variables.location <= 255; variables.location++) {
|
||||
game.calcLocation();
|
||||
game.calcEncounter();
|
||||
game.checkPOI();
|
||||
game.calcSickPoints();
|
||||
game.eatFood();
|
||||
game.checkLose();
|
||||
game.travelScreen();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue