wkeeling/arkanoid

Move BRICK_SPEED_ADJUST to Brick class

Closed this issue · 2 comments

Support different types of bricks increasing the ball speed by different amounts, by turning the BRICK_SPEED_ADJUST game constant to an attribute on Brick.

This is necessary for some rounds where the ball is colliding with bricks very rapidly (e.g. round 3) and the ball picks up such speed it is uncontrollable. The round should be able to control the speed of the ball when it creates the bricks.

Moved to Round class so that speed adjustment can be controlled by the round. Not necessary to move to the brick class as that would be too fine grained.