Stashing changes for later
This commit is contained in:
parent
49f93574af
commit
8871c644fb
5 changed files with 116 additions and 21 deletions
|
|
@ -10,6 +10,8 @@ module.exports = {
|
|||
checkLose,
|
||||
calcLocation,
|
||||
calcEncounter,
|
||||
travelScreen,
|
||||
checkPOI,
|
||||
}
|
||||
|
||||
function eatFood() {
|
||||
|
|
@ -89,6 +91,9 @@ function calcLocation() { // Calculates your location in the world using locatio
|
|||
variables.location = variables.location+3;
|
||||
}
|
||||
}
|
||||
if (variables.location > 300) {
|
||||
variables.location = 300;
|
||||
}
|
||||
}
|
||||
|
||||
// Rundown on how I did this:
|
||||
|
|
@ -141,4 +146,71 @@ function calcEncounter() {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function checkPOI() {
|
||||
if (variables.location < 300) {
|
||||
if (variables.location >= (poi.pois[poi.poiCounter].location)-3 && variables.location <= poi.pois[poi.poiCounter].location)
|
||||
}
|
||||
if (variables.locationA > 0) {
|
||||
|
||||
}
|
||||
if (variables.locationB > 0) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
var travelFrame = 0;
|
||||
function travelScreen() {
|
||||
if (travelFrame < 0 || travelFrame > 1) {
|
||||
travelFrame = 0;
|
||||
} else if (travelFrame == 0) {
|
||||
console.clear();
|
||||
console.log("┌──────────────────────────────────────┐");
|
||||
console.log("│ │");
|
||||
console.log("│ │");
|
||||
console.log("│ │");
|
||||
console.log("│ │");
|
||||
console.log("│ ◜─◝ │");
|
||||
console.log("│ ◟_◞ │");
|
||||
console.log("│ /║\\ │");
|
||||
console.log("│ \\V/ │");
|
||||
console.log("│ / \\ │");
|
||||
console.log("│ ▁\\ ▔╹ │");
|
||||
console.log("│======================================│");
|
||||
console.log("│ . . - . . - . . . - │");
|
||||
console.log("│ - . . . . . . - . .│");
|
||||
console.log("└──────────────────────────────────────┘");
|
||||
console.log("Press [ENTER] to open Pip-Boy");
|
||||
console.log("Current Health: "+variables.health);
|
||||
console.log("Food Amt: "+variables.food);
|
||||
console.log("Distance to next POI: ");
|
||||
travelFrame++
|
||||
} else {
|
||||
console.clear();
|
||||
console.log("┌──────────────────────────────────────┐");
|
||||
console.log("│ │");
|
||||
console.log("│ │");
|
||||
console.log("│ │");
|
||||
console.log("│ │");
|
||||
console.log("│ ◜─◝ │");
|
||||
console.log("│ ◟_◞ │");
|
||||
console.log("│ /║\\ │");
|
||||
console.log("│ \\V/ │");
|
||||
console.log("│ \\ │");
|
||||
console.log("│ ▁│▔╹ │");
|
||||
console.log("│======================================│");
|
||||
console.log("│ - . - . . . - . - . │");
|
||||
console.log("│ - . . - . . . - .│");
|
||||
console.log("└──────────────────────────────────────┘");
|
||||
console.log("Press [ENTER] to open Pip-Boy");
|
||||
console.log("Current Health: "+variables.health);
|
||||
console.log("Food Amt: "+variables.food);
|
||||
console.log("Distance to next POI: ");
|
||||
travelFrame--
|
||||
}
|
||||
}
|
||||
|
||||
function haltTravelScreen() {
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue