make a X and a Y variable with their values at say 6 then write setLocation(getX()+X,getY()+Y) and if u hit a wall do X=-X and the ceiling or a block do Y=-Y in chapter 13 there is da beg of a breakout u can look 2 c how it works over dere and btw 4 da ball pic instead of cropping it copy it out of da images file
2016/10/27