void abprallen(){ if (vx+x < rand+klaenge/2){ vx=-vx; } if (vx+x > breite-klaenge/2+rand){ vx=-vx; } if (vy+y < rand+khoehe/2){ vy=-vy; } if (vy+y > laenge-khoehe/2+rand){ vy=-vy; } }