xxxxxxxxxx
//The variable kingdom lies below. Please have your documents in order before proceeding.
//Time function related variables.
//Starts the clock.
let timeStart;
//Considers how much time has passed.
let timeElapsed;
//Welcome to the halls of the setup symposium. Please find your seats; we will begin shortly.
function setup() {
timeStart=millis()
createCanvas(1200,800);
}
//This is it. The forbidden draw lands. Abandon all hope, ye who enter here.
function draw() {
//DEBUG COUNTER
timeElapsed = millis() - timeStart;
print (timeElapsed);
//TEST FUNCTION PLS IGNORE
if (timeElapsed > 2000){
background(70,70,70);
if (timeElapsed > 4000){
background (150,150,150);
}
}
}
//RESET TEST PLS CONSIDER
function keyTyped() {
if (key === 'a'){
timeStart = millis();
}
}
//Jumpin' jackrabbits! Are...are those people I'm seein? Down here, at the bottom of the mine? Well howdy do! My name is Jebediah, and I'm the caretaker of this here par-ticular minin' hole. We've been down here for seven and two plus years I tells ya, workin' away in the hope that one day our number will come up and we'll strike it rich! Say, what brings you folks all the way down here? ... An animation doohicky? Processin' whatnow? That's fancy city folk speak from this big town, ain't it? Ah horsefeathers, nevermind it, come on down, sitdown and grab yourself a flapjack from Jerry's pan over there, we were just about to kit around the fire and tell the stories of the lost variable kingdom! Ain't that somethin? Well I tells ya, it was eighteen hundred n' forty seven when the...