-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEscapeRoomUSBFlashDriveJawn.pde
executable file
·62 lines (59 loc) · 2.32 KB
/
EscapeRoomUSBFlashDriveJawn.pde
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
//Aaron Jeffers-Howard and bk
//Workshop School Fall 2017
//Dr. Millers Advisory, escape room project...
PImage bg, water, bigben, liberty, sking1, sking2, elements, waves, zoobity;
void setup() {
//size(100, 100); //make program of certian size
fullScreen();
bg = loadImage("desktop.png");
water = loadImage("aqua.png");
bigben = loadImage("BigBenFranklin.png");
liberty = loadImage("libbell.png");
sking1 = loadImage("sking.png");
sking2 = loadImage("sking2.png");
elements = loadImage("theelements.png");
waves = loadImage("waves.png");
zoobity = loadImage("zoobitybop.png");
}
void draw() {
background(bg); // normal background color
File dir = new File("/Volumes"); //pull up list of volumes
String[] children = dir.list(); //assign list to string
if (children == null) { //if there is nothing do nothing
// Ei2ther dir does not exist or is not a directory
} else { //otherwise do what's below
for (int i=0; i<children.length; i++) { //go through each list item
// Get filename of file or directory
String bk = children[i]; //
if (bk.equals("DELTA")) { //if there is an item equal to the value do below
background(255, 255, 0);
image(sking2, 0, 0);
textSize(45);
fill(0);
text("You can, you should, and if you're brave enough to start, you will.", 10, height/2+150);
} //set background yellow
if (bk.equals("STIGMA")) { //if there is an item equal to the value do below
background(155);
image(bigben, 0, 0);
image(liberty, width/2+50, 10);
image(zoobity, width/2-50, height/2+100);
} //set background grey
if (bk.equals("OMEGA")) { //if there is an item equal to the value do below
background(0);
image(water, 0, 0);
image(elements, width/2+50, 10);
image(waves, width/2, height/2);
} //set background blk
if (bk.equals("THETA")) { //if there is an item equal to the value do below
background(255, 0, 0);
fill(0);
textSize(45);
text("I was born in ____", 10, 60);
text("In Independence Hall", 10, 100);
text("I am very precious to most Americans", 10, 140);
text("and signed by 56 people in all.", 10, 180);
text("I am the Declaration of Independence.", 10, 220);
} //set background red/blk
}
}
}