ELEC2645 (2018/19) / Mbed 2 deprecated el17st

Dependencies:   mbed FATFileSystem

Revision:
13:95323e0f2fcb
Parent:
10:4fda7b01484a
Child:
14:165fff6d1854
--- a/CaMove/CaMove.cpp	Sun May 05 19:32:58 2019 +0000
+++ b/CaMove/CaMove.cpp	Mon May 06 02:40:07 2019 +0000
@@ -176,7 +176,7 @@
 void CaMove::chase(N5110 &lcd, int girl) {
     int increment;
     if (girl == 2) {
-        increment = 1;
+        increment = 2;
     } else {
         increment = 3;
     }
@@ -185,10 +185,11 @@
             _cv = _cv + increment;
         } else if (_cv > _v) {
             _cv = _cv - increment;
-        } else if (_ch < _h) {
-            _ch = _ch + 3;
+        }
+        if (_ch < _h) {
+            _ch = _ch + increment;
         } else if (_ch > _v) {
-            _ch = _ch - 3;
+            _ch = _ch - increment;
         }
         if (girl == 2) {
             Bitmap::renderBMP(AIC[_itr],lcd,_ch,_cv);