-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplay.pde
49 lines (47 loc) · 1.05 KB
/
play.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
void play(){
if(playA){
switch(keyNoA){
case 0:
break;
case 1:
fill(0, 255, 0);
rect(500, 500, 500, 500);
break;
case 2:
fill(0, 0, 255);
rect(500, 500, 500, 500);
break;
case 3:
fill(255, 0, 0);
rect(500, 500, 500, 500);
break;
case 4:
fill(255, 255, 0);
rect(500, 500, 500, 500);
break;
}
}
if(playB){
switch(keyNoB){
case 0:
break;
case 1:
fill(0, 255, 0);
rect(1000, 500, 500, 500);
break;
case 2:
fill(0, 0, 255);
rect(1000, 500, 500, 500);
break;
case 3:
fill(255, 0, 0);
rect(1000, 500, 500, 500);
break;
case 4:
fill(255, 255, 0);
rect(1000, 500, 500, 500);
break;
}
}
fill(255);
}