-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEarth.pde
38 lines (38 loc) · 823 Bytes
/
Earth.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
void Earth(){
earthcount--;
if(life==3){
pushMatrix();
translate(width/2, height/2);
rotate(radians(earthcount/2));
image(earth,0,0,200,200);
popMatrix();
}
else if(life==2){
pushMatrix();
translate(width/2, height/2);
rotate(radians(earthcount/2));
image(earth1,0,0,200,200);
popMatrix();
}
else if(life==1){
pushMatrix();
translate(width/2, height/2);
rotate(radians(earthcount/2));
image(earth2,0,0,200,200);
popMatrix();
}
else if(life==0){
pushMatrix();
translate(width/2, height/2);
rotate(radians(earthcount/2));
image(earth3,0,0,200,200);
popMatrix();
}
pushMatrix();
translate(width/2, height/2);
rotate(radians(-earthcount/8));
tint(255,100);
image(earthshadow,0,0,190,190);
noTint ();
popMatrix();
}