ELEC2645 (2017/18) / Mbed 2 deprecated el17yw

Dependencies:   mbed

Revision:
24:14489d259ffb
Parent:
19:362ad1cd6d4a
Child:
25:1d91ab97d86a
diff -r f433f8d8698e -r 14489d259ffb rec/rect.cpp
--- a/rec/rect.cpp	Mon Apr 30 01:14:21 2018 +0000
+++ b/rec/rect.cpp	Mon Apr 30 16:40:32 2018 +0000
@@ -9,7 +9,7 @@
 {
 
 }
-void rect::init(int x,int y)
+void rect::init()
 {
     rect_speed = 1;  // default speed
 }
@@ -41,7 +41,10 @@
 {
     rect_score++;
 }
-
+void rect::init_score()
+{
+    rect_score = 0;
+}
 void rect::minus_score()
 {
     rect_score--;