diff --git a/Board.cpp b/Board.cpp index dd66b2a..366edb0 100644 --- a/Board.cpp +++ b/Board.cpp @@ -17,15 +17,6 @@ maxWarningLevel(maxWarningLevel){ warningFlashingLevel.push_back(0.f); } clumps.reserve(100); - BlockClump test1; - test1.addBlock(4,BlockColor::WHITE); - test1.addBlock(5,BlockColor::WHITE); - BlockClump test2; - test2.y=0; - test2.addBlock(6,BlockColor::WHITE); - test2.addBlock(7,BlockColor::WHITE); - addClump(test1); - addClump(test2); } void Board::spawnBlock(int col){ diff --git a/C++ProjectTemplate b/C++ProjectTemplate index bf3b1e4..e4e0d1e 100755 Binary files a/C++ProjectTemplate and b/C++ProjectTemplate differ diff --git a/main.cpp b/main.cpp index 902821d..4980493 100644 --- a/main.cpp +++ b/main.cpp @@ -121,7 +121,7 @@ void Meteos::updateGame(float fElapsedTime){ lastBlockSpawn+=fElapsedTime; if (lastBlockSpawn>=gameBoard.spawnRate){ lastBlockSpawn-=gameBoard.spawnRate; - //gameBoard.spawnBlock(randBlockPos(gen)); + gameBoard.spawnBlock(randBlockPos(gen)); } for (int i=gameBoard.getBlockClumps().size()-1;i>=0;i--){ BlockClump&c=gameBoard.getBlockClumps()[i]; @@ -288,7 +288,7 @@ void Meteos::updateGame(float fElapsedTime){ found=true; checkX+=12; tempMatchIDsX.push_back({(int)b.pos.x/12,j,g}); - break; + goto outerRightCheck; } } if (c.landTime>0){ @@ -298,7 +298,7 @@ void Meteos::updateGame(float fElapsedTime){ if (c2.landTime>0){ for (int j=0;j0){ @@ -332,16 +332,17 @@ void Meteos::updateGame(float fElapsedTime){ if (c2.landTime>0){ for (int j=0;j0){ @@ -365,16 +366,17 @@ void Meteos::updateGame(float fElapsedTime){ if (c2.landTime>0){ for (int j=0;j0){ @@ -398,16 +400,17 @@ void Meteos::updateGame(float fElapsedTime){ if (c2.landTime>0){ for (int j=0;j2||tempMatchIDsY.size()>2) { if (tempMatchIDsX.size()>2) {