Brickbreaker

Dependencies:   NokiaLCD PS2 mbed

Fork of Pong by William Johnston

Revision:
3:e1328f84b107
Parent:
1:3cc8b1413557
--- a/paddle.cpp	Mon Feb 28 00:22:23 2011 +0000
+++ b/paddle.cpp	Mon Apr 29 18:14:57 2013 +0000
@@ -43,8 +43,8 @@
   return --lives;
 }
 
-void Paddle::addPoint() {
-  ++score;
+void Paddle::addPoints(int p) {
+  score=score+p;
 }
 
 int Paddle::size() const {
@@ -77,4 +77,7 @@
 
 void Paddle::setLives(int l) {
   lives = l;
+}
+void Paddle::setScore(int s) {
+  score = s;
 }
\ No newline at end of file