ELEC2645 (2019/20) / Mbed 2 deprecated ELEC2645_Project_el18ajst

Dependencies:   mbed

Revision:
8:0c6d6ed55851
Parent:
7:0434857199cf
Child:
9:62fe47a1374f
--- a/Bullets/Bullets.cpp	Fri May 22 15:46:14 2020 +0000
+++ b/Bullets/Bullets.cpp	Fri May 22 16:54:10 2020 +0000
@@ -33,16 +33,16 @@
 void Bullets::update()
 {
     if(_dir == 0){
-    _y = _y-2;
+    _y = _y-3;
     }
     else if (_dir == 1){
-    _x = _x+2;
+    _x = _x+3;
     }
     else if (_dir == 2){
-    _y = _y+2;
+    _y = _y+3;
     }
     else if (_dir == 3){
-    _x = _x-2;
+    _x = _x-3;
     }
 }
 int Bullets::get_x(){