Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: Map/Map.cpp
- 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; }