Looks good, though you can create a weird situation where the ball follows the paddle if you catch it on either end of the paddle and continue to move. Probably something to do with how you hit the ball back (ie are you just doing some reverses of current direction?)
Can't reproduce the above situation personally but I'm not surprised it happens from the description - it's a classic bug in Greenfoot pong / breakout / ball / block style games.
The problem usually occurs when you don't put a special case in for the ball contacting the left or right edges of the block - so it tries to move as though it hit the top of the block, and as a result usually either bounces up and down very quickly in the block or "sticks" to it for a while (depends on the implementation.) The solution is to add a check in when the ball hits the block to see whether it's hitting the edges (shouldn't be that hard, just check the ball's x position relative to the block's position and size) and add in the appropriate special behaviour - such as bouncing it to the side rather than straight up.
A new version of this scenario was uploaded on Fri Oct 23 14:25:36 UTC 2009
2009/10/22
2009/10/23
2009/10/23