Commit 1228ad51 authored by Chen Jiping's avatar Chen Jiping

完善

parent 7e4da02a
...@@ -1451,9 +1451,6 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -1451,9 +1451,6 @@ export class PlayComponent implements OnInit, OnDestroy {
let y = item.pic.y; let y = item.pic.y;
item.pic.scaleY = 0;
item.pic.scaleX = 0;
for(let i = 0; i < this.ballon_temp_arr.length; ++ i){ for(let i = 0; i < this.ballon_temp_arr.length; ++ i){
let answer = this.ballon_temp_arr[i]; let answer = this.ballon_temp_arr[i];
...@@ -1466,6 +1463,9 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -1466,6 +1463,9 @@ export class PlayComponent implements OnInit, OnDestroy {
if(answer.pic.y < 0){ if(answer.pic.y < 0){
break; break;
} }
item.pic.scaleY = 0;
item.pic.scaleX = 0;
item.pic.alpha=0; item.pic.alpha=0;
...@@ -1545,8 +1545,11 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -1545,8 +1545,11 @@ export class PlayComponent implements OnInit, OnDestroy {
break; break;
} }
} }
//坐标出去后不检查
if(y < 0){
return;
}
if(!item.hit){ if(!item.hit){
setTimeout(() => { setTimeout(() => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment