I have a problem...when I finished the first game and I want to replay, the program tells me that I didn't hit enough targets
Can you help me please?
import javax.swing.JFrame;
import...
Type: Posts; User: herahoc
I have a problem...when I finished the first game and I want to replay, the program tells me that I didn't hit enough targets
Can you help me please?
import javax.swing.JFrame;
import...
I don't know how to do that when a target is clicked disappears, I started to do that but then I do not know how to continue:
public void mouseMoved(MouseEvent e){
x = e.getX();
y =...
Ok, i solved the generation of targets, now i should to do that if the target is clicked disappear.
Is convenient to use the method contains?
ok I solved
My error is here:
public void setCentro(Point2D centro) { centro = new Point2D.Double(); }
public Point2D getCentro() { return centro; }
but i don't know how to solve... =/
I also tried...
i wrote this but there is 1 error:
"bersagli.get(bersagli.size()-1).setCentro(CentroRandom());" error cannot find symbol
symbol: method setCentro(Point2D)
location: Class Object
how do I pass...
Hi all, I'm doing a mini-game, and I need a little help.
The game is to click on target with the mouse and once clicked should disappear (a kind of shooting), the targets must be randomly generated,...