JianWei Lee
/
project_game
Meteor defense project
Diff: Spawn/Spawn.cpp
- Revision:
- 7:3be4369131c6
- Parent:
- 6:a554424e4517
- Child:
- 9:4c4d787c7a8b
--- a/Spawn/Spawn.cpp Thu Mar 23 19:36:33 2017 +0000 +++ b/Spawn/Spawn.cpp Mon Mar 27 22:55:10 2017 +0000 @@ -21,11 +21,10 @@ if (TrueFalse) { //spawning from the top of the screen Arr1[x][0] = 1; - Arr2[x][0] = 1; - printf("spawn set at x = is %d \n",x); + //printf("spawn set at x = is %d \n",x); } } - printf("at x=2, y=0. value = %d \n",Arr1[2][0]); + //printf("at x=2, y=0. value = %d \n",Arr1[2][0]); } else { stopSpawn = 0; } @@ -35,7 +34,6 @@ //printf("x=2,y =0. value = %d \n",array[2][0]); //scan through the whole array for ( int x = 0; x < Cols; x++) { - Arr2[x][0] = 0; for ( int y = 0; y < Rows; y++) { if (Arr1[x][y] > 0) { //move it down a row @@ -62,4 +60,5 @@ } } + \ No newline at end of file