|
|
@@ -263,6 +263,10 @@ export default class GamePage extends cc.Component {
|
|
|
let deltaY = 1 << 12;
|
|
|
let end_center_y = (GameConfig.end_line_y + GameConfig.fianl_line_y) / 2;
|
|
|
for (let node of this.blocks_node.children) {
|
|
|
+
|
|
|
+ if(node.y > GameConfig.end_line_y+150) continue;
|
|
|
+ if(node.y < GameConfig.end_line_y-150) continue;
|
|
|
+
|
|
|
let block = node.getComponent(Block);
|
|
|
if ((index == undefined || block.index == index) && block.existTime > 0.5) {
|
|
|
let dy = Math.abs(node.y - end_center_y);
|