ELEC2645 (2018/19) / Mbed 2 deprecated el17m2h_public

Dependencies:   mbed

Revision:
24:67dc71a8f009
Parent:
23:9be87557b89a
Child:
29:15e9640646b7
--- a/Bullet/Bullet.cpp	Wed May 08 08:46:11 2019 +0000
+++ b/Bullet/Bullet.cpp	Wed May 08 14:24:53 2019 +0000
@@ -6,7 +6,7 @@
 
 void Bullet::init(float dood_pos_x, float dood_pos_y){  
     _radius = 1;
-    _position_x = dood_pos_x + 15; // initially in same position as doodler's trunk
+    _position_x = dood_pos_x + 12; 
     _position_y = dood_pos_y + 4;
 }
 
@@ -17,7 +17,7 @@
 void Bullet::update(float dood_pos_x, float dood_pos_y){
     _position_y -= 3;
     if (_position_y < 9){ // reached end of screen
-        _position_x = dood_pos_x + 15;
+        _position_x = dood_pos_x + 12;
         _position_y = dood_pos_y + 4;
     }
 }