ELEC2645 (2018/19) / Mbed 2 deprecated fy14lkaa

Dependencies:   mbed

Revision:
88:a19f315551ea
Parent:
87:4635d00ffe9d
Child:
89:2eb3b6624117
diff -r 4635d00ffe9d -r a19f315551ea spase_ship/space_ship.cpp
--- a/spase_ship/space_ship.cpp	Sun Apr 28 15:06:07 2019 +0000
+++ b/spase_ship/space_ship.cpp	Sun Apr 28 15:11:52 2019 +0000
@@ -40,6 +40,11 @@
 
 void space_ship::draw(N5110 &lcd)
 {
-    // draw space_ship in screen buffer. 
-      lcd.drawSprite(x_space_ship,y_space_ship,10,12,(int *) space_ship);
+    // draw space_ship in screen buffer.
+    lcd.drawSprite(x_space_ship,y_space_ship,10,12,(int *) space_ship);
 }
+
+void space_ship::add_score()
+{
+    _score++;
+}
\ No newline at end of file