xxxxxxxxxx
253
function secondStage1(){
home.show();
home.enter();
school.show();
school.enter();
neighborhood.show();
neighborhood.enter();
resident1.show();
resident1.move();
if(resident1.talk()){
textSize(15);
text('I love the sunshine!', resident1.x+resident1.diam/2, resident1.y+resident1.diam/2+20);
}
resident2.show();
resident2.move();
if(resident2.talk()){
textSize(15);
text("I'v decided to join the\n"+"ceramics workshop with\n"+"my family together",resident2.x+resident2.diam/2, resident2.y+resident2.diam/2+20,);
}
resident3.show();
resident3.move();
if(resident3.talk()){
textSize(15);
text("Life without making charts all day\n"+"is so beautiful",resident3.x+resident3.diam/2, resident3.y+resident3.diam/2+20,);
}
SC.show();
SC.move();
}
function sweetHome(){
background(163,221,255);
image(Calligraphy,-50,-50,30.62*4, 26.88*4);
image(painting, 165.7,-180,114.3,114.3)
push();
imageMode(CENTER);
image(paints, 222.85, -24.7,115.15/1.2,86.36/1.2);
pop();
image(meatballs, -280,-182,106.68/1.1,74.75/1.1);
image(bread,-183.02+5,-182, 106.68/1.1, 74.3/1.1);
SC.show();
SC.move();
dad.show();
dad.move();
//dad talks to me
if(dad.talk()){
textSize(15);
text("Come check out my calligraphy work\n"+"and the cat!",dad.x+dad.diam/2, dad.y+dad.diam/2+20);
}
//me approaching Ms.Hei
if(SC.x+SC.diam/2>-70 && SC.x<+(-50+30.62*4+20) && SC.y+SC.diam/2>-70 && SC.y<-50+26.88*4+20){
textAlign(CENTER, CENTER);
textSize(25);
fill(0, 145, 230);
text("......", -50+(30.62*4)/2, -70);
}
mom.show();
mom.move();
//mom talks to me
if(mom.talk()){
textSize(15);
fill(179,0,179);
text("Is that poop bread your work?",mom.x+mom.diam/2, mom.y+mom.diam/2+10);
fill(255,0,102);
text("yep",SC.x+SC.diam/2, SC.y+SC.diam/2+10);
}
//me approching Mr.Grey
if(SC.x+SC.diam/2>-240 && SC.x<-220+47.55*2+15 && SC.y+SC.diam/2>30 && SC.y<50+63.39*2+20){
image(inelegantGrey2,-220,50,47.55*2,63.43*2);
textAlign(CENTER, CENTER);
textSize(25);
fill(0, 145, 230);
text("......", -220+(47.55*2)/2, 30);
}
else{
image(inelegantGrey,-220,50,47.55*2,63.39*2);
}
//mom talks to dad
if(mom.x+mom.diam/2+20>dad.x-dad.diam/2 && mom.x-mom.diam/2<dad.x+dad.diam/2+20 && mom.y+mom.diam/2+20>dad.y-dad.diam/2 && mom.y-mom.diam/2<dad.y+dad.diam/2+20){
textSize(15);
fill(179,0,179);
text("Scarlett made the bread look like shit",mom.x+mom.diam/2, mom.y+mom.diam/2+20);
fill(0,0,128);
text("wtf?",dad.x+dad.diam/2, dad.y+dad.diam/2+20);
}
homeDoor.show();
homeDoor.out();
}
function education(){
background(255,222,102);
image(math1, -200,-150,116.8,116.8);
image(math2, -78.2, -150, 125.1, 48.87);
image(math3,-78.2,-96.13,124.85,48.776);
image(cleopatra,6,69,145.67,86.45);
image(politics,-33.33+190,60,78.72,114.72);
image(machiavelli,-258,7,125.73,83.82);
image(haserot, -127.27,4,94.996,94.996);
image(pencils,-260,95.82,125,86.25);
SC.show();
SC.move();
teacher1.show();
teacher1.move();
teacher2.show();
teacher2.move();
mathStudent1.show();
mathStudent1.move();
mathStudent2.show();
mathStudent2.move();
mathStudent3.show();
mathStudent3.move();
mathStudent4.show();
mathStudent4.move();
politicsStudent1.show();
politicsStudent1.move();
politicsStudent2.show();
politicsStudent2.move();
politicsStudent3.show();
politicsStudent3.move();
politicsStudent4.show();
politicsStudent4.move();
politicsStudent5.show();
politicsStudent5.move();
teacher3.show();
if(teacher3.talk()){
textSize(15)
fill(0,0,204);
text("Education is for\n"+"self development and fulfillment.\n"+"No materialistic purpose anymore.\n"+"We offer people biggest freedom\n"+"to choose the way they want to\n"+"educate themselves.",teacher3.x+teacher3.diam/2, teacher3.y+teacher3.diam/2+25)
}
if(teacher1.talk()){
fill(46,184,46);
textSize(15);
text("We're here just to help and guide",teacher1.x+teacher1.diam/2, teacher1.y+teacher1.diam/2+20);
}
if(teacher2.talk()){
textSize(15);
fill(255,80,80);
text("Teenagers are free to take\n"+"classes with adults.", teacher2.x+teacher2.diam/2, teacher2.y+teacher2.diam/2+20)
}
schoolDoor.show();
schoolDoor.out();
}
function community(){
background(255, 153, 153);
SC.show();
SC.move();
communityDoor.show();
communityDoor.out();
tomatoExpert.show();
tomatoExpert.move();
//Resident identities
textSize(15);
fill(255,26,26);
text("Tomato Expert",tomatoExpert.x+tomatoExpert.diam/2, tomatoExpert.y-tomatoExpert.diam/2-12);
//talk to tomato expert
if(tomatoExpert.talk()){
fill(255,26,26);
textSize(15);
text("Red Beefsteak tomato\n Cherry tomato, Super Sweet 100...",tomatoExpert.x+tomatoExpert.diam/2, tomatoExpert.y+tomatoExpert.diam/2+20);
}
littleTeaLord.show();
littleTeaLord.move();
textSize(15);
fill(29,105,28);
text("Little Tea Lord",littleTeaLord.x+littleTeaLord.diam/2, littleTeaLord.y-littleTeaLord.diam/2-12);
//talk to little tea lord
if(littleTeaLord.talk()){
fill(29,105,28);
textSize(15);
text("West Lake Longjing is at its best quality\n when picked before Tomb-Sweeping Day.\n Remember to finish your new tea\n before winter.\n It doesn't preserve long.",littleTeaLord.x+littleTeaLord.diam/2, littleTeaLord.y+littleTeaLord.diam/2+20)
fill(255,0,102)
text("Thanks for reminding",SC.x+SC.diam/2, SC.y+SC.diam/2+20);
}
organicPerfumer.show();
organicPerfumer.move();
textSize(15);
fill(organicPerfumer.r,organicPerfumer.g,organicPerfumer.b);
text("Organic Perfumer",organicPerfumer.x+organicPerfumer.diam/2, organicPerfumer.y-organicPerfumer.diam/2-12);
// talk to organic perfumer
if(organicPerfumer.talk()){
fill(organicPerfumer.r,organicPerfumer.g,organicPerfumer.b);
textSize(15);
text("Recently I'm exploring \n different potentials for neroli", organicPerfumer.x+organicPerfumer.diam/2, organicPerfumer.y+organicPerfumer.diam/2+20);
}
littlecolorPicker.show();
littlecolorPicker.move();
textSize(15);
fill(littlecolorPicker.r,littlecolorPicker.g,littlecolorPicker.b);
text("Little Color Picker",littlecolorPicker.x+littlecolorPicker.diam/2, littlecolorPicker.y-littlecolorPicker.diam/2-12);
//talk to little color picker
if(littlecolorPicker.talk()){
fill(littlecolorPicker.r,littlecolorPicker.g,littlecolorPicker.b);
textSize(15);
text("I have no sense for math or science\n but I do distinguish two colors having\n the slightest difference in their RGB values",littlecolorPicker.x+littlecolorPicker.diam/2, littlecolorPicker.y+littlecolorPicker.diam/2+20);
fill(255,0,102);
text("I'm jealous",SC.x+SC.diam/2, SC.y+SC.diam/2+20 );
}
healthyCigaretteDeveloper.show();
healthyCigaretteDeveloper.move();
textSize(15);
fill(255,255,0);
text("Healthy Cigarette Developer",healthyCigaretteDeveloper.x+healthyCigaretteDeveloper.diam/2, healthyCigaretteDeveloper.y-healthyCigaretteDeveloper.diam/2-12);
//talk to healthy cigarette developer
if(healthyCigaretteDeveloper.talk()){
fill(255,255,0);
textSize(15);
text("I'm working on finding healthy ingredients to make cigarette.\n I understand sometimes people just want something in their mouths\n for no reason", healthyCigaretteDeveloper.x+healthyCigaretteDeveloper.diam/2, healthyCigaretteDeveloper.y+healthyCigaretteDeveloper.diam/2+20);
}
funnyFoodExplorer.show();
funnyFoodExplorer.move();
textSize(15);
fill(funnyFoodExplorer.r,funnyFoodExplorer.g,funnyFoodExplorer.b);
text("Funny Food Explorer",funnyFoodExplorer.x+funnyFoodExplorer.diam/2, funnyFoodExplorer.y-funnyFoodExplorer.diam/2-12);
//talk to funny food explorer
if(funnyFoodExplorer.talk()){
fill(funnyFoodExplorer.r,funnyFoodExplorer.g,funnyFoodExplorer.b);
textSize(15);
text("lol I should add your beef BALLs into my collection",funnyFoodExplorer.x+funnyFoodExplorer.diam/2, funnyFoodExplorer.y+funnyFoodExplorer.diam/2+20);
fill(255,0,102);
text("lol go ahead~",SC.x+SC.diam/2, SC.y+SC.diam/2+20);
}
preworkResearcher.show();
preworkResearcher.move();
textSize(15);
fill(preworkResearcher.r,preworkResearcher.g,preworkResearcher.b);
text("Pre-work Society Researcher",preworkResearcher.x+preworkResearcher.diam/2, preworkResearcher.y-preworkResearcher.diam/2-12);
//talk to prework researcher
if(preworkResearcher.talk()){
fill(preworkResearcher.r,preworkResearcher.g,preworkResearcher.b);
textSize(15);
text("How did people 200 years ago\n fight or even kill each other just for cashes?\n",preworkResearcher.x+preworkResearcher.diam/2, preworkResearcher.y+preworkResearcher.diam/2+20);
fill(255,0,102);
text("......",SC.x+SC.diam/2, SC.y+SC.diam/2+20);
}
ghostResearcher.show();
ghostResearcher.move();
textSize(15);
fill(ghostResearcher.r,ghostResearcher.g,ghostResearcher.b);
text("Ghost Researcher",ghostResearcher.x+ghostResearcher.diam/2, ghostResearcher.y-ghostResearcher.diam/2-12);
//talk to ghost researcher
if(ghostResearcher.talk()){
fill(ghostResearcher.r,ghostResearcher.g,ghostResearcher.b);
textSize(15);
text("I found a ghost last week in my refrigerator.\n He told me that he died\n from eating too much", ghostResearcher.x+ghostResearcher.diam/2, ghostResearcher.y+ghostResearcher.diam/2+20);
fill(255,0,102);
text("lol", SC.x+SC.diam/2, SC.y+SC.diam/2+20);
}
}