Skip to content

Commit

Permalink
Merge pull request #89 from ShreyashRoyzada/master
Browse files Browse the repository at this point in the history
Removed bugs
  • Loading branch information
priyanshisharma authored Sep 1, 2020
2 parents cbf6c07 + 8472962 commit b7d4f30
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions Jo and Astha's team/Shreyash/Flappy_Birds/Flappy_Birds.pde
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ ArrayList<Logs> log = new ArrayList<Logs>();
power pow_1;
boolean flag=true;



int bgx;
boolean ch=true,inv=true;
boolean ch=true,inv=true,power=false,t=false;
int score=0,total_s=0;
void setup(){
size(720,405,P2D);
Expand All @@ -20,12 +18,14 @@ void setup(){
}

void draw(){

if(ch)
{
back();
back();
player.display();
player.canvas();
player.gravity();

String sc="Your Score- ";
text(sc,850,50);

Expand Down Expand Up @@ -66,8 +66,14 @@ void draw(){
textFont(f);
fill(0);
text(s,600,20);

if(score==22)
{
power=true;
}

if(score>=22){

PFont end = createFont("impact",30);
String ss = "Press B To Activate Invincibility for 15 secs";
fill(0);
Expand All @@ -77,10 +83,11 @@ void draw(){
{
inv=false;
score=0;
power=false;
}
}
}

}
else
{
go = loadImage("./image/go.jpg");
Expand Down Expand Up @@ -109,16 +116,11 @@ void draw(){
if(log.size()>6){
log.remove(0);
}
if(keyPressed)
if(keyPressed&&key==' ')
{
if(key==' ')
{
player.assend();
}
}
else
player.gravity();


}

void back(){
Expand Down

0 comments on commit b7d4f30

Please sign in to comment.