-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDraw.pde
More file actions
38 lines (36 loc) · 1.15 KB
/
Draw.pde
File metadata and controls
38 lines (36 loc) · 1.15 KB
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 draw() {
background(250, 250, 250);
image(frontImage, x_fp, y_fp);
image(button01, x_b01, y_b01);
image(button02, x_b02, y_b02);
image(button03, x_b03, y_b03);
//To show the 16 tiles in the canvas
image(img[1], x[1], y[1]);
image(img[2], x[2], y[2]);
image(img[3], x[3], y[3]);
image(img[4], x[4], y[4]);
image(img[5], x[5], y[5]);
image(img[6], x[6], y[6]);
image(img[7], x[7], y[7]);
image(img[8], x[8], y[8]);
image(img[9], x[9], y[9]);
image(img[10], x[10], y[10]);
image(img[11], x[11], y[11]);
image(img[12], x[12], y[12]);
image(img[13], x[13], y[13]);
image(img[14], x[14], y[14]);
image(img[15], x[15], y[15]);
image(img[16], x[16], y[16]);
//To show the text in the canvas
fill(250, 0, 0);
textSize(30);
//*** To show timer in the canvas ******
initiatedTime=millis();
TimeStr[0]=str((millis()-startTime)/60000);
TimeStr[1]=str((millis()-startTime)/1000);
TimeStr[2]=str((millis()-startTime)/100);
String CombinedTime = join(TimeStr, " : ");
text(CombinedTime, x_time, y_time);
image(fullimg, x_fullimg, y_fullimg);
image(helpimg,x_helpimg,0);
}