xxxxxxxxxx
106
//65 - 90
//666, 333
let x;
let y;
let rectX = 500;
let rectY = 500;
let step;
let string;
let once;
function setup() {
createCanvas(1000, 1000);
//y = mouseX * 2;
//x = width - mouseY;
x = mouseX;
y = mouseY;
step = 1;
string = "G J";
once = true;
}
function draw() {
//background(255, 0, 0);
background(0);
if (step == 1) {
fill(255);
noStroke();
circle(width - y, x * 2, 100);
fill(0);
circle(x, y, 101);
y = mouseX * 2;
x = width - mouseY;
if (mouseX < 338 && mouseX > 328 && mouseY < 671 && mouseY > 661) {
x = 333.333;
y = 666.666;
fill(255, 255);
textSize(20);
text("HOLD the closing square bracket on your keyboard]", 100, 100);
}
}
if (keyIsDown(221)) {
text(string, 100, 150);
if (once) {
step = 2;
once = false;
}
}
if (step == 2) {
fill(255, 255);
text("You must use what goes into a quiver.]", 100, 100);
fill(255, 200)
text("GO J B", rectX, rectY);
if (keyIsDown(37)) {
rectX--;
}
if (keyIsDown(38)) {
rectY--;
}
if (keyIsDown(39)) {
rectX++;
}
if (keyIsDown(40)) {
rectY++;
}
if (rectX < 105 && rectX > 95 && rectY < 155 && rectY > 145) {
rectX = 100;
rectY = 150;
string = "GO J B";
step = 3;
}
}
if (step == 3) {
text("Take the total number of letters to the left of the letter J and divide that by three. \n Count off that many keys, Q being the first. Type the letter you LAND ON.]", 100, 100);
if (keyIsDown(87)) {
string = " OOD JOB";
step = 4;
}
}
if (step == 4) {
text("What number step did you just complete?]", 100, 100);
if (keyIsDown(52)) {
step = 5;
}
}
if (step == 5) {
text("What is the missing letter?]", 100, 100);
if (keyIsDown(71)) {
step = 6;
}
}
if (step == 6) {
text("okay clap clap clap good job. yippee. what do you want me to say? congratulations?]", 100, 100);
string = "GOOD JOB";
}
}