CODE:
void boss_shot_bulletE228(){
int i,j;
int count;
int rimit=(boss_shot.cnt/60)/10*3+8;
double dx,dy;
if(boss.endtime>240){
if(boss_shot.cnt%30==0){
boss_bullet_on(1,0,1,1,-40,80+GetRand(180),1,0,0,3,0,100);
}
if(boss_shot.cnt%30==15){
boss_bullet_on(1,0,1,1,FMX+40,80+GetRand(180),1,PI,0,3,0,100);
}
if(boss_shot.cnt%60==0){
boss_bullet_on(1,10,2,1,boss.x,boss.y,1,bossatan2(),0,3,1,0,0,1);
}
}
if(boss.endtime==180){
enter_charge_effect(boss.x,boss.y);
}
if(boss.endtime==60){
for(i=0;i50){
count=0;
for(j=0;jrimit){
for(j=0;j<BOSS_BULLET_MAX;j++){
if(boss_shot.bullet[j].flag==1 && boss_shot.bullet[j].state==1){
dx=boss_shot.bullet[j].x-boss_shot.bullet[i].x;
dy=boss_shot.bullet[j].y-boss_shot.bullet[i].y;
if(dx*dx+dy*dy<50*50){
boss_shot.bullet[j].col=2;
boss_shot.bullet[j].spd=4;
}
}
}
boss_shot.bullet[i].flag=0;
}
}
break;
case 1:
if(boss_shot.bullet[i].col==5 && boss_shot.bullet[i].cnt%30==29){
boss_bullet_on(1,10,2,1,boss_shot.bullet[i].x,boss_shot.bullet[i].y,1,rang(PI2),0,2,1,0,0,0);
}
break;
}
}
}
}