James Cummins / Mbed 2 deprecated el17jnc

Dependencies:   mbed

Revision:
36:9f7463a65fe0
Parent:
34:7e03391cb8a6
Child:
37:de1f584bce71
--- a/Map/Map.cpp	Sat May 04 18:56:38 2019 +0000
+++ b/Map/Map.cpp	Mon May 06 00:05:52 2019 +0000
@@ -49,7 +49,7 @@
 
 bool Map::check_wall_collision(Gamepad &gamepad, Ball &ball){
     bool collision = false;
-    Vector2D ball_screen_pos = ball.get_position();
+    /*Vector2D ball_screen_pos = ball.get_position();
     Vector2D c;
     c.x = ball_screen_pos.x + _coord.x;
     c.y = ball_screen_pos.y + _coord.y;
@@ -67,9 +67,9 @@
         int x = ball_pixels[i].x;
         if(gamemap[y][x] == 1){
             collision = true;
-            /*printf("colliding pixel = %d,%d\n", x, y);*/
+            printf("colliding pixel = %d,%d\n", x, y);
             break;
         } else { collision = false; }
-    }
+    }*/
     return collision;
 }