//PS3 #2 //Olivia Kolakowski PFont font; String txt1= "Nintendo"; String txt2= "Select Start"; String txt3= "A B"; void setup(){ size(500, 500, P3D); font =loadFont("Arial-Black-10.vlw"); textFont(font); } void draw(){ background(220); lights(); translate(width/2, height/2, 100); float a=map(mouseX,0,height,0,PI); rotateX(a); rotateZ(frameCount/200.0); pushMatrix(); noStroke(); //controller fill(160, 156, 156); box(200, 100, 20); translate(0,10,10); fill(0); box(180, 70, 1); translate(0,0,1); textAlign(RIGHT); fill(255,0,0); text(txt1,85,-15); popMatrix(); // translate(-65, 10, 10); fill(0); box(10, 30, 15); fill(0); box(30, 10, 15); translate(0, 0, 1); fill(185, 185,185); rect(-9, -18, 17, 36); rect(-19, -8, 37, 16); translate(0, 0, -1); //middle design translate(0,0,1); fill(116, 90, 85); rect(40,-35,50,10); translate(0,13); rect(40,-35,50,9); translate(0,13); rect(40,-35,50,9); //start and select fill(185,185,185); rect(40,-22,50,15); rect(105,-22,16,16); rect(130,-22,16,16); fill(116, 90, 85); rect(40,-3,50,9); //button outline stroke(50); strokeWeight(2); noFill(); translate(2,3); beginShape(LINES); vertex(40,-23,0); vertex(86,-23,0); vertex(86,-12,0); vertex(40,-12,0); vertex(40,-23,0); vertex(40,-12,0); vertex(86,-23,0); vertex(86,-12,0); endShape(); //start and select buttons noStroke(); translate(50,-18); fill(0); box(10,5,10); translate(25,0); box(10,5,10); //a & b buttons translate(0,0,1); fill(255,0,0); translate(36,1); sphere(7); translate(25,0); sphere(7); //"select, start, a, b" textSize(7); translate(0,0,1); textAlign(RIGHT); fill(255,0,0); text(txt2,-50,-14); text(txt3,7,15); }