|
|
@ -157,7 +157,7 @@ public class Board { |
|
|
|
b.y-=minY; |
|
|
|
b.y-=minY; |
|
|
|
} |
|
|
|
} |
|
|
|
blockClumpAddList.add( |
|
|
|
blockClumpAddList.add( |
|
|
|
new BlockClump(newClumpBlocks, blocks.x, blocks.y+minY*block_height, launch_power, width, 120) |
|
|
|
new BlockClump(newClumpBlocks, blocks.x, blocks.y+minY*block_height+4, launch_power, width, 120) |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
return markedBlocks.size()>0; |
|
|
|
return markedBlocks.size()>0; |
|
|
@ -216,12 +216,14 @@ public class Board { |
|
|
|
blocks.launched--; |
|
|
|
blocks.launched--; |
|
|
|
} else |
|
|
|
} else |
|
|
|
if (blocks.launched==0) { |
|
|
|
if (blocks.launched==0) { |
|
|
|
|
|
|
|
SplitBlockClump(blocks); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (blocks.launched<=0) { |
|
|
|
for (Block b : blocks.getBlocks()) { |
|
|
|
for (Block b : blocks.getBlocks()) { |
|
|
|
if (b.state==BlockState.IGNITED) { |
|
|
|
if (b.state==BlockState.IGNITED) { |
|
|
|
b.state=STARTINGSTATES[(int)(Meteo.r.nextInt(3))]; |
|
|
|
b.state=STARTINGSTATES[(int)(Meteo.r.nextInt(3))]; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
SplitBlockClump(blocks); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
private void SplitBlockClump(BlockClump blocks) { |
|
|
|
private void SplitBlockClump(BlockClump blocks) { |
|
|
|