Mine Field Game

Dependencies:   4DGL-uLCD-SE SDFileSystem mbed wave_player

Files at this revision

API Documentation at this revision

Comitter:
evgeniy
Date:
Mon Mar 09 21:02:25 2015 +0000
Parent:
0:815fef421595
Commit message:
#ifdef for showing a mine;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 815fef421595 -r d6304f6b4e03 main.cpp
--- a/main.cpp	Mon Mar 09 20:46:46 2015 +0000
+++ b/main.cpp	Mon Mar 09 21:02:25 2015 +0000
@@ -2,7 +2,7 @@
 #include "uLCD_4DGL.h"
 #include "SDFileSystem.h"
 #include "wave_player.h"
-
+#define MINE
 uLCD_4DGL lcd(p28, p27, p30);
 AnalogIn AnalogX(p15);
 AnalogIn AnalogY(p16);
@@ -99,7 +99,7 @@
             
             //update ballLocation Here
             lcd.circle(32*startPointX+15, 32*startPointY+15, 5, 0xFF0000);
-            
+            #ifdef MINE
             for(int i=0 ; i<4; i++)
             {
                 for(int j=0; j<4;j++)
@@ -108,7 +108,7 @@
                         lcd.circle(32*i+15, 32*j+15, 5, BLUE);
                 }
             }
-            
+            #endif
             if(previousX != startPointX || previousY!= startPointY)
             {
                 lcd.circle(32*previousX+15, 32*previousY+15, 5, GREEN);