Assignment JS6: Programmatic Movement and the Game of PONG
IMPORTANT: Upload your programatic animations to Canvas as a .wick file.
Part A: Construct collision detection
Construct a Ball Clip object.
Program the Ball to move horizontally in a fixed velocity.
When the Ball hits the left wall, it should shrink in size in size, bounce off the wall, and move toward the right wall.
When the Ball hits the right wall, it should expand in size in size, bounce off the wall, and move toward the left wall.
Part B: Complete the game of Pong
Verify the Ball Clip object moves correctly and that collision is detected.
Construct a Paddle Clip object.
Program the Paddle to move vertically as the user moves their mouse/cursor.
Program the Ball to move horizontally AND vertically in a fixed velocity.
Check that the ball bounces off the top, bottom, and right wall during collision.
When the Ball misses the paddle, it should disappear from the screen.