Faizan and Pages fun little game
Dependencies: 4DGL-uLCD-SE mbed SDFileSystem wave_player
Diff: main.cpp
- Revision:
- 11:4c91567fc089
- Parent:
- 10:75e221ead102
- Child:
- 12:3053789a2140
--- a/main.cpp Mon Oct 31 04:50:07 2016 +0000 +++ b/main.cpp Mon Oct 31 04:54:56 2016 +0000 @@ -86,7 +86,7 @@ } // every 3 seconds add new food! use timer. float curr = t.read(); - if (curr - clk >= 3.0) { + if (curr - clk >= 5.0) { clk = curr; // lcd.printf(" new "); int x = rand()%90+1; @@ -96,7 +96,7 @@ // add new food } // every .2 second each food should fall a lil bit! use timer. - if (curr - clk2 >= 0.2) { + if (curr - clk2 >= 0.1) { clk2 = curr; // lcd.printf(" fall "); for (int i = 0; i < foods.size(); i++) {