Finished Achievements. Needs implimentation.
This commit is contained in:
parent
324679c4a6
commit
22975aff26
6 changed files with 762 additions and 116 deletions
|
|
@ -1,5 +1,5 @@
|
|||
// Program is started from here, runs functions from other files.
|
||||
import { userInput, sleep, disableRawMode, } from './functions.js';
|
||||
import { userInput, sleep, disableRawMode, walkPathMain } from './functions.js';
|
||||
import { forcedEncounter, naturalEncounter } from './encounters.js';
|
||||
import { ravenRockStore } from './shops.js';
|
||||
|
||||
|
|
@ -11,17 +11,17 @@ console.log(" _____ _
|
|||
console.log(" / ' / / / / ) /");
|
||||
console.log("---/__-------__---/---/----__---------_/_---------/-------__----__----__---__----__---_--_----__-------/___ /----__----__----__-/-");
|
||||
console.log(" / / ) / / / ) / / / o / / ) / ) /___) (_ ` / ) / / ) /___) / | / ) / ) / / ");
|
||||
console.log("_/________(___(_/___/___(___/_(___(__(_ __o_____/____/_(___/_/___/_(___ _(__)_(___/_/_/__/_(___ _____/_____|__(___/_(___(_(___/___");
|
||||
console.log("Credits: Bethesda Game Studio \n");
|
||||
console.log("_/________(___(_/___/___(___/_(___(__(_ __o_____/____/_(___/_/___/_(___ _(__)_(___/_/_/__/_(___ _____/_____|__(___/_(___(_(___/___\n\n");
|
||||
|
||||
await sleep(5);
|
||||
|
||||
await sleep(1);
|
||||
|
||||
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\n");
|
||||
console.log("4) Credits\n");
|
||||
|
||||
var mainMenuInput = userInput("Enter: ");
|
||||
|
||||
|
|
@ -38,14 +38,9 @@ switch(mainMenuInput) {
|
|||
await sleep(1);
|
||||
break;
|
||||
case "4":
|
||||
for(var a = 0; a < 10; a++){
|
||||
var test = naturalEncounter(25);
|
||||
if(test != false){
|
||||
console.log(test.name);
|
||||
} else {
|
||||
console.log("failed encounter");
|
||||
}
|
||||
}
|
||||
console.log("Credits:");
|
||||
console.log("Bethesda Game Studios - The Fallout IP and related characters/lore");
|
||||
console.log("Readline-sync - NPM package used for async collection of user input");
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
@ -80,5 +75,5 @@ function startGame() { // So far what I have is filler and testing, feel free to
|
|||
locationA = 0;
|
||||
locationB = 0;
|
||||
ravenRockStore();
|
||||
walkPathA(0);
|
||||
walkPathMain(0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue