//5秒count大概能加到300多 this.time_count = this.time_count +1; console.log(this.time_count);
1-40 = 40的机率
40-75=35的机率
75-100 是敌机3 25的机率。
this.node.on('touchmove', function (event) { if(this.game_state==4){ return; } if (this.isBgMove){ var pos_hero = this.hero.getPosition(); } var pos_move = event.getDelta(); var pos_end = cc.v2(pos_hero.x + pos_move.x, pos_hero.y + pos_move.y); if(pos_end.x>266){ pos_end.x=266 } if(pos_end.x<-277){ pos_end.x=-277 } if(pos_end.y<-530){ pos_end.y=-530 } this.hero.setPosition(pos_end); }, this);
站长微信:xiaomao0055
站长QQ:14496453