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.
Dependencies: mbed
Diff: Collision/Collision.cpp
- 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; }