Canvas – Pong Game
- August 19th, 2010
- Posted in Uncategorized
- By Steve
O.K. One more for good luck. This one is very similar to the bricks game. I used most of the collision detection code from that one with some slightly different values in the array and a little different how the array is used. Instead of the mouse to change the direction I have assigned some keys.
I’ll try my hand at adding another key that rotates the angle of the paddle to change the angle of the ball bouncing back. <canvas> is quite limited in its controls so this seemingly easy idea is not that easy to code. We’ll see. Anyway, like the other nonsense games that I’ve done – ENJOY!

