Arkanoid (Brick Breaker) Help

Hey everyone,

I’m trying to build a simple Arkanoid style game. I found a tutorial online (can’t find the link at the moment, I know I know, that’s what bookmarks are for).

ANYWAY

I built the game in the tutorial, but I’m having 2 major issues with the game…

First off, when the ball is hitting 2 bricks at the same time, I’m reversing the direction of the ball twice, so the ball keeps moving up or down and it’s like the ball doesn’t even care that it hit a brick…

Secondly, sometimes if the ball hits the wall in a certain way it gets stuck and just bounces side to side, up and down in a box of width about the size of the ball…

I’ve uploaded the code to: http://www.whatadewitt.com/arkanoid/Arkanoid.zip, any help I could get would be much appreciated!

Thanks,

–d