Added readline function, started work on shops, added some comments, made main menu and a bit of the start.
This commit is contained in:
parent
455a867719
commit
e413a5dea4
17 changed files with 3889 additions and 17 deletions
|
|
@ -1,5 +1,7 @@
|
|||
// Program is started from here, runs functions from other files.
|
||||
const variables = require("./variables.js");
|
||||
const shops = require("./shops");
|
||||
const readline = require('node:readline');
|
||||
|
||||
|
||||
console.clear();
|
||||
|
|
@ -9,5 +11,39 @@ console.log(" / ' / / /
|
|||
console.log("---/__-------__---/---/----__---------_/_---------/-------__----__----__---__----__---_--_----__-------/___ /----__----__----__-/-");
|
||||
console.log(" / / ) / / / ) / / / o / / ) / ) /___) (_ ` / ) / / ) /___) / | / ) / ) / / ");
|
||||
console.log("_/________(___(_/___/___(___/_(___(__(_ __o_____/____/_(___/_/___/_(___ _(__)_(___/_/_/__/_(___ _____/_____|__(___/_(___(_(___/___");
|
||||
console.log("Credits: Bethesda Game Studio")
|
||||
console.log("Credits: Bethesda Game Studio");
|
||||
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");
|
||||
|
||||
var mainMenuInput = variables.userInput("Enter: ")
|
||||
|
||||
switch(mainMenuInput) {
|
||||
case "1":
|
||||
startGame();
|
||||
case "2":
|
||||
showManual();
|
||||
case "3":
|
||||
console.log("Quitting Game...");
|
||||
variables.sleep(1000);
|
||||
}
|
||||
|
||||
function startGame() { // So far what I have is filler and testing, feel free to change.
|
||||
console.clear();
|
||||
variables.sleep(1000);
|
||||
variables.name = variables.userInput("What is your name? ");
|
||||
console.log(variables.name+" Is now your name...")
|
||||
variables.sleep(2000);
|
||||
console.clear();
|
||||
console.log("Intro:");
|
||||
console.log("You are an ordinary loyal Enclave Soldier working at Raven Rock. \nYou are typing away at your terminal, entering reports of recovered materials when a message flashes on it.\n\nDear "+variables.name+" ,\n\n This is a direct order from the Enclave High Command. \nIgnore all previous directives. Proceed to Camp Navarro immediately. \nSeek safe passage through the Brotherhood and NCR territories. \nDo not disclose your mission to anyone but Enclave Personel with \nsecurity clearance 5 or higher. Reqisition supplies before departure. \n\n Signed, President John Henry Eden\n\n");
|
||||
|
||||
variables.userInput("[Enter to open shop]")
|
||||
console.clear();
|
||||
|
||||
variables.prewarmoney = 500;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue