Meteor defense project

Dependencies:   N5110 mbed

Revision:
21:e5585569a938
Parent:
20:32f115462bbc
Child:
22:2e75b50b26f0
--- a/Spawn/Spawn.cpp	Wed Apr 12 17:02:22 2017 +0000
+++ b/Spawn/Spawn.cpp	Wed Apr 12 19:38:06 2017 +0000
@@ -64,7 +64,6 @@
         for (int y = 0; y < Rows; y++) {
             if (cArr[x][y] == 'a' || cArr[x][y] == 'b' || cArr[x][y] == 'c') {
                 //move everything down a row
-                
                 Arr2[x][y+1] = Arr[x][y];       
                 cArr2[x][y+1] = cArr[x][y];
             } else {
@@ -92,7 +91,7 @@
 void Spawn::updateSpawn(int Arr[][Rows], int Arr2[][Rows], char cArr[][Rows], char cArr2[][Rows], N5110 &lcd) {
     for ( int x = 0; x < Cols; x++) {
         for ( int y = 0; y < Rows; y++) {
-            deleteChar(x, y, Arr2, cArr2);
+            deleteChar(x, y, Arr2, cArr2); //cleaning up the array
             if (cArr2[x][y] == 'a') {
                 lcd.setPixel(x,y);
                 //to update the main array
@@ -116,7 +115,7 @@
         }
     }
 }
-void Spawn::deleteChar(int x, int y, int Arr2[][Rows], char cArr2[][Rows]) { // to clean up the array killing the spawn.
+void Spawn::deleteChar(int x, int y, int Arr2[][Rows], char cArr2[][Rows]) { // to clean up the array after killing the spawn.
     if (Arr2[x][y] <= 0) { 
         cArr2[x][y] = '\0';
     }