xxxxxxxxxx
2931
let state = 0;
//var title = true;
var r = false;
var r2 = false;
var tie = false
var q = false;
var a = false;
var q1 = false;
var q2 = false;
var q3 = false;
var q4 = false;
var q5 = false;
var q6 = false;
var q7 = false;
var q8 = false;
var q9 = false;
var q10 = false;
var q11 = false;
var q12 = false;
var q13 = false;
var q14 = false;
var q15 = false;
var q16 = false;
var q17 = false;
var q18 = false;
var q19 = false;
var q20 = false;
var q21 = false;
var q22 = false;
var q23 = false;
var q24 = false;
var q25 = false;
var q26 = false;
var q27 = false;
var q28 = false;
var q29 = false;
var q30 = false;
var a1 = false;
var a2 = false;
var a3 = false;
var a4 = false;
var a5 = false;
var a6 = false;
var a7 = false;
var a8 = false;
var a9 = false;
var a10 = false;
var a11 = false;
var a12 = false;
var a13 = false;
var a14 = false;
var a15 = false;
var a16 = false;
var a17 = false;
var a18 = false;
var a19 = false;
var a20 = false;
var a21 = false;
var a22 = false;
var a23 = false;
var a24 = false;
var a25 = false;
var a26 = false;
var a27 = false;
var a28 = false;
var a29 = false;
var a30 = false;
var qq1 = false;
var qq2 = false;
var qq3 = false;
var qq4 = false;
var qq5 = false;
var qq6 = false;
var qq7 = false;
var qq8 = false;
var qq9 = false;
var qq10 = false;
var qq11 = false;
var qq12 = false;
var qq13 = false;
var qq14 = false;
var qq15 = false;
var qq16 = false;
var qq17 = false;
var qq18 = false;
var qq19 = false;
var qq20 = false;
var qq21 = false;
var qq22 = false;
var qq23 = false;
var qq24 = false;
var qq25 = false;
var qq26 = false;
var qq27 = false;
var qq28 = false;
var qq29 = false;
var qq30 = false;
var aa1 = false;
var aa2 = false;
var aa3 = false;
var aa4 = false;
var aa5 = false;
var aa6 = false;
var aa7 = false;
var aa8 = false;
var aa9 = false;
var aa10 = false;
var aa11 = false;
var aa12 = false;
var aa13 = false;
var aa14 = false;
var aa15 = false;
var aa16 = false;
var aa17 = false;
var aa18 = false;
var aa19 = false;
var aa20 = false;
var aa21 = false;
var aa22 = false;
var aa23 = false;
var aa24 = false;
var aa25 = false;
var aa26 = false;
var aa27 = false;
var aa28 = false;
var aa29 = false;
var aa30 = false;
function setup() {
createCanvas(800, 600);
}
function draw() {
if (state == 0) {
//title screen
fill(0)
textSize(50)
stroke(0)
background(255)
text("Welcome To Jeopardy", 100, 100)
textSize(32)
text("The Semper/Fiorino Edition", 140, 150)
text("Please choose a round!", 170, 500)
fill(255);
rect(120, 548, 110, 50)
textSize(22)
fill(0);
text("Round 1", 130, 580)
fill(255);
rect(270, 548, 110, 50)
fill(0);
text("Round 2", 280, 580)
fill(255);
rect(430, 548, 110, 50)
fill(0);
text("Tie Break", 435, 580)
if (mouseX > 120 && mouseX < 230 && mouseY > 548 && mouseY < 598) {
fill(255, 0, 0, 150);
rect(120, 548, 110, 50);
}
if (mouseX > 270 && mouseX < 380 && mouseY > 548 && mouseY < 598) {
fill(255, 0, 0, 150);
rect(270, 548, 110, 50);
}
if (mouseX > 430 && mouseX < 540 && mouseY > 548 && mouseY < 598) {
fill(255, 0, 0, 150);
rect(430, 548, 110, 50);
}
}
if (q1) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("200 Point Question:", 230, 100);
text("Who Coded this Game?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (a1) {
textSize(32)
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("Mike Did!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (q2) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("200 Point Question:", 230, 100);
text("Will this game work?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (a2) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Maybe!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (q3) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("200 Point Question:", 230, 100);
text("Will this game work?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (a3) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Maybe Not!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (q4) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("200 Point Question:", 230, 100);
text("Will this game work?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (a4) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Maybe!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (q5) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("200 Point Question:", 230, 100);
text("Will this game work?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (a5) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Maybe Not!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (q6) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("200 Point Question:", 230, 100);
text("Will this game work?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (a6) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Maybe!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (q7) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("400 Point Question:", 230, 100);
text("Who Coded this Game?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (a7) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Mike Did!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (q8) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("400 Point Question:", 230, 100);
text("Will this game work?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (a8) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Maybe!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (q9) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("400 Point Question:", 230, 100);
text("Will this game work?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (a9) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Maybe Not!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (q10) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("400 Point Question:", 230, 100);
text("Will this game work?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (a10) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Maybe!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (q11) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("400 Point Question:", 230, 100);
text("Will this game work?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (a11) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Maybe Not!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (q12) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("400 Point Question:", 230, 100);
text("Will this game work?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (a12) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Maybe!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (q13) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("600 Point Question:", 230, 100);
text("Will this game work?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (a13) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Maybe!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (q14) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("600 Point Question:", 230, 100);
text("Will this game work?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (a14) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Maybe Not!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (q15) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("600 Point Question:", 230, 100);
text("Will this game work?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (a15) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Maybe!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (q16) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("600 Point Question:", 230, 100);
text("Will this game work?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (a16) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Maybe Not!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (q17) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("600 Point Question:", 230, 100);
text("Will this game work?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (a17) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Maybe!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (q18) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("600 Point Question:", 230, 100);
text("Who Coded this Game?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (a18) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Mike Did!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (q19) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("800 Point Question:", 230, 100);
text("Will this game work?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (a19) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Maybe!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (q20) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("800 Point Question:", 230, 100);
text("Will this game work?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (a20) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Maybe Not!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (q21) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("800 Point Question:", 230, 100);
text("Will this game work?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (a21) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Maybe!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (q22) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("800 Point Question:", 230, 100);
text("Will this game work?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (a22) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Maybe Not!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (q23) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("800 Point Question:", 230, 100);
text("Will this game work?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (a23) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Maybe!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (q24) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("800 Point Question:", 230, 100);
text("Will this game work?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (a24) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Maybe Not!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (q25) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("1000 Point Question:", 230, 100);
text("Will this game work?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (a25) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Maybe!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (q26) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("1000 Point Question:", 230, 100);
text("Will this game work?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (a26) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Maybe Not!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (q27) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("1000 Point Question:", 230, 100);
text("Will this game work?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (a27) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Maybe!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (q28) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("1000 Point Question:", 230, 100);
text("Will this game work?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (a28) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Maybe!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (q29) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("1000 Point Question:", 230, 100);
text("Will this game work?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (a29) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Maybe Not!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (q30) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("1000 Point Question:", 230, 100);
text("Will this game work?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (a30) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Maybe!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
//round 2 questions
if (qq1) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("200 Point Question:", 230, 100);
text("Who Coded this Game?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (aa1) {
textSize(32)
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("Mike Did!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (qq2) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("200 Point Question:", 230, 100);
text("Will this game work?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (aa2) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Maybe!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (qq3) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("200 Point Question:", 230, 100);
text("Will this game work?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (aa3) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Maybe Not!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (qq4) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("200 Point Question:", 230, 100);
text("Will this game work?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (aa4) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Maybe!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (qq5) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("200 Point Question:", 230, 100);
text("Will this game work?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (aa5) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Maybe Not!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (qq6) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("200 Point Question:", 230, 100);
text("Will this game work?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (aa6) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Maybe!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (qq7) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("400 Point Question:", 230, 100);
text("Who Coded this Game?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (aa7) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Mike Did!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (qq8) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("400 Point Question:", 230, 100);
text("Will this game work?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (aa8) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Maybe!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (qq9) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("400 Point Question:", 230, 100);
text("Will this game work?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (aa9) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Maybe Not!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (qq10) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("400 Point Question:", 230, 100);
text("Will this game work?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (aa10) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Maybe!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (qq11) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("400 Point Question:", 230, 100);
text("Will this game work?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (aa11) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Maybe Not!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (qq12) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("400 Point Question:", 230, 100);
text("Will this game work?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (aa12) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Maybe!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (qq13) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("600 Point Question:", 230, 100);
text("Will this game work?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (aa13) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Maybe!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (qq14) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("600 Point Question:", 230, 100);
text("Will this game work?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (aa14) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Maybe Not!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (qq15) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("600 Point Question:", 230, 100);
text("Will this game work?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (aa15) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Maybe!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (qq16) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("600 Point Question:", 230, 100);
text("Will this game work?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (aa16) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Maybe Not!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (qq17) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("600 Point Question:", 230, 100);
text("Will this game work?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (aa17) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Maybe!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (qq18) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("600 Point Question:", 230, 100);
text("Who Coded this Game?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (aa18) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Mike Did!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (qq19) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("800 Point Question:", 230, 100);
text("Will this game work?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (aa19) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Maybe!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (qq20) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("800 Point Question:", 230, 100);
text("Will this game work?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (aa20) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Maybe Not!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (qq21) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("800 Point Question:", 230, 100);
text("Will this game work?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (aa21) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Maybe!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (qq22) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("800 Point Question:", 230, 100);
text("Will this game work?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (aa22) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Maybe Not!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (qq23) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("800 Point Question:", 230, 100);
text("Will this game work?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (aa23) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Maybe!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (qq24) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("800 Point Question:", 230, 100);
text("Will this game work?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (aa24) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Maybe Not!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (qq25) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("1000 Point Question:", 230, 100);
text("Will this game work?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (aa25) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Maybe!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (qq26) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("1000 Point Question:", 230, 100);
text("Will this game work?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (aa26) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Maybe Not!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (qq27) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("1000 Point Question:", 230, 100);
text("Will this game work?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (aa27) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Maybe!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (qq28) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("1000 Point Question:", 230, 100);
text("Will this game work?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (aa28) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Maybe!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (qq29) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("1000 Point Question:", 230, 100);
text("Will this game work?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (aa29) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Maybe Not!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (qq30) {
stroke(0, 0, 0);
fill(255, 255, 255);
background(0, 0, 100);
text("1000 Point Question:", 230, 100);
text("Will this game work?", 200, 200)
fill(0, 0, 255);
rect(300, 380, 120, 50)
fill(255, 255, 255);
text("Answer", 305, 410)
}
if (aa30) {
stroke(0, 0, 0);
textSize(32)
fill(255, 255, 255);
background(0, 0, 100);
text("Maybe!!!!", 250, 100);
fill(0, 0, 255);
rect(615, 5, 92, 30);
fill(0, 0, 0)
textSize(14)
text("Next Question", 617, 25);
}
if (state == 1) {
background(0, 0, 100);
textSize(32);
stroke(0, 0, 0);
fill(255, 255, 255);
text("Jeopardy", 325, 30);
textSize(22)
fill(0, 255, 0);
text("Round 1", 460, 30);
fill(0, 0, 255);
rect(718, 5, 74, 30);
fill(0, 0, 0)
textSize(14)
text("Main Menu", 720, 25);
//category squares
fill(0, 0, 255);
rect(60, 40, 80, 50);
fill(0, 0, 0)
textSize(16)
text("Category 1", 60, 75);
fill(0, 0, 255);
rect(180, 40, 80, 50);
fill(0, 0, 0)
textSize(16)
text("Category 2", 180, 75);
fill(0, 0, 255);
rect(300, 40, 80, 50);
fill(0, 0, 0)
textSize(16)
text("Category 3", 300, 75);
fill(0, 0, 255);
rect(420, 40, 80, 50);
fill(0, 0, 0)
textSize(16)
text("Category 4", 420, 75);
fill(0, 0, 255);
rect(540, 40, 80, 50);
fill(0, 0, 0)
textSize(16)
text("Category 5", 540, 75);
fill(0, 0, 255);
rect(660, 40, 80, 50);
fill(0, 0, 0)
textSize(16)
text("Category 6", 660, 75);
fill(0, 0, 255);
// 200 squares
textSize(32)
square(60, 100, 80);
fill(0, 0, 0)
text("200", 70, 150);
fill(0, 0, 255);
square(180, 100, 80);
fill(0, 0, 0)
text("200", 190, 150);
fill(0, 0, 255);
square(300, 100, 80);
fill(0, 0, 0)
text("200", 310, 150);
fill(0, 0, 255);
square(420, 100, 80);
fill(0, 0, 0)
text("200", 430, 150);
fill(0, 0, 255);
square(540, 100, 80);
fill(0, 0, 0)
text("200", 550, 150);
fill(0, 0, 255);
square(660, 100, 80);
fill(0, 0, 0)
text("200", 670, 150);
fill(0, 0, 255);
// 400 squares
textSize(32)
square(60, 190, 80);
fill(0, 0, 0)
text("400", 70, 240);
fill(0, 0, 255);
square(180, 190, 80);
fill(0, 0, 0)
text("400", 190, 240);
fill(0, 0, 255);
square(300, 190, 80);
fill(0, 0, 0)
text("400", 310, 240);
fill(0, 0, 255);
square(420, 190, 80);
fill(0, 0, 0)
text("400", 430, 240);
fill(0, 0, 255);
square(540, 190, 80);
fill(0, 0, 0)
text("400", 550, 240);
fill(0, 0, 255);
square(660, 190, 80);
fill(0, 0, 0)
text("400", 670, 240);
fill(0, 0, 255);
//600 squares
textSize(32)
square(60, 280, 80);
fill(0, 0, 0)
text("600", 70, 330);
fill(0, 0, 255);
square(180, 280, 80);
fill(0, 0, 0)
text("600", 190, 330);
fill(0, 0, 255);
square(300, 280, 80);
fill(0, 0, 0)
text("600", 310, 330);
fill(0, 0, 255);
square(420, 280, 80);
fill(0, 0, 0)
text("600", 430, 330);
fill(0, 0, 255);
square(540, 280, 80);
fill(0, 0, 0)
text("600", 550, 330);
fill(0, 0, 255);
square(660, 280, 80);
fill(0, 0, 0)
text("600", 670, 330);
fill(0, 0, 255);
//800 squares
textSize(32)
square(60, 370, 80);
fill(0, 0, 0)
text("800", 70, 420);
fill(0, 0, 255);
square(180, 370, 80);
fill(0, 0, 0)
text("800", 190, 420);
fill(0, 0, 255);
square(300, 370, 80);
fill(0, 0, 0)
text("800", 310, 420);
fill(0, 0, 255);
square(420, 370, 80);
fill(0, 0, 0)
text("800", 430, 420);
fill(0, 0, 255);
square(540, 370, 80);
fill(0, 0, 0)
text("800", 550, 420);
fill(0, 0, 255);
square(660, 370, 80);
fill(0, 0, 0)
text("800", 670, 420);
fill(0, 0, 255);
//1000 squares
textSize(32)
square(60, 460, 80);
fill(0, 0, 0)
text("1000", 60, 510);
fill(0, 0, 255);
square(180, 460, 80);
fill(0, 0, 0)
text("1000", 180, 510);
fill(0, 0, 255);
square(300, 460, 80);
fill(0, 0, 0)
text("1000", 300, 510);
fill(0, 0, 255);
square(420, 460, 80);
fill(0, 0, 0)
text("1000", 420, 510);
fill(0, 0, 255);
square(540, 460, 80);
fill(0, 0, 0)
text("1000", 540, 510);
fill(0, 0, 255);
square(660, 460, 80);
fill(0, 0, 0)
text("1000", 660, 510);
fill(0, 0, 255);
//border
stroke(255, 255, 255);
line(40, 95, 760, 95);
line(760, 95, 760, 550);
line(40, 95, 40, 550);
line(40, 550, 760, 550);
//Inner horizontal Borders
line(40, 185, 760, 185);
line(40, 275, 760, 275);
line(40, 365, 760, 365);
line(40, 455, 760, 455);
// inner vertical borders
line(160, 95, 160, 550);
line(280, 95, 280, 550);
line(400, 95, 400, 550);
line(520, 95, 520, 550);
line(640, 95, 640, 550);
//200 red squares
if (mouseX > 60 && mouseX < 140 && mouseY > 100 && mouseY < 180) {
fill(255, 0, 0, 100);
square(60, 100, 80);
}
if (mouseX > 180 && mouseX < 260 && mouseY > 100 && mouseY < 180) {
fill(255, 0, 0, 100);
square(180, 100, 80);
}
if (mouseX > 300 && mouseX < 380 && mouseY > 100 && mouseY < 180) {
fill(255, 0, 0, 100);
square(300, 100, 80);
}
if (mouseX > 420 && mouseX < 500 && mouseY > 100 && mouseY < 180) {
fill(255, 0, 0, 100);
square(420, 100, 80);
}
if (mouseX > 540 && mouseX < 620 && mouseY > 100 && mouseY < 180) {
fill(255, 0, 0, 100);
square(540, 100, 80);
}
if (mouseX > 660 && mouseX < 740 && mouseY > 100 && mouseY < 180) {
fill(255, 0, 0, 100);
square(660, 100, 80);
}
if (mouseX > 718 && mouseX < 792 && mouseY > 5 && mouseY < 35) {
fill(255, 0, 0, 100);
rect(718, 5, 74, 30);
}
//400 red squares
if (mouseX > 60 && mouseX < 140 && mouseY > 190 && mouseY < 270) {
fill(255, 0, 0, 100);
square(60, 190, 80);
}
if (mouseX > 180 && mouseX < 260 && mouseY > 190 && mouseY < 270) {
fill(255, 0, 0, 100);
square(180, 190, 80);
}
if (mouseX > 300 && mouseX < 380 && mouseY > 190 && mouseY < 270) {
fill(255, 0, 0, 100);
square(300, 190, 80);
}
if (mouseX > 420 && mouseX < 500 && mouseY > 190 && mouseY < 270) {
fill(255, 0, 0, 100);
square(420, 190, 80);
}
if (mouseX > 540 && mouseX < 620 && mouseY > 190 && mouseY < 270) {
fill(255, 0, 0, 100);
square(540, 190, 80);
}
if (mouseX > 660 && mouseX < 740 && mouseY > 190 && mouseY < 270) {
fill(255, 0, 0, 100);
square(660, 190, 80);
}
//600 red squares
if (mouseX > 60 && mouseX < 140 && mouseY > 280 && mouseY < 360) {
fill(255, 0, 0, 100);
square(60, 280, 80);
}
if (mouseX > 180 && mouseX < 260 && mouseY > 280 && mouseY < 360) {
fill(255, 0, 0, 100);
square(180, 280, 80);
}
if (mouseX > 300 && mouseX < 380 && mouseY > 280 && mouseY < 360) {
fill(255, 0, 0, 100);
square(300, 280, 80);
}
if (mouseX > 420 && mouseX < 500 && mouseY > 280 && mouseY < 360) {
fill(255, 0, 0, 100);
square(420, 280, 80);
}
if (mouseX > 540 && mouseX < 620 && mouseY > 280 && mouseY < 360) {
fill(255, 0, 0, 100);
square(540, 280, 80);
}
if (mouseX > 660 && mouseX < 740 && mouseY > 280 && mouseY < 360) {
fill(255, 0, 0, 100);
square(660, 280, 80);
}
//800 red squares
if (mouseX > 60 && mouseX < 140 && mouseY > 370 && mouseY < 450) {
fill(255, 0, 0, 100);
square(60, 370, 80);
}
if (mouseX > 180 && mouseX < 260 && mouseY > 370 && mouseY < 450) {
fill(255, 0, 0, 100);
square(180, 370, 80);
}
if (mouseX > 300 && mouseX < 380 && mouseY > 370 && mouseY < 450) {
fill(255, 0, 0, 100);
square(300, 370, 80);
}
if (mouseX > 420 && mouseX < 500 && mouseY > 370 && mouseY < 450) {
fill(255, 0, 0, 100);
square(420, 370, 80);
}
if (mouseX > 540 && mouseX < 620 && mouseY > 370 && mouseY < 450) {
fill(255, 0, 0, 100);
square(540, 370, 80);
}
if (mouseX > 660 && mouseX < 740 && mouseY > 370 && mouseY < 450) {
fill(255, 0, 0, 100);
square(660, 370, 80);
}
//1000 red squares
if (mouseX > 60 && mouseX < 140 && mouseY > 460 && mouseY < 540) {
fill(255, 0, 0, 100);
square(60, 460, 80);
}
if (mouseX > 180 && mouseX < 260 && mouseY > 460 && mouseY < 540) {
fill(255, 0, 0, 100);
square(180, 460, 80);
}
if (mouseX > 300 && mouseX < 380 && mouseY > 460 && mouseY < 540) {
fill(255, 0, 0, 100);
square(300, 460, 80);
}
if (mouseX > 420 && mouseX < 500 && mouseY > 460 && mouseY < 540) {
fill(255, 0, 0, 100);
square(420, 460, 80);
}
if (mouseX > 540 && mouseX < 620 && mouseY > 460 && mouseY < 540) {
fill(255, 0, 0, 100);
square(540, 460, 80);
}
if (mouseX > 660 && mouseX < 740 && mouseY > 460 && mouseY < 540) {
fill(255, 0, 0, 100);
square(660, 460, 80);
}
}
if (state == 2) {
background(0, 0, 100);
textSize(32);
stroke(0, 0, 0);
fill(255, 255, 255);
text("Jeopardy", 325, 30);
textSize(22)
fill(0, 255, 0);
text("Round 2", 460, 30);
fill(0, 0, 255);
rect(718, 5, 74, 30);
fill(0, 0, 0)
textSize(14)
text("Main Menu", 720, 25);
//category rectangles
fill(0, 0, 255);
rect(60, 40, 80, 50);
fill(0, 0, 0)
textSize(16)
text("Category 1", 60, 75);
fill(0, 0, 255);
rect(180, 40, 80, 50);
fill(0, 0, 0)
textSize(16)
text("Category 2", 180, 75);
fill(0, 0, 255);
rect(300, 40, 80, 50);
fill(0, 0, 0)
textSize(16)
text("Category 3", 300, 75);
fill(0, 0, 255);
rect(420, 40, 80, 50);
fill(0, 0, 0)
textSize(16)
text("Category 4", 420, 75);
fill(0, 0, 255);
rect(540, 40, 80, 50);
fill(0, 0, 0)
textSize(16)
text("Category 5", 540, 75);
fill(0, 0, 255);
rect(660, 40, 80, 50);
fill(0, 0, 0)
textSize(16)
text("Category 6", 660, 75);
fill(0, 0, 255);
// 200 squares
textSize(32)
square(60, 100, 80);
fill(0, 0, 0)
text("200", 70, 150);
fill(0, 0, 255);
square(180, 100, 80);
fill(0, 0, 0)
text("200", 190, 150);
fill(0, 0, 255);
square(300, 100, 80);
fill(0, 0, 0)
text("200", 310, 150);
fill(0, 0, 255);
square(420, 100, 80);
fill(0, 0, 0)
text("200", 430, 150);
fill(0, 0, 255);
square(540, 100, 80);
fill(0, 0, 0)
text("200", 550, 150);
fill(0, 0, 255);
square(660, 100, 80);
fill(0, 0, 0)
text("200", 670, 150);
fill(0, 0, 255);
// 400 squares
textSize(32)
square(60, 190, 80);
fill(0, 0, 0)
text("400", 70, 240);
fill(0, 0, 255);
square(180, 190, 80);
fill(0, 0, 0)
text("400", 190, 240);
fill(0, 0, 255);
square(300, 190, 80);
fill(0, 0, 0)
text("400", 310, 240);
fill(0, 0, 255);
square(420, 190, 80);
fill(0, 0, 0)
text("400", 430, 240);
fill(0, 0, 255);
square(540, 190, 80);
fill(0, 0, 0)
text("400", 550, 240);
fill(0, 0, 255);
square(660, 190, 80);
fill(0, 0, 0)
text("400", 670, 240);
fill(0, 0, 255);
//600 squares
textSize(32)
square(60, 280, 80);
fill(0, 0, 0)
text("600", 70, 330);
fill(0, 0, 255);
square(180, 280, 80);
fill(0, 0, 0)
text("600", 190, 330);
fill(0, 0, 255);
square(300, 280, 80);
fill(0, 0, 0)
text("600", 310, 330);
fill(0, 0, 255);
square(420, 280, 80);
fill(0, 0, 0)
text("600", 430, 330);
fill(0, 0, 255);
square(540, 280, 80);
fill(0, 0, 0)
text("600", 550, 330);
fill(0, 0, 255);
square(660, 280, 80);
fill(0, 0, 0)
text("600", 670, 330);
fill(0, 0, 255);
//800 squares
textSize(32)
square(60, 370, 80);
fill(0, 0, 0)
text("800", 70, 420);
fill(0, 0, 255);
square(180, 370, 80);
fill(0, 0, 0)
text("800", 190, 420);
fill(0, 0, 255);
square(300, 370, 80);
fill(0, 0, 0)
text("800", 310, 420);
fill(0, 0, 255);
square(420, 370, 80);
fill(0, 0, 0)
text("800", 430, 420);
fill(0, 0, 255);
square(540, 370, 80);
fill(0, 0, 0)
text("800", 550, 420);
fill(0, 0, 255);
square(660, 370, 80);
fill(0, 0, 0)
text("800", 670, 420);
fill(0, 0, 255);
//1000 squares
textSize(32)
square(60, 460, 80);
fill(0, 0, 0)
text("1000", 60, 510);
fill(0, 0, 255);
square(180, 460, 80);
fill(0, 0, 0)
text("1000", 180, 510);
fill(0, 0, 255);
square(300, 460, 80);
fill(0, 0, 0)
text("1000", 300, 510);
fill(0, 0, 255);
square(420, 460, 80);
fill(0, 0, 0)
text("1000", 420, 510);
fill(0, 0, 255);
square(540, 460, 80);
fill(0, 0, 0)
text("1000", 540, 510);
fill(0, 0, 255);
square(660, 460, 80);
fill(0, 0, 0)
text("1000", 660, 510);
fill(0, 0, 255);
//border
stroke(255, 255, 255);
line(40, 95, 760, 95);
line(760, 95, 760, 550);
line(40, 95, 40, 550);
line(40, 550, 760, 550);
//Inner horizontal Borders
line(40, 185, 760, 185);
line(40, 275, 760, 275);
line(40, 365, 760, 365);
line(40, 455, 760, 455);
// inner vertical borders
line(160, 95, 160, 550);
line(280, 95, 280, 550);
line(400, 95, 400, 550);
line(520, 95, 520, 550);
line(640, 95, 640, 550);
//200 red squares
if (mouseX > 60 && mouseX < 140 && mouseY > 100 && mouseY < 180) {
fill(255, 0, 0, 100);
square(60, 100, 80);
}
if (mouseX > 180 && mouseX < 260 && mouseY > 100 && mouseY < 180) {
fill(255, 0, 0, 100);
square(180, 100, 80);
}
if (mouseX > 300 && mouseX < 380 && mouseY > 100 && mouseY < 180) {
fill(255, 0, 0, 100);
square(300, 100, 80);
}
if (mouseX > 420 && mouseX < 500 && mouseY > 100 && mouseY < 180) {
fill(255, 0, 0, 100);
square(420, 100, 80);
}
if (mouseX > 540 && mouseX < 620 && mouseY > 100 && mouseY < 180) {
fill(255, 0, 0, 100);
square(540, 100, 80);
}
if (mouseX > 660 && mouseX < 740 && mouseY > 100 && mouseY < 180) {
fill(255, 0, 0, 100);
square(660, 100, 80);
}
if (mouseX > 718 && mouseX < 792 && mouseY > 5 && mouseY < 35) {
fill(255, 0, 0, 100);
rect(718, 5, 74, 30);
}
//400 red squares
if (mouseX > 60 && mouseX < 140 && mouseY > 190 && mouseY < 270) {
fill(255, 0, 0, 100);
square(60, 190, 80);
}
if (mouseX > 180 && mouseX < 260 && mouseY > 190 && mouseY < 270) {
fill(255, 0, 0, 100);
square(180, 190, 80);
}
if (mouseX > 300 && mouseX < 380 && mouseY > 190 && mouseY < 270) {
fill(255, 0, 0, 100);
square(300, 190, 80);
}
if (mouseX > 420 && mouseX < 500 && mouseY > 190 && mouseY < 270) {
fill(255, 0, 0, 100);
square(420, 190, 80);
}
if (mouseX > 540 && mouseX < 620 && mouseY > 190 && mouseY < 270) {
fill(255, 0, 0, 100);
square(540, 190, 80);
}
if (mouseX > 660 && mouseX < 740 && mouseY > 190 && mouseY < 270) {
fill(255, 0, 0, 100);
square(660, 190, 80);
}
//600 red squares
if (mouseX > 60 && mouseX < 140 && mouseY > 280 && mouseY < 360) {
fill(255, 0, 0, 100);
square(60, 280, 80);
}
if (mouseX > 180 && mouseX < 260 && mouseY > 280 && mouseY < 360) {
fill(255, 0, 0, 100);
square(180, 280, 80);
}
if (mouseX > 300 && mouseX < 380 && mouseY > 280 && mouseY < 360) {
fill(255, 0, 0, 100);
square(300, 280, 80);
}
if (mouseX > 420 && mouseX < 500 && mouseY > 280 && mouseY < 360) {
fill(255, 0, 0, 100);
square(420, 280, 80);
}
if (mouseX > 540 && mouseX < 620 && mouseY > 280 && mouseY < 360) {
fill(255, 0, 0, 100);
square(540, 280, 80);
}
if (mouseX > 660 && mouseX < 740 && mouseY > 280 && mouseY < 360) {
fill(255, 0, 0, 100);
square(660, 280, 80);
}
//800 red squares
if (mouseX > 60 && mouseX < 140 && mouseY > 370 && mouseY < 450) {
fill(255, 0, 0, 100);
square(60, 370, 80);
}
if (mouseX > 180 && mouseX < 260 && mouseY > 370 && mouseY < 450) {
fill(255, 0, 0, 100);
square(180, 370, 80);
}
if (mouseX > 300 && mouseX < 380 && mouseY > 370 && mouseY < 450) {
fill(255, 0, 0, 100);
square(300, 370, 80);
}
if (mouseX > 420 && mouseX < 500 && mouseY > 370 && mouseY < 450) {
fill(255, 0, 0, 100);
square(420, 370, 80);
}
if (mouseX > 540 && mouseX < 620 && mouseY > 370 && mouseY < 450) {
fill(255, 0, 0, 100);
square(540, 370, 80);
}
if (mouseX > 660 && mouseX < 740 && mouseY > 370 && mouseY < 450) {
fill(255, 0, 0, 100);
square(660, 370, 80);
}
//1000 red squares
if (mouseX > 60 && mouseX < 140 && mouseY > 460 && mouseY < 540) {
fill(255, 0, 0, 100);
square(60, 460, 80);
}
if (mouseX > 180 && mouseX < 260 && mouseY > 460 && mouseY < 540) {
fill(255, 0, 0, 100);
square(180, 460, 80);
}
if (mouseX > 300 && mouseX < 380 && mouseY > 460 && mouseY < 540) {
fill(255, 0, 0, 100);
square(300, 460, 80);
}
if (mouseX > 420 && mouseX < 500 && mouseY > 460 && mouseY < 540) {
fill(255, 0, 0, 100);
square(420, 460, 80);
}
if (mouseX > 540 && mouseX < 620 && mouseY > 460 && mouseY < 540) {
fill(255, 0, 0, 100);
square(540, 460, 80);
}
if (mouseX > 660 && mouseX < 740 && mouseY > 460 && mouseY < 540) {
fill(255, 0, 0, 100);
square(660, 460, 80);
}
}
if (state == 3) {
background(0, 0, 100);
textSize(32);
stroke(0, 0, 0);
fill(255, 255, 255);
text("Jeopardy", 325, 30);
textSize(20)
fill(0, 255, 0);
text("Tie Breaker/Sudden Death", 460, 30);
fill(0, 0, 255);
rect(718, 5, 74, 30);
fill(0, 0, 0)
textSize(14)
text("Main Menu", 720, 25);
if (mouseX > 718 && mouseX < 792 && mouseY > 5 && mouseY < 35) {
fill(255, 0, 0, 100);
rect(718, 5, 74, 30);
}
textSize(32);
stroke(0, 0, 0);
fill(255, 255, 255);
text("This is where the sudden death question is going to go!", 5, 140)
}
//all questions and answers before this line!!!!
}
function mousePressed() {
// main buttons
//rect(615, 5, 92, 30);
if (mouseX > 615 && mouseX < 707 && mouseY > 5 && mouseY < 35 && (state == 5) && (a1 || a2 || a3 || a4 || a5 || a6 || a7 || a8 || a9 || a10 || a11 || a12 || a13 || a14 || a15 || a16 || a17 || a18 || a19 || a20 || a21 || a22 || a23 || a24 || a25 || a26 || a27 || a28 || a29 || a30)) {
a1 = false;
a2 = false;
a3 = false;
a4 = false;
a5 = false;
a6 = false;
a7 = false;
a8 = false;
a9 = false;
a10 = false;
a11 = false;
a12 = false;
a13 = false;
a14 = false;
a15 = false;
a16 = false;
a17 = false;
a18 = false;
a19 = false;
a20 = false;
a21 = false;
a22 = false;
a23 = false;
a24 = false;
a25 = false;
a26 = false;
a27 = false;
a28 = false;
a29 = false;
a30 = false;
state = 1;
return;
}
if (mouseX > 120 && mouseX < 230 && mouseY > 548 && mouseY < 598 && (state == 0)) {
state = 1;
}
if (mouseX > 270 && mouseX < 380 && mouseY > 548 && mouseY < 598 && (state == 0)) {
state = 2;
}
if (mouseX > 430 && mouseX < 540 && mouseY > 548 && mouseY < 598 && (state == 0)) {
state = 3;
}
if (mouseX > 718 && mouseX < 792 && mouseY > 5 && mouseY < 35 && (state == 1)) {
state = 0;
}
if (mouseX > 718 && mouseX < 792 && mouseY > 5 && mouseY < 35 && (state == 2)) {
state = 0;
}
if (mouseX > 718 && mouseX < 792 && mouseY > 5 && mouseY < 35 && (state == 3)) {
state = 0;
}
//question and answer buttons for round 1
if (mouseX > 60 && mouseX < 140 && mouseY > 100 && mouseY < 180 && (state == 1)) {
state = 4;
q1 = true;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && q1 && (state == 4)) {
state = 5;
q1 = false;
a1 = true;
}
if (mouseX > 180 && mouseX < 260 && mouseY > 100 && mouseY < 180 && (state == 1)) {
state = 4;
q2 = true;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && q2 && (state == 4)) {
state = 5;
q2 = false;
a2 = true;
}
if (mouseX > 300 && mouseX < 380 && mouseY > 100 && mouseY < 180 && (state == 1)) {
state = 4;
q3 = true;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && q3 && (state == 4)) {
state = 5;
q3 = false;
a3 = true;
}
if (mouseX > 420 && mouseX < 500 && mouseY > 100 && mouseY < 180 && (state == 1)) {
state = 4
q4 = true;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && q4 && (state == 4)) {
state = 5;
q4 = false;
a4 = true;
}
if (mouseX > 540 && mouseX < 620 && mouseY > 100 && mouseY < 180 && (state == 1)) {
state = 4;
q5 = true;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && q5 && (state == 4)) {
state = 5;
q5 = false;
a5 = true;
}
if (mouseX > 660 && mouseX < 740 && mouseY > 100 && mouseY < 180 && (state == 1)) {
state = 4;
q6 = true;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && q6 && (state == 4)) {
state = 5;
q6 = false;
a6 = true;
}
if (mouseX > 60 && mouseX < 140 && mouseY > 190 && mouseY < 270 && (state == 1)) {
state = 4;
q7 = true;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && q7 && (state == 4)) {
state = 5;
q7 = false;
a7 = true;
}
if (mouseX > 180 && mouseX < 260 && mouseY > 190 && mouseY < 270 && (state == 1)) {
state = 4;
q8 = true;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && q8 && (state == 4)) {
state = 5;
q8 = false;
a8 = true;
}
if (mouseX > 300 && mouseX < 380 && mouseY > 190 && mouseY < 270 && (state == 1)) {
state = 4;
q9 = true;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && q9 && (state == 4)) {
state = 5;
q9 = false;
a9 = true;
}
if (mouseX > 420 && mouseX < 500 && mouseY > 190 && mouseY < 270 && (state == 1)) {
state = 4;
q10 = true;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && q10 && (state == 4)) {
state = 5;
q10 = false;
a10 = true;
}
if (mouseX > 540 && mouseX < 620 && mouseY > 190 && mouseY < 270 && (state == 1)) {
state = 4;
q11 = true;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && q11 && (state == 4)) {
state = 5;
q11 = false;
a11 = true;
}
if (mouseX > 660 && mouseX < 740 && mouseY > 190 && mouseY < 270 && (state == 1)) {
state = 4;
q12 = true;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && q12 && (state == 4)) {
state = 5;
q12 = false;
a12 = true;
}
if (mouseX > 60 && mouseX < 140 && mouseY > 280 && mouseY < 360 && (state == 1)) {
state = 4;
q13 = true;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && q13 && (state == 4)) {
state = 5;
q13 = false;
a13 = true;
}
if (mouseX > 180 && mouseX < 260 && mouseY > 280 && mouseY < 360 && (state == 1)) {
state = 4;
q14 = true;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && q14 && (state == 4)) {
state = 5;
q14 = false;
a14 = true;
}
if (mouseX > 300 && mouseX < 380 && mouseY > 280 && mouseY < 360 && (state == 1)) {
state = 4;
q15 = true;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && q15 && (state == 4)) {
state = 5;
q15 = false;
a15 = true;
}
if (mouseX > 420 && mouseX < 500 && mouseY > 280 && mouseY < 360 && (state == 1)) {
state = 4;
q16 = true;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && q16 && (state == 4)) {
state = 5;
q16 = false;
a16 = true;
}
if (mouseX > 540 && mouseX < 620 && mouseY > 280 && mouseY < 360 && (state == 1)) {
state = 4;
q17 = true;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && q17 && (state == 4)) {
state = 5;
q17 = false;
a17 = true;
}
if (mouseX > 660 && mouseX < 740 && mouseY > 280 && mouseY < 360 && (state == 1)) {
state = 4;
q18 = true;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && q18 && (state == 4)) {
state = 5;
q18 = false;
a18 = true;
}
if (mouseX > 660 && mouseX < 740 && mouseY > 370 && mouseY < 450 && (state == 1)) {
state = 4;
q19 = true;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && q19 && (state == 4)) {
state = 5;
q19 = false;
a19 = true;
}
if (mouseX > 60 && mouseX < 140 && mouseY > 370 && mouseY < 450 && (state == 1)) {
state = 4;
q20 = true;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && q20 && (state == 4)) {
state = 5;
q20 = false;
a20 = true;
}
if (mouseX > 180 && mouseX < 260 && mouseY > 370 && mouseY < 450 && (state == 1)) {
state = 4;
q21 = true;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && q21 && (state == 4)) {
state = 5;
q21 = false;
a21 = true;
}
if (mouseX > 300 && mouseX < 380 && mouseY > 370 && mouseY < 450 && (state == 1)) {
state = 4;
q22 = true;
return;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && q22 && (state == 4)) {
state = 5;
q22 = false;
a22 = true;
return;
}
if (mouseX > 420 && mouseX < 500 && mouseY > 370 && mouseY < 450 && (state == 1)) {
state = 4;
q23 = true;
return;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && q23 && (state == 4)) {
state = 5;
q23 = false;
a23 = true;
}
if (mouseX > 540 && mouseX < 620 && mouseY > 370 && mouseY < 450 && (state == 1)) {
state = 4;
q24 = true;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && q24 && (state == 4)) {
state = 5;
q24 = false;
a24 = true;
}
if (mouseX > 660 && mouseX < 740 && mouseY > 460 && mouseY < 540 && (state == 1)) {
state = 4;
q25 = true;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && q25 && (state == 4)) {
state = 5;
q25 = false;
a25 = true;
}
if (mouseX > 60 && mouseX < 140 && mouseY > 460 && mouseY < 540 && (state == 1)) {
state = 4;
q26 = true;
}
if (300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && q26 && (state == 4)) {
state = 5;
q26 = false;
a26 = true;
}
if (mouseX > 180 && mouseX < 260 && mouseY > 460 && mouseY < 540 && (state == 1)) {
state = 4;
q27 = true;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && q27 && (state == 4)) {
state = 5;
q27 = false;
a27 = true;
}
if (mouseX > 300 && mouseX < 380 && mouseY > 460 && mouseY < 540 && (state == 1)) {
state = 4;
q28 = true;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && q28 && (state == 4)) {
state = 5;
q28 = false;
a28 = true;
}
if (mouseX > 420 && mouseX < 500 && mouseY > 460 && mouseY < 540 && (state == 1)) {
state = 4;
q29 = true;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && q29 && (state == 4)) {
state = 5;
q29 = false;
a29 = true;
}
if (mouseX > 540 && mouseX < 620 && mouseY > 460 && mouseY < 540 && (state == 1)) {
state = 4;
q30 = true;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && q30 && (state == 4)) {
state = 5;
q30 = false;
a30 = true;
}
//question and answer buttons for round 2
if (mouseX > 615 && mouseX < 707 && mouseY > 5 && mouseY < 35 && (state == 5) && (aa1 || aa2 || aa3 || aa4 || aa5 || aa6 || aa7 || aa8 || aa9 || aa10 || aa11 || aa12 || aa13 || aa14 || aa15 || aa16 || aa17 || aa18 || aa19 || aa20 || aa21 || aa22 || aa23 || aa24 || aa25 || aa26 || aa27 || aa28 || aa29 || aa30)) {
aa1 = false;
aa2 = false;
aa3 = false;
aa4 = false;
aa5 = false;
aa6 = false;
aa7 = false;
aa8 = false;
aa9 = false;
aa10 = false;
aa11 = false;
aa12 = false;
aa13 = false;
aa14 = false;
aa15 = false;
aa16 = false;
aa17 = false;
aa18 = false;
aa19 = false;
aa20 = false;
aa21 = false;
aa22 = false;
aa23 = false;
aa24 = false;
aa25 = false;
aa26 = false;
aa27 = false;
aa28 = false;
aa29 = false;
aa30 = false;
state = 2;
}
if (mouseX > 60 && mouseX < 140 && mouseY > 100 && mouseY < 180 && (state == 2)) {
state = 4;
qq1 = true;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && qq1 && (state == 4)) {
state = 5;
qq1 = false;
aa1 = true;
}
if (mouseX > 180 && mouseX < 260 && mouseY > 100 && mouseY < 180 && (state == 2)) {
state = 4;
qq2 = true;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && qq2 && (state == 4)) {
state = 5;
qq2 = false;
aa2 = true;
}
if (mouseX > 300 && mouseX < 380 && mouseY > 100 && mouseY < 180 && (state == 2)) {
state = 4;
qq3 = true;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && qq3 && (state == 4)) {
state = 5;
qq3 = false;
aa3 = true;
}
if (mouseX > 420 && mouseX < 500 && mouseY > 100 && mouseY < 180 && (state == 2)) {
state = 4
qq4 = true;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && qq4 && (state == 4)) {
state = 5;
qq4 = false;
aa4 = true;
}
if (mouseX > 540 && mouseX < 620 && mouseY > 100 && mouseY < 180 && (state == 2)) {
state = 4;
qq5 = true;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && qq5 && (state == 4)) {
state = 5;
qq5 = false;
aa5 = true;
}
if (mouseX > 660 && mouseX < 740 && mouseY > 100 && mouseY < 180 && (state == 2)) {
state = 4;
qq6 = true;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && qq6 && (state == 4)) {
state = 5;
qq6 = false;
aa6 = true;
}
if (mouseX > 60 && mouseX < 140 && mouseY > 190 && mouseY < 270 && (state == 2)) {
state = 4;
qq7 = true;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && qq7 && (state == 4)) {
state = 5;
qq7 = false;
aa7 = true;
}
if (mouseX > 180 && mouseX < 260 && mouseY > 190 && mouseY < 270 && (state == 2)) {
state = 4;
qq8 = true;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && qq8 && (state == 4)) {
state = 5;
qq8 = false;
aa8 = true;
}
if (mouseX > 300 && mouseX < 380 && mouseY > 190 && mouseY < 270 && (state == 2)) {
state = 4;
qq9 = true;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && qq9 && (state == 4)) {
state = 5;
qq9 = false;
aa9 = true;
}
if (mouseX > 420 && mouseX < 500 && mouseY > 190 && mouseY < 270 && (state == 2)) {
state = 4;
qq10 = true;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && qq10 && (state == 4)) {
state = 5;
qq10 = false;
aa10 = true;
}
if (mouseX > 540 && mouseX < 620 && mouseY > 190 && mouseY < 270 && (state == 2)) {
state = 4;
qq11 = true;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && qq11 && (state == 4)) {
state = 5;
qq11 = false;
aa11 = true;
}
if (mouseX > 660 && mouseX < 740 && mouseY > 190 && mouseY < 270 && (state == 2)) {
state = 4;
qq12 = true;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && qq12 && (state == 4)) {
state = 5;
qq12 = false;
aa12 = true;
}
if (mouseX > 60 && mouseX < 140 && mouseY > 280 && mouseY < 360 && (state == 2)) {
state = 4;
qq13 = true;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && qq13 && (state == 4)) {
state = 5;
qq13 = false;
aa13 = true;
}
if (mouseX > 180 && mouseX < 260 && mouseY > 280 && mouseY < 360 && (state == 2)) {
state = 4;
qq14 = true;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && qq14 && (state == 4)) {
state = 5;
qq14 = false;
aa14 = true;
}
if (mouseX > 300 && mouseX < 380 && mouseY > 280 && mouseY < 360 && (state == 2)) {
state = 4;
qq15 = true;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && qq15 && (state == 4)) {
state = 5;
qq15 = false;
aa15 = true;
}
if (mouseX > 420 && mouseX < 500 && mouseY > 280 && mouseY < 360 && (state == 2)) {
state = 4;
qq16 = true;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && qq16 && (state == 4)) {
state = 5;
qq16 = false;
aa16 = true;
}
if (mouseX > 540 && mouseX < 620 && mouseY > 280 && mouseY < 360 && (state == 2)) {
state = 4;
qq17 = true;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && qq17 && (state == 4)) {
state = 5;
qq17 = false;
aa17 = true;
}
if (mouseX > 660 && mouseX < 740 && mouseY > 280 && mouseY < 360 && (state == 2)) {
state = 4;
qq18 = true;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && qq18 && (state == 4)) {
state = 5;
qq18 = false;
aa18 = true;
}
if (mouseX > 660 && mouseX < 740 && mouseY > 370 && mouseY < 450 && (state == 2)) {
state = 4;
qq19 = true;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && qq19 && (state == 4)) {
state = 5;
qq19 = false;
aa19 = true;
}
if (mouseX > 60 && mouseX < 140 && mouseY > 370 && mouseY < 450 && (state == 2)) {
state = 4;
qq20 = true;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && qq20 && (state == 4)) {
state = 5;
qq20 = false;
aa20 = true;
}
if (mouseX > 180 && mouseX < 260 && mouseY > 370 && mouseY < 450 && (state == 2)) {
state = 4;
qq21 = true;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && qq21 && (state == 4)) {
state = 5;
qq21 = false;
aa21 = true;
}
if (mouseX > 300 && mouseX < 380 && mouseY > 370 && mouseY < 450 && (state == 2)) {
state = 4;
qq22 = true;
return;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && qq22 && (state == 4)) {
state = 5;
qq22 = false;
aa22 = true;
return;
}
if (mouseX > 420 && mouseX < 500 && mouseY > 370 && mouseY < 450 && (state == 2)) {
state = 4;
qq23 = true;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && qq23 && (state == 4)) {
state = 5;
qq23 = false;
aa23 = true;
}
if (mouseX > 540 && mouseX < 620 && mouseY > 370 && mouseY < 450 && (state == 2)) {
state = 4;
qq24 = true;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && qq24 && (state == 4)) {
state = 5;
qq24 = false;
aa24 = true;
}
if (mouseX > 660 && mouseX < 740 && mouseY > 460 && mouseY < 540 && (state == 2)) {
state = 4;
qq25 = true;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && qq25 && (state == 4)) {
state = 5;
qq25 = false;
aa25 = true;
}
if (mouseX > 60 && mouseX < 140 && mouseY > 460 && mouseY < 540 && (state == 2)) {
state = 4;
qq26 = true;
}
if (300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && qq26 && (state == 4)) {
state = 5;
qq26 = false;
aa26 = true;
}
if (mouseX > 180 && mouseX < 260 && mouseY > 460 && mouseY < 540 && (state == 2)) {
state = 4;
qq27 = true;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && qq27 && (state == 4)) {
state = 5;
qq27 = false;
aa27 = true;
}
if (mouseX > 300 && mouseX < 380 && mouseY > 460 && mouseY < 540 && (state == 2)) {
state = 4;
qq28 = true;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && qq28 && (state == 4)) {
state = 5;
qq28 = false;
aa28 = true;
}
if (mouseX > 420 && mouseX < 500 && mouseY > 460 && mouseY < 540 && (state == 2)) {
state = 4;
qq29 = true;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && qq29 && (state == 4)) {
state = 5;
qq29 = false;
aa29 = true;
}
if (mouseX > 540 && mouseX < 620 && mouseY > 460 && mouseY < 540 && (state == 2)) {
state = 4;
qq30 = true;
}
if (mouseX > 300 && mouseX < 420 && mouseY > 380 && mouseY < 430 && qq30 && (state == 4)) {
state = 5;
qq30 = false;
aa30 = true;
}
}