ELEC2645 (2019/20) / Mbed 2 deprecated ELEC2645_Project_el19zf

Dependencies:   mbed

Revision:
9:62d6559f0d50
Parent:
8:8287d2ef965d
Child:
11:494cc44777fe
--- a/Collision/Collision.cpp	Wed Apr 29 15:20:34 2020 +0000
+++ b/Collision/Collision.cpp	Sat May 09 08:27:07 2020 +0000
@@ -17,7 +17,8 @@
 bool Collision::check(N5110 &lcd) {
     
     _check_index = 0;
-    if(lcd.getPixel(_people_pos.x+1,_people_pos.y)) {  _check_index = 1; }//check every sprite set points
+    //check every sprite set points
+    if(lcd.getPixel(_people_pos.x+1,_people_pos.y)) {  _check_index = 1; }
     if(lcd.getPixel(_people_pos.x+2,_people_pos.y)) {  _check_index = 1; }
     if(lcd.getPixel(_people_pos.x,_people_pos.y+1)) {  _check_index = 1; }
     if(lcd.getPixel(_people_pos.x+1,_people_pos.y+1)) {  _check_index = 1; }