I am not sure why, could you take a look?
Also any tips in the design of that class are welcome. But for all I know , that class should only move paddle left and right and that's about it, and bounce ball back.
For anyone else who wants to take a look at it, here is the link
http://www.4shared.com/zip/ujIGRQ9w/Breaktout.html
VulpesPosted Apr 11, 2012, 2:03 PM
This is probably because you haven't added the eventhandlers from the Properties Box (by double-clicking them) which automatically adds a skeleton handler and wires it up in the InitializeComponent method.
Anyway you can still do it manually:
Other than that, I thought the class looked like it should do what it's supposed to do.
There's a slight bug though - the first time you press left, the paddle moves right and vice versa. See if you can figure that one out.
Prime bPosted Apr 11, 2012, 6:14 PM