JianWei Lee
/
project_game
Meteor defense project
Diff: Spawn/Spawn.cpp
- Revision:
- 26:140515d80457
- Parent:
- 25:edd6a95607b1
- Child:
- 27:d4926f19c12a
--- a/Spawn/Spawn.cpp Thu Apr 13 22:21:02 2017 +0000 +++ b/Spawn/Spawn.cpp Fri Apr 14 15:42:37 2017 +0000 @@ -11,9 +11,9 @@ } void Spawn::init() { healthA = 10; - healthC = 100; - healthDE = 30; - spawnRateA = 32; + healthC = 150; + healthDE = 25; + spawnRateA = 32; //32 spawnRateB = 1; //1 spawnRateC = 2; //2 spawnRateDE = 1; //1 @@ -183,10 +183,10 @@ } } 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) { + if (Arr2[x][y] <= 0) { cArr2[x][y] = '\0'; //printf("char at Arr2[%d][%d] cleared for good. \n",x,y); - } + } } \ No newline at end of file