ELEC2645 (2017/18) / Mbed 2 deprecated fy15raf

Dependencies:   mbed

Revision:
14:cf4a32245152
Parent:
12:4d7f1349d796
--- a/Rocket/Rocket.cpp	Fri May 04 23:26:17 2018 +0000
+++ b/Rocket/Rocket.cpp	Sun May 06 16:17:41 2018 +0000
@@ -12,10 +12,11 @@
 
 void Rocket::init()
 {
-    //initialise the rocket position and speed
+    //initialise the rocket position, speed and collisions 
     _x = 15 ;
     _y = HEIGHT/2 ;
     _speed = 1;
+    _collision=0;
 }
 
 void Rocket::draw(N5110 &lcd)