A zombie game made for the uLCD

Dependencies:   4DGL-uLCD-SE mbed-rtos mbed

Fork of uLCD144G2_demo by jim hamblen

Files at this revision

API Documentation at this revision

Comitter:
rjones75
Date:
Mon Mar 14 02:20:41 2016 +0000
Parent:
10:9d16de327719
Commit message:
fixed hit detection bug

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 9d16de327719 -r 4b75ea66467d main.cpp
--- a/main.cpp	Sun Mar 13 16:00:46 2016 +0000
+++ b/main.cpp	Mon Mar 14 02:20:41 2016 +0000
@@ -303,7 +303,7 @@
                     if((Z[0][0]+i)==Px1+j) {
                         for(int m=0; m<3; m++) {
                             for(int n=0; n<3; n++) {
-                                if((Z[0][1]+m)==Py1+j) {
+                                if((Z[0][1]+m)==Py1+n) {
                                     state=gameover;
                                     break;
                                 }