Brickbreaker

Dependencies:   NokiaLCD PS2 mbed

Fork of Pong by William Johnston

Revision:
3:e1328f84b107
Parent:
1:3cc8b1413557
diff -r d1031c73e187 -r e1328f84b107 ball.cpp
--- a/ball.cpp	Mon Feb 28 00:22:23 2011 +0000
+++ b/ball.cpp	Mon Apr 29 18:14:57 2013 +0000
@@ -71,13 +71,13 @@
 
 
 /* 
- * Member Function hitP2:
+ * Member Function hitB2:
  * Description: Checks to see if there is
- *  a collision between paddle2 and the ball.
+ *  a collision between a block and the ball.
  *  Has special functionality for changing
  *  y-incline based on collision point.
  */
-bool Ball::hitP2(int _x, int _y, int _height) {
+bool Ball::hitB1(int _x, int _y, int _height) {
   bool hit = ((_x<=x+width) && (xInc>0)) && 
          (((_y<=y) && (_y+_height>=y+height)) ||
           ((_y>=y) && (_y<=y+height)) ||