CODE:
void boss_shot_bulletE271_sub(int shot_cnt,int t,int sign,int rx,int color){
double angle=0;
double x,y;
if(shot_cnt==t){
boss_shot.base_angle[0]=rang(PI/20);
}
if(t0 && boss_shot.bullet[i].state==1){
flag=1;
break;
}
}
if(flag==0) boss_bullet_on(1,0,0,1,boss.x,boss.y,1,rang(PI2),0,0,1,0,0,1);
}
if(t==120 || t==240 || t==360){
input_phy_pos(FMX/2+rang(80.0),60+rang(40.0),60);
}
boss_shot_bulletE271_sub(t,180, 1, 90,2);
boss_shot_bulletE271_sub(t,200,-1,120,0);
boss_shot_bulletE271_sub(t,220, 1,150,1);
boss_shot_bulletE271_sub(t,300,-1, 90,2);
boss_shot_bulletE271_sub(t,320, 1,120,0);
boss_shot_bulletE271_sub(t,340,-1,150,1);
boss_shot_bulletE271_sub(t,420, 1, 90,2);
boss_shot_bulletE271_sub(t,440,-1,120,0);
boss_shot_bulletE271_sub(t,460, 1,150,1);
if(t==510){
input_phy_pos(FMX-80+rang(20),250+rang(20),60);
}
if(t==570){
for(i=0;i0 && boss_shot.bullet[i].state==2){
flag=1;
break;
}
}
if(flag==0) boss_bullet_on(1,0,0,1,boss.x,boss.y,1,rang(PI2),0,0,2,0,0,1);
}
if(t==630 || t==750 || t==870){
input_phy_pos(FMX/2+rang(80.0),60+rang(40.0),60);
}
boss_shot_bulletE271_sub(t,690,-1, 90,2);
boss_shot_bulletE271_sub(t,710, 1,120,0);
boss_shot_bulletE271_sub(t,730,-1,150,1);
boss_shot_bulletE271_sub(t,810, 1, 90,2);
boss_shot_bulletE271_sub(t,830,-1,120,0);
boss_shot_bulletE271_sub(t,850, 1,150,1);
boss_shot_bulletE271_sub(t,930,-1, 90,2);
boss_shot_bulletE271_sub(t,950, 1,120,0);
boss_shot_bulletE271_sub(t,970,-1,150,1);
for(i=0;i0){
switch(boss_shot.bullet[i].state){
case 1:
if(boss_shot.bullet[i].cnt==0){
boss_shot.bullet[i].base_angle[0]=200;
}
boss_shot_bulletE271_sub2(boss_shot.bullet[i].cnt,
boss_shot.bullet[i].x,boss_shot.bullet[i].y,1);
if(boss_shot.bullet[i].cnt>60){
boss_bullet_on(1,1,1,3,boss_shot.bullet[i].x,boss_shot.bullet[i].y,
1,rang(PI2),0,3,6,0,1,0);
}
for(j=0;j60){
boss_bullet_on(1,1,1,3,boss_shot.bullet[i].x,boss_shot.bullet[i].y,
1,rang(PI2),0,3,6,0,1,0);
}
for(j=0;j0 && boss_shot.bullet[j].state==1){
flag=1;
break;
}
}
if(flag==0) boss_shot.bullet[i].spd=1;
break;
case 4:
flag=0;
for(j=0;j0 && boss_shot.bullet[j].state==2){
flag=1;
break;
}
}
if(flag==0) boss_shot.bullet[i].spd=1;
break;
case 5:
if(boss_shot.bullet[i].cnt>60 && boss_shot.bullet[i].cnt120){
if(boss_shot.bullet[i].spdboss.hp_max){
boss.hp=boss.hp_max;
}
}
}
break;
}
}
}
}