zhangxinyu01text

Dependencies:   mbed

Revision:
18:a7d8b45648f4
Parent:
17:bb67309871c3
Child:
19:0657c7e4d4bf
diff -r bb67309871c3 -r a7d8b45648f4 CXK/CXK.cpp
--- a/CXK/CXK.cpp	Mon May 06 06:55:51 2019 +0000
+++ b/CXK/CXK.cpp	Mon May 06 06:57:21 2019 +0000
@@ -40,15 +40,7 @@
 
     // update y value depending on direction of movement
     // North is decrement as origin is at the top-left so decreasing moves up
-    if (d == N) {
-        _y-=_speed;
-    } else if (d == S) {
-        _y+=_speed;
-    } else if (d == E) {
-        _x+=_speed;
-    } else if (d == W){
-        _x-=_speed; 
-        }
+    
 
     
     // check the y origin to ensure that the CXK doesn't go off screen