A. Basic Information
Title of the project: Re-walk the Journey of Little Prince
Created by Jiaqi Qian & Jingyi Ma. Instructed by Gottfried Haider.
- Final Video:
B. Conception and Design
The birth of the project has gone through twist and turns. At the beginning, we focused on two techniques–sensor and sound visualization, and we decided to apply the music sequencer to the project. However, we found that there was a big chance that it was a mess in the end after applying the music sequencer since we wanted to use sounds of stuff and human beings rather than musical instrument. Moreover, we would like the project to be a storytelling way rather than a game which we did in the midterm project. So we finally borrowed the idea of audiobook and decided to create a mechanism to let users experience the story in an immersive way.
We thought the project to be interactive by physical part and digital part. In the physical part, users can hold something to touch the sensors on different patterns on the wooden “book” we made by laser cutting. When the sensors received values, it would trigger the LEDs to light up and the storyline as well as the according background sounds of the Little Prince would pop up on the screen. In this way, users can immerse themselves in the perspective of the Little Prince, experiencing the story that happened to him firsthand, and completing this journey with a more immersive experience.
In the user-testing session, the biggest problem we met was that the users were confused with the magnet in their hands and didn’t know what to do. To solve it, we added hints on the screen by processing, created a Little Prince shrink pack sign can be held by users and glued some stars around each magnetic sensor. And at that time, we haven’t figured out what to be shown on the screen and the sound wasn’t integrated into the project. Eventually, we found out we could add some classical lines of each character on each planet and used AI Generator to dub them.
C. Fabrication and Production
(a). Physical Part
The Physical parts mainly include welding of light strips, laser cutting of different patterns on the book, building sensors and circuits. We chose Reed Switch as our sensors. Since there would be mixed sounds in our project, we gave up microphone sensor we used in midterm and for the sake of convenience and that the sensor can integrate into the story scene of the Little Prince going to different planets, we chose the Magnetic sensor. To make the Neopixels fit the laser cutting patterns on the book, we cut the LED strip into several short parts, welded them and stick them to the right positions on the cardboard under the wooden book.
And then we built the laser cutting patterns on Tinkercad. This was a tricky part since we didn’t know that some enclosed shapes cannot be accurately cut by laser cutting. We want the pattern to be transparent, so we must keep only the outline for each pattern. Thanks to Professor Andy’s help, we learned to create tiny gaps on each closed line and integrate them into the original image, ensuring that the laser cutting machine can hollow out the patterns.
For the circuit part, the essential part for our project is to realize that the role of Reed Switch sensor in the circuit is similar to switch, since unlike other sensors, it only has two wires. With the help of LA Siwei, we figured out the right way to connect Reed Switch into the circuit and since we have 10 patterns, the simple circuit needs to be repeated 10 times and we also connected the Neopixel into the circuit.
In addition, to provide users with sufficient guidance, we designed the magnet as a heat shrink sheet with a Little Prince and star pattern, added stars around the magnet sensor, and provided the prompts on the screen.
(b). Digital Part
The digital part combines Arduino and Processing and their serial communication. The control of the LED strips are completed in Arduino and the displays of the story lines on different planet and the sounds are completed in Processing. Since each story on different planets are supposed to triggered by the magnetic sensor, the serial communication is from Arduino to Processing. By referring to previous lecture slides, we built serial communication in Processing in a relative smooth way. The hard part is that in Processing, we couldn’t find out how to make the picture switch to next one when we move on to the next sensor. Varies problems came out which we never thought of . They are like: the pictures didn’t show up anymore when the sensor worked well, or when we switched to next sensor, the previous image didn’t disappear, or it was just that there is no connection to Arduino. With so many helps from professors, LAs, and Fellows, especially thanks professor Gottfried, we restarted the Arduino IDE and switched the pins. And we found we forgot to change the codes in Arduino when we did the serial communication in Processing.
And at first, we also found that the Neopixels kept flashing when power on, which would be a big challenge for users’ eye health. Then we figured it out by deleted the “FastLED.show();” for each sensor and only saved the line in the end of the void loop in Arduino.
Additionally, we would like to mention that the voices behind lines of each characters were created by Narakeet AI Generator and they were combined together in Jianying app since many guests in IMA show mentioned this problem.
D. Conclusions
Users interact with the magnetic sensor using a heat-shrink film featuring the Little Prince. Successful interaction will illuminate the respective planet. Subsequently, the computer screen switches to display specific details about this planet: including dialogues between the Little Prince and the inhabitants, accompanied by spoken lines and unique background music. Upon lighting up all planets, users are prompted to return to Earth, touch the magnetic sensor representing Earth, triggering a gradual transformation of all planet lights into orange and there will be an ending music. This signifies the successful completion of the journey undertaken by the Little Prince.
Things that need to be further improved:
- Though we added some guidance for the users such as the little prince heat-shrink board, if we put ourselves into other’s shoes, I think it would be more convenient for users to add Led paths connecting different patterns showing them where to go next.
- If there is more time, I think it’s better to add the music sequencer into the project since it would be far more interesting if the users can create their individual things than getting the same results.
- The decoration of the project should be more attraction on the outlook.
E. Disassembly
F. Appendix
- Audios:
https://drive.google.com/drive/folders/1Uh3MgolY1xXM-nhAQGxuA4kH5S7o1vje?usp=drive_link
- Circuit:
- Arduino code:
#include
#define NUM_LEDS 110 // 灯带上的LED数量
#define DATA_PIN 12
CRGB leds[NUM_LEDS];
bool b612On = false;
bool globeOn = false;
bool cashOn = false;
bool lampOn = false;
bool doveOn = false;
bool wineOn = false;
bool clapOn = false;
bool airOn = false;
bool kingOn = false;
bool earthOn = false;
int b612 = 2; // 传感器连接到的引脚
int globe = 3;
int cash = 4;
int lamp = 5;
int dove = 6;
int wine = 7;
int clap = 8;
int air = 9;
int king = 10;
int earth = 11; //king和earth的sensor已经交换位置
void setup() {
Serial.begin(9600);
FastLED.addLeds<NEOPIXEL, DATA_PIN>(leds, NUM_LEDS);
FastLED.setBrightness(40);
pinMode(b612, INPUT);
pinMode(globe, INPUT);
pinMode(cash, INPUT);
pinMode(lamp, INPUT);
pinMode(dove, INPUT);
pinMode(wine, INPUT);
pinMode(clap, INPUT);
pinMode(air, INPUT);
pinMode(king, INPUT);
pinMode(earth, INPUT); // 设置传感器引脚为输入
}
void loop() {
int b612Value = digitalRead(b612); // 读取传感器的数值
// 如果传感器读到高电平,对应部分的灯带亮起
if (b612On == true && globeOn == true && cashOn == true && lampOn == true && doveOn == true && wineOn == true && clapOn == true && airOn == true && kingOn == true && earthOn == true) {
for (int i = 0; i < 106; i++) {
leds[i] = CRGB(255, 165, 0);
FastLED.show();
delay(250);
}
} else {
if (b612Value == HIGH) {
// 控制灯带亮起的部分
// 例如:
for (int i = 0; i < 6; i++) {
leds[i] = CRGB(255, 215, 0); // 设置颜色
}
for (int i = 6; i < 8; i++) {
leds[i] = CRGB(255, 193, 37);
//陨石坑
}
for (int i = 8; i < 15; i += 1) {
leds[i] = CRGB(255, 127, 0);
//狐狸
}
for (int i = 15; i < 19; i += 1) {
leds[i] = CRGB(0, 0, 139);
//小王子的裤子
}
for (int i = 19; i < 22; i += 1) {
leds[i] = CRGB(255, 0, 0);
//玫瑰
}
for (int i = 22; i < 29; i += 1) {
leds[i] = CRGB(255, 255, 0);
//围巾
}
for (int i = 29; i < 32; i += 1) {
leds[i] = CRGB(107, 142, 35);
//衣服
}
for (int i = 32; i < 35; i += 1) {
leds[i] = CRGB(238, 221, 130);
//衣服
}
for (int i = 35; i < 37; i += 1) {
leds[i] = CRGB(225, 215, 0);
//皇冠
}
b612On = true;
// 以此类推,根据需要控制其他部分的灯带
} /*else {
// 如果传感器读到低电平,可以将所有灯带关闭
for (int i=0; i < 38; i++) {
leds[i] = CRGB(0, 0, 0);
} // 关闭所有灯带
}*/
int globeValue = digitalRead(globe); // 读取传感器的数值
// 如果传感器读到高电平,对应部分的灯带亮起
if (globeValue == HIGH) {
for (int i = 37; i < 53; i += 1) {
leds[i] = CRGB(224, 255, 255);
}
globeOn = true;
} /*else {
// 如果传感器读到低电平,可以将所有灯带关闭
for (int i=37; i < 53; i += 1) {
leds[i] = CRGB(0, 0, 0);
} // 关闭所有灯带
}*/
int cashValue = digitalRead(cash); // 读取传感器的数值
// 如果传感器读到高电平,对应部分的灯带亮起
if (cashValue == HIGH) {
for (int i = 53; i < 65; i += 1) {
leds[i] = CRGB(0, 205, 0);
}
cashOn = true;
} /*else {
// 如果传感器读到低电平,可以将所有灯带关闭
for (int i=53; i < 65; i += 1) {
leds[i] = CRGB(0, 0, 0);
} // 关闭所有灯带
}*/
int lampValue = digitalRead(lamp); // 读取传感器的数值
// 如果传感器读到高电平,对应部分的灯带亮起
if (lampValue == HIGH) {
for (int i = 65; i < 68; i += 1) {
leds[i] = CRGB(255, 165, 0);
}
lampOn = true;
} /*else {
// 如果传感器读到低电平,可以将所有灯带关闭
for (int i=65; i < 68; i += 1) {
leds[i] = CRGB(0, 0, 0);
} // 关闭所有灯带
}*/
int doveValue = digitalRead(dove); // 读取传感器的数值
// 如果传感器读到高电平,对应部分的灯带亮起
if (doveValue == HIGH) {
for (int i = 68; i < 72; i += 1) {
leds[i] = CRGB(255, 255, 255);
}
doveOn = true;
} /* else {
// 如果传感器读到低电平,可以将所有灯带关闭
for (int i=68; i < 72; i += 1) {
leds[i] = CRGB(0, 0, 0);
} // 关闭所有灯带
}*/
int wineValue = digitalRead(wine);
if (wineValue == HIGH) {
for (int i = 72; i < 77; i += 1) {
leds[i] = CRGB(0, 51, 0);
}
wineOn = true;
} /*else {
// 如果传感器读到低电平,可以将所有灯带关闭
for (int i=72; i < 77; i += 1) {
leds[i] = CRGB(0, 0, 0);
} // 关闭所有灯带
}*/
int clapValue = digitalRead(clap);
if (clapValue == HIGH) {
for (int i = 77; i < 82; i += 1) {
leds[i] = CRGB(255, 0, 127);
}
clapOn = true;
} /*else {
// 如果传感器读到低电平,可以将所有灯带关闭
for (int i=77; i < 82; i += 1) {
leds[i] = CRGB(0, 0, 0);
} // 关闭所有灯带
}*/
int airValue = digitalRead(air);
if (airValue == HIGH) {
for (int i = 82; i < 92; i += 1) {
leds[i] = CRGB(175, 238, 238);
}
airOn = true;
} /*else {
// 如果传感器读到低电平,可以将所有灯带关闭
for (int i=82; i < 92; i += 1) {
leds[i] = CRGB(0, 0, 0);
} // 关闭所有灯带
}*/
int kingValue = digitalRead(earth);
if (kingValue == HIGH) {
for (int i = 92; i < 105; i += 1) {
leds[i] = CRGB(148, 0, 211);
}
kingOn = true;
} /*else {
// 如果传感器读到低电平,可以将所有灯带关闭
for (int i=92; i < 105; i += 1) {
leds[i] = CRGB(0, 0, 0);
} // 关闭所有灯带
}*/
int earthValue = digitalRead(king);
if (earthValue == HIGH) {
earthOn = true;
}
FastLED.show();
}
Serial.print(b612On);
Serial.print(",");
Serial.print(globeOn);
Serial.print(",");
Serial.print(cashOn);
Serial.print(",");
Serial.print(lampOn);
Serial.print(",");
Serial.print(doveOn);
Serial.print(",");
Serial.print(wineOn);
Serial.print(",");
Serial.print(clapOn);
Serial.print(",");
Serial.print(airOn);
Serial.print(",");
Serial.print(kingOn);
Serial.print(",");
Serial.print(earthOn);
Serial.println();
delay(50);
}
- Processing code:
PImage[] pic = new PImage[11];
boolean[] imageVisibility = new boolean[11]; // Array to track image visibility
int[] xc = new int[11];
int[] yc = new int[11]; // Array with center positions
String[]lines = new String[11];
float angle;
boolean click_other = false;
PFont title;
PFont story;
import processing.serial.*;
import processing.sound.*;
Serial serialPort;
int NUM_OF_VALUES_FROM_ARDUINO = 10;
int arduino_values[] = new int[NUM_OF_VALUES_FROM_ARDUINO];
int prev_arduino_values[] = new int[NUM_OF_VALUES_FROM_ARDUINO];
int AllOn = 0;
SoundFile start;
SoundFile beginning;
SoundFile coin;
SoundFile globe;
SoundFile lamp;
SoundFile dove;
SoundFile wine;
SoundFile clap;
SoundFile plane;
SoundFile crown;
SoundFile ending;
SoundFile flower;
SoundFile richall;
SoundFile geoall;
SoundFile lampall;
SoundFile pilot;
SoundFile birds;
SoundFile drinkall;
SoundFile admireall;
SoundFile kingall;
SoundFile thankyou;
void setup() {
size(1600, 900);
background(25, 25, 60);
initializeImages();
printArray(Serial.list());
serialPort = new Serial(this, "/dev/cu.usbmodem21101", 9600);
title = loadFont("ArimaMadurai-Bold-100.vlw");
story = loadFont("Klee-Medium-50.vlw");
textFont(title, 60);
fill(255);
text(" 'All grown-ups were once children...\n but only few of them remember it.'\n\nLet's re-walk the journey of the little prince.\n Our journey starts from planet B612 \nand ends at earth.", 100, 200);
start = new SoundFile(this, "start.wav");
globe = new SoundFile(this, "rotatingdiqiuyi-geologist.wav");
coin = new SoundFile(this, "coin-businessman.wav");
lamp = new SoundFile(this, "switch-lightingperson.wav");
dove = new SoundFile(this, "gezi-earth.wav");
wine = new SoundFile(this, "pouralchohol-drunk.wav");
clap = new SoundFile(this, "applauding-vain.wav");
plane = new SoundFile(this, "luoxuanjing-earth.wav");
crown = new SoundFile(this, "drum.mp3");
ending = new SoundFile(this, "ending.wav");
beginning = new SoundFile(this, "beginning.wav");
flower = new SoundFile(this, "Flower.wav");
richall = new SoundFile(this, "richall.mp3");
geoall = new SoundFile(this, "geoall.mp3");
lampall = new SoundFile(this, "lampall.mp3");
drinkall = new SoundFile(this, "drinkall.mp3");
admireall= new SoundFile(this, "admireall.mp3");
kingall= new SoundFile(this, "kingall.mp3");
thankyou = new SoundFile(this, "Thankyou.mp3");
birds = new SoundFile(this, "birds.mp3");
pilot = new SoundFile(this, "pilotall.mp3");
start.loop();
beginning.play();
}
int lastImageTriggered = -1;
void draw() {
getSerialData();
if (arduino_values[0] == 1 && prev_arduino_values[0] == 0) {
background(25, 25, 60);
textFont(story, 40);
fill(255);
text("I have a flower,\n whom I water every day.\n I cultivate her, \nand I attend to her.\n Yet I have nothing to show for it.\n It's as though I had been nurturing her for nothing.", 100, 200);
flower.play();
textFont(title, 60);
fill(255, 250, 205);
text("Planet B612", 300, 700);
lastImageTriggered = 0;
AllOn +=1;
} else if (arduino_values[1] == 1 && prev_arduino_values[1] == 0) {
background(25, 25, 60);
textFont(story, 40);
fill(0, 255, 255);
text("-Oh, look! Here is an explorer! Where do you come from?", 100, 100);
fill(255);
geoall.play();
text("-Oh, where I live,it is not very interesting.\n I have three volcanoes. I have also a flower.", 100, 200);
fill(0, 255, 255);
text("-We do not record flowers,because they are ephemeral.", 100, 300);
fill(255);
text("-My flower is ephemeral,\nand she has only four thorns to defend herself against the world. \nAnd I have left her on my planet, all alone!", 100, 400);
textFont(title, 60);
fill(0, 255, 255);
text("Planet of Geographer", 500, 750);
globe.loop();
coin.stop();
lamp.stop();
dove.stop();
wine.stop();
clap.stop();
plane.stop();
crown.stop();
lastImageTriggered = 1;
AllOn +=1;
} else if (arduino_values[2] == 1 && prev_arduino_values[2] == 0) {
background(25, 25, 60);
lastImageTriggered = 2;
AllOn +=1;
textFont(title, 60);
fill(0, 255, 30);
text("Planet of Businessman", 600, 750);
textFont(story, 40);
fill(255, 255, 255);
text("-What good does it do you to own the stars?", 100, 450);
richall.play();
fill(0, 255, 0);
text("-It does me the good of making me rich.",100, 500);
fill(255, 255, 255);
text("-And what good does it do you to be rich?", 100, 550);
fill(0, 255, 0);
text("-It makes it possible for me to buy more stars, if any are discovered.",100,600);
coin.loop();
globe.stop();
lamp.stop();
dove.stop();
wine.stop();
clap.stop();
plane.stop();
crown.stop();
} else if (arduino_values[3] == 1 && prev_arduino_values[3] == 0) {
background(25, 25, 60);
lamp.loop();
coin.stop();
globe.stop();
dove.stop();
wine.stop();
clap.stop();
plane.stop();
crown.stop();
lastImageTriggered = 3;
AllOn +=1;
textFont(title, 60);
fill(255, 215, 0);
text("Planet of Lamplighter", 300, 100);
textFont(story, 40);
fill(255, 250, 205);
text("-From year to year the planet has turned more rapidly\n and the orders have not been changed!\nThe planet now makes a complete turn every minute,\n and I no longer have a single second for repose.\n Once every minute I have to light my lamp and put it out!", 50, 150);
lampall.play();
fill(255, 255, 255);
text("-Your planet is so small that three strides will take you all the way around it.\n To be always in the sunshine, you need only walk along rather slowly.\nThat man is the only one of them all whom I could have made my friend.\n But his planet is indeed too small. There is no room on it for two people. . .", 50, 600);
} else if (arduino_values[4] == 1 && prev_arduino_values[4] == 0) {
background(25, 25, 60);
dove.loop();
coin.stop();
globe.stop();
lamp.stop();
wine.stop();
clap.stop();
plane.stop();
crown.stop();
lastImageTriggered = 4;
textFont(title, 60);
fill(255, 215, 255);
text("Birds", 700, 100);
textFont(story, 40);
fill(255,255,255);
text("The king claims he rules over everything he sees,\n but he doesn't control over a single bird.", 200, 300);
birds.play();
AllOn +=1;
} else if (arduino_values[5] == 1 && prev_arduino_values[5] == 0) {
background(25, 25, 60);
wine.loop();
coin.stop();
globe.stop();
lamp.stop();
dove.stop();
clap.stop();
plane.stop();
crown.stop();
textFont(title, 60);
fill(50, 205, 50);
text("Planet of Tippler", 50, 600);
textFont(story, 40);
fill(255,255,255);
text("-Why are you drinking?",750,200);
drinkall.play();
fill(50, 205, 50);
text("-So that I may forget.",750,250);
fill(255,255,255);
text("-Forget what?",750,300);
fill(50, 205, 50);
text("-Forget that I am ashamed.",750,350);
fill(255,255,255);
text("-Ashamed of what?",750,400);
fill(50, 205, 50);
text("-Ashamed of drinking!",750,450);
lastImageTriggered = 5;
AllOn +=1;
} else if (arduino_values[6] == 1 && prev_arduino_values[6] == 0) {
background(25, 25, 60);
clap.loop();
wine.stop();
coin.stop();
globe.stop();
lamp.stop();
dove.stop();
plane.stop();
crown.stop();
textFont(title, 60);
fill(255, 105, 180);
text("Planet of Conceited Man", 600, 100);
textFont(story, 40);
text("-Ah! I am about to receive a visit\n from an admirer!",500,200);
fill(255,255,255);
text("-What does that mean--'admire'?",500,300);
admireall.play();
delay(1500);
fill(255, 105, 180);
text("-To admire means that you regard me as\n the handsomest, the best-dressed, the richest,\n and the most intelligent man on this planet.",500,350);
fill(255,255,255);
text("-But you are the only man on your planet!",500,600);
lastImageTriggered = 6;
AllOn +=1;
} else if (arduino_values[7] == 1 && prev_arduino_values[7] == 0) {
background(25, 25, 60);
plane.loop();
clap.stop();
wine.stop();
coin.stop();
globe.stop();
lamp.stop();
dove.stop();
crown.stop();
textFont(title, 60);
fill(238, 233, 233);
text("The Pilot", 500, 100);
textFont(story, 40);
text("I have lived a great deal among grown-ups.\n I have seen them intimately, close at hand.\n And that hasn't much improved my opinion of them.",200,200);
pilot.play();
lastImageTriggered = 7;
AllOn +=1;
} else if (arduino_values[8] == 1 && prev_arduino_values[8] == 0) {
background(25, 25, 60);
crown.loop();
plane.stop();
clap.stop();
wine.stop();
coin.stop();
globe.stop();
lamp.stop();
dove.stop();
textFont(title, 60);
fill(160, 32, 240);
kingall.play();
text("Planet of King", 500, 100);
textFont(story, 40);
text("-Ah! Here's a subjet.", 500, 200);
fill(255,255,255);
text("-May I sit down?", 500, 250);
delay(1000);
fill(160, 32, 240);
text("-I order you to do so.", 500, 300);
fill(255,255,255);
text("But the little prince was wondering . . . \nThe planet was tiny. \nOver what could this king really rule?",500,350);
kingall.play();
lastImageTriggered = 8;
AllOn +=1;
} else if (arduino_values[9] == 1 && prev_arduino_values[9] == 0) {
background(25, 25, 60);
start.stop();
crown.stop();
plane.stop();
clap.stop();
wine.stop();
coin.stop();
globe.stop();
lamp.stop();
dove.stop();
ending.play();
lastImageTriggered = 9;
textFont(title, 60);
fill(0, 191, 255);
text("Earth", 500, 100);
fill(255,255,200);
text("Thank you for re-walking my journey!\nGrowing up is not the problem; forgetting is.", 50, 200);
textFont(story, 40);
text("And now here is my secret, a very simple secret:\n It is only with the heart that one can see rightly;\n what is essential is invisible to the eye.", 450, 400);
AllOn +=1;
thankyou.play();
}
if (lastImageTriggered == 0) {
image(pic[0], xc[0], yc[0]);
} else if (lastImageTriggered == 1) {
image(pic[1], xc[1], yc[1]);
} else if (lastImageTriggered == 2) {
image(pic[2], xc[2], yc[2]);
} else if (lastImageTriggered == 3) {
image(pic[3], xc[3], yc[3]);
} else if (lastImageTriggered == 4) {
image(pic[4], xc[4], yc[4]);
} else if (lastImageTriggered == 5) {
image(pic[5], xc[5], yc[5]);
} else if (lastImageTriggered == 6) {
image(pic[6], xc[6], yc[6]);
} else if (lastImageTriggered == 7) {
image(pic[7], xc[7], yc[7]);
} else if (lastImageTriggered == 8) {
image(pic[8], xc[8], yc[8]);//king
} else if (lastImageTriggered == 9) {
image(pic[9], xc[9], yc[9]);
}
for (int i=0; i < NUM_OF_VALUES_FROM_ARDUINO; i=i+1) {
prev_arduino_values[i] = arduino_values[i];
}
}
void getSerialData() {
//while (serialPort.available() > 0) {
String in = serialPort.readStringUntil( 10 ); // 10 = '\n' Linefeed in ASCII
if (in != null) {
print("From Arduino: " + in);
String[] serialInArray = split(trim(in), ",");
if (serialInArray.length == NUM_OF_VALUES_FROM_ARDUINO) {
for (int i=0; i<serialInArray.length; i++) {
arduino_values[i] = int(serialInArray[i]);
}
}
}
// }
}//Arduion to Processing
void initializeImages() {
pic[0] = loadImage("b612.png");
xc[0]= 1050;//b612
yc[0]= 450;//b612
pic[0].resize(400, 400);
pic[1] = loadImage("geo.png");
xc[1]= 1100;
yc[1]= 50;
pic[1].resize(280, 280);//geographer
pic[2] = loadImage("businessman.png");
xc[2]= 740;
yc[2]= 80;
pic[2].resize(300, 300);//businessman
pic[3] = loadImage("lamp.png");
xc[3]= 500;
yc[3]= 400;
pic[3].resize(150, 150);//lamplighter
pic[4] = loadImage("earth.png");//dove
xc[4]= 0;//dove
yc[4]= 400; //dove
pic[4].resize(500, 500);
pic[5] = loadImage("drunkard.png");
xc[5]= 475;
yc[5]= 30;
pic[5].resize(250, 250);//drunkard
pic[6] = loadImage("thevain.png");
xc[6]= 300;
yc[6]= 150;
pic[6].resize(200, 300);//thevain
pic[7] = loadImage("earth.png");
xc[7]= 0;//plane
yc[7]= 400; //plane
pic[7].resize(500, 500);
pic[8] = loadImage("king.png");
xc[8]= 30;
yc[8]= 50;
pic[8].resize(250, 300);//king
pic[9] = loadImage("earth.png");
xc[9]= 0;//earth
yc[9]= 400; //earth
pic[9].resize(500, 500);
}