/* Ball */
final Rectangle ball = new Rectangle(0, 0, 20, 20) {
@Override
protected void onManagedUpdate(float pSecondsElapsed) {
if (this.mY < -GAME_HEIGHT_HALF) { this.setVelocityY(BALL_VELOCITY); } else if (this.mY + this.getHeight() > GAME_HEIGHT_HALF) {
this.setVelocityY(-BALL_VELOCITY);
}
super.onManagedUpdate(pSecondsElapsed);
}
};