251252253254255256257258259260261
// check if player hits bouncers for(int i = 0; i < bouncers.size(); i++) { Bouncer b = bouncers.get(i); b.update(); if(b.intersectsCircle(player)) { player.reflect(b.getx(), b.gety(), b.getWidth(), b.getImpulse()); break; } }