-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmyGame.pde
More file actions
50 lines (36 loc) · 1.03 KB
/
myGame.pde
File metadata and controls
50 lines (36 loc) · 1.03 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
39
40
41
42
43
44
45
46
47
48
49
50
import java.util.List;
import java.util.Arrays;
import java.util.ArrayList;
int i = 0 , score=0 , count = 0; color c, colorDurationInSeconds=5;
int margin = 100, textSize =15, buttomBoxColor =150, playTime = 0;
boolean lock = true;
int base_time = 0;
int click = 0;
player b = new player();
pillar[] p = new pillar[3];
boolean intro = true; // キープレスでスタ-ト画面
boolean start = true; // game starts
boolean isHit = false; // collision detection + ぶつかったらTRUEになる
boolean end = false; // TRUEになったらゲーム終了
void setup(){
size(800,800);
PFont font = createFont("Meiryo", 50);//日本語
textFont(font);//日本語
for(int i = 0;i<3;i++){
p[i]=new pillar(i);
}
}
void draw(){
if(start){
playTime=(int)millis()/1000;
back();
screen();
bottom();
}
// //if(start=false){
// saveFrame( sketchPath()+"\\frame\\"+"frame.png" );
// PImage Image = loadImage(sketchPath()+"\\frame\\"+"frame.png");
// image( Image ,0,0 );
// //}
cross();
}