pbl, on 4 Jun, 2008 - 09:02 PM, said:
OK see the stuff... I passed the 3 first level
Seem simple to me.... when you say "you loose" you should stop the listener
in ALL your mix class
boolean loose = false;
whenever the player looses instead of just System.out.println("You loose") add
loose = true;
if(a[i]>=101 && a[i]<=731 && b[i]>=150 && b[i]<=155){
System.out.println("you lose");
score--;
System.out.println(score);
loose = true;
}
and in your mouseMotionListener don't react if the user has loose
public void mouseMoved(MouseEvent e) {
if(loose)
return;
That should do it
P.S. your if(... && ... && ... && are really ugly there are better ways to code that

New Topic/Question
Reply




MultiQuote



|