bouncy ball collision as3

Flash Bouncy Ball Collision Test

If the ball is at the top, click on “Play Again” to start the round, then use the paddle to keep the ball from falling into the dark blue area.

This simple game was a nice way to show off my understanding of basic collision detection using AS3. The ball detects a hit on the paddle or walls and reverses direction, with the point of impact on the paddle as well as the paddle’s velocity affecting the bounce and rotation of the ball. Not too shabby.

%d bloggers like this: