int deltax = (temp[2]-40)/((temp[2]-40)/40); | int deltax = (temp[2]-40)/((temp[2]-40)/40); | ||||
int deltay = (temp[3]-40)/((temp[3]-40)/50); | int deltay = (temp[3]-40)/((temp[3]-40)/50); | ||||
System.out.println("Rand y" + tempyrand); | |||||
do | do | ||||
{ | { | ||||
if (randomTyp == 1) | if (randomTyp == 1) | ||||
tempx = temp[0]+20; | tempx = temp[0]+20; | ||||
versetzt = true; | versetzt = true; | ||||
} | } | ||||
System.out.println(tempy); | |||||
tempy += deltay; | tempy += deltay; | ||||
} | } | ||||
if (tempy > tempyrand) | if (tempy > tempyrand) |