xxxxxxxxxx
Game g;
void setup(){
bid = 0;
size(screenWidth-100,360);
//fullScreen();
colorMode(HSB,100);
strokeWeight(width/36);
strokeJoin(ROUND);
//stroke(0,0,100);
frameRate(1000);
g = new Game();
strokeWeight(height/32);
textAlign(CENTER, CENTER);
textSize(26);
}
void draw(){
if(width > 500){
background(0,0,100);
g.play();
}
else{
text("screen size not suported",width/2,height/2);
text("open on desktop or laptop",width/2 + 100,height/2);
}
}
boolean isBetween(float x , float l ,float r){
return ( x>= l && x<=r);
}