With
this being my first attempt at remaking a games I decided to create
a game of Pong. Using Flash MX and plenty of ActionScript I put this
together over the course of a few days.
I
am pleased with the result and I only have one bug left in the program
which is to do with the collision detection. If the ball hits the
side of the paddle then it moves in a zig-zag through the paddle to
the opposite end. It is currently using the hitTest() function for
collision detection but I did try using the rectangle to rectangle
collision detection technique. The problem that arised here was that
when the speed of the ball increased it could move straight through
a paddle. I think that I can solve this problem in any future development
with circle-line collision detection. I think I'd better brush up
on my trigonometry :)
Hope
you enjoy the game though and if you find any more bugs in it then
please let me know.