So I have this game: It's ellipses moving randomly and you have to hit them. The only thing I need is to make them collide against each other. Can anyone help me?
(to start you have to move the mouse to the ellipse in the middle)
thanks in advance
int numBolas = 10;
int pont, contador;
int bolas_pretas;
int contador_tempo=1;
int starttime;
boolean acertou,ja_entrou,menu=true;
Bola myBola = new Bola(20, 20, 1, 0.5);
Bola[] bolas = new Bola[numBolas];
void setup()
{
size(500, 500);
for (int i=0; i<numBolas;i++) {
bolas[i] = new Bola(random(width), random(height), random(1, 6), random(1, 6));
}
}
void draw() {
background(255);
if(menu==true){
fill(255);
rect(0,0,width,height);
fill(0);
text("Posiciona o rato na circufrência para começar", 30, 25);