Library that draws a basket on a Nokia N5110 LCD display and allows it to be moved left/right on the display using buttons or a joystick.

Dependents:   Game_Controller_Project

Revision:
6:2aec1ed2a75a
Parent:
5:32421eb42841
Child:
7:7b71dd93b2f8
diff -r 32421eb42841 -r 2aec1ed2a75a Basket.cpp
--- a/Basket.cpp	Thu Mar 23 15:24:22 2017 +0000
+++ b/Basket.cpp	Fri Mar 31 13:42:55 2017 +0000
@@ -55,11 +55,26 @@
     }
 }
 
-void Basket::add_score()
+void Basket::add_score_1()
 {
     score++;
 }
 
+void Basket::add_score_2()
+{
+    score = score + 2;
+}
+
+void Basket::add_score_5()
+{
+    score = score + 5;
+}
+
+void Basket::add_score_10()
+{
+    score = score + 10;
+}
+
 int Basket::get_score()
 {
     return score;