0
I have a game problem I’m developing. The problem is, I’ve got two planes that can stand on top of each other and I don’t know what to do, any suggestions?
Plane code1
int vBola=550;
int CBola=600;
Rectangle aviao11 = new Rectangle(vBola,CBola,x2,y2);
Plane code2
int xBola=750;
int yBola=600;
Rectangle aviao22 = new Rectangle(xBola,yBola,x2,y2);
A little code so the plane can’t get off the screen
if(!TeclasPressionadas[68].equals(""))
if (vBola>=1278)
vBola = vBola +0;
else
vBola=vBola+7;
My problem is how to implement for both planes