Fixed Stupid error
This commit is contained in:
parent
cdaf2c7023
commit
18e9a26ef3
1 changed files with 1 additions and 1 deletions
|
@ -178,7 +178,7 @@ public class GameEngine extends MouseAdapter {
|
||||||
if(canScore && !pipes.isEmpty() && bird.getLocX() >= pipes.elementAt(0).getLocX() + pipes.elementAt(0).getSWidth()) {
|
if(canScore && !pipes.isEmpty() && bird.getLocX() >= pipes.elementAt(0).getLocX() + pipes.elementAt(0).getSWidth()) {
|
||||||
score++;
|
score++;
|
||||||
canScore = false;
|
canScore = false;
|
||||||
successSounds.elementAt(r.nextInt(5)).play();
|
successSounds.elementAt(r.nextInt(4)).play();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue