variablefilevariablechangefunction

This commit is contained in:
Raktbastr 2025-04-03 12:15:48 -05:00
parent 7846f80f11
commit 6714250079
2 changed files with 13 additions and 4 deletions

View file

@ -1,7 +1,7 @@
// Program is started from here, runs functions from other files.
import { userInput, calcLocation, radPointsCalc, healthCapCalc, checkLose, sleep } from './functions.js';
import { pois, poiCounter } from './poiscreens.js';
import { name, prewarmoney } from './variables.js';
import { name, prewarmoney, variableChange } from './variables.js';
console.clear();
@ -34,13 +34,14 @@ switch(mainMenuInput) {
console.log("Quitting Game...");
break;
case "4":
sleep(5);
variableChange("name","=","finn");
console.log(name);
break;
}
function startGame() { // So far what I have is filler and testing, feel free to change.
console.clear();
name = userInput("What is your name? ");
variableChange("name","=",userInput("What is your name? "));
console.log(name+" Is now your name...")
console.clear();
console.log("Intro:");