[nico]http://www.nicovideo.jp/watch/sm17279404[/nico]
► スポイラーを表示
void boss_shot_bulletE275(){
int i;
int t=boss_shot.cnt%1800;
double dx,dy;
if(t%360==300){
boss.spd=1;
boss.ang=bossatan2();
}
if(t%360==359){
boss.spd=0;
}
boss.x+=boss.spd*cos(boss.ang);
boss.y+=boss.spd*sin(boss.ang);
if(t=360 && t=720 && t=1080 && t0){
switch(boss_shot.bullet[i].state){
case 1:
if(boss_shot.bullet[i].cnt==0) boss_shot.bullet[i].kaiten=1;
boss_shot.bullet[i].spd+=0.05;
if(boss_shot.bullet[i].xFMX
|| boss_shot.bullet[i].yFMY){
boss_shot.bullet[i].cnt=0;
boss_shot.bullet[i].spd=0;
boss_shot.bullet[i].state=2;
}
dx=boss.x-boss_shot.bullet[i].x;
dy=boss.y-boss_shot.bullet[i].y;
boss_shot.bullet[i].size=1+0.02*sqrt(dx*dx+dy*dy);
break;
case 2:
if(boss_shot.bullet[i].cnt>60){
boss_shot.bullet[i].angle=bossatan3(i,boss.x,boss.y);
boss_shot.bullet[i].spd+=0.05;
}
dx=boss.x-boss_shot.bullet[i].x;
dy=boss.y-boss_shot.bullet[i].y;
if(dx*dx+dy*dy0){
switch(boss_shot.bullet[i].state){
case 1:
if(boss_shot.bullet[i].cnt==0){
boss_shot.bullet[i].kaiten=1;
}
if(boss_shot.bullet[i].y>FMY){
boss_shot.bullet[i].state=2;
boss_shot.bullet[i].cnt=0;
boss_shot.bullet[i].spd=0;
}
break;
case 2:
boss_bullet_on3(1,2,27,3,1,0,boss_shot.bullet[i].x,boss_shot.bullet[i].y,
-boss_shot.bullet[i].angle+PI2/60*boss_shot.bullet[i].cnt,
0,0,0,-4,3,0,0,1);
if(boss_shot.bullet[i].cnt==60){
boss_shot.bullet[i].flag=0;
}
break;
case 3:
if(boss_shot.bullet[i].cnt==0){
boss_shot.bullet[i].kaiten=1;
}
if(boss_shot.bullet[i].cnt==80){
boss_bullet_on(8,8,2,1,boss_shot.bullet[i].x,boss_shot.bullet[i].y,
1,boss_shot.bullet[i].angle,PI2/8,0.5,4,0,1,0);
}
boss_shot.bullet[i].y+=boss_shot.bullet[i].vy;
boss_shot.bullet[i].size+=5.0/80;
break;
case 4:
if(boss_shot.bullet[i].cnt>120 && boss_shot.bullet[i].cnt240){
boss_shot.bullet[i].spd+=0.02;
}
break;
}
}
}
}
void boss_shot_bulletE277(){
int t=boss_shot.cnt%300;
double angle;
if(t==0){
angle=bossatan2();
boss_bullet_on(8,27,2,2,boss.x,boss.y,1,angle,PI2/8,6,1,0,0,1);
}
for(int i=0;i0){
switch(boss_shot.bullet[i].state){
case 1:
if(boss_shot.bullet[i].cnt==0){
boss_shot.bullet[i].kaiten=1;
}
if(boss_shot.bullet[i].xFMX
|| boss_shot.bullet[i].yFMY){
boss_shot.bullet[i].state=2;
boss_shot.bullet[i].cnt=0;
boss_shot.bullet[i].spd=0;
}
break;
case 2:
if(boss_shot.bullet[i].xFMX){
boss_bullet_on3(1,2,27,2,1,0,boss_shot.bullet[i].x,boss_shot.bullet[i].y,
-boss_shot.bullet[i].angle+PI2/12*boss_shot.bullet[i].cnt,
0,0,-4, 0,3,0,0,1);
}
else if(boss_shot.bullet[i].yFMY){
boss_bullet_on3(1,2,27,2,1,0,boss_shot.bullet[i].x,boss_shot.bullet[i].y,
-boss_shot.bullet[i].angle+PI2/12*boss_shot.bullet[i].cnt,
0,0,0,-4,3,0,0,1);
}
if(boss_shot.bullet[i].cnt==60){
boss_shot.bullet[i].flag=0;
}
break;
case 3:
if(boss_shot.bullet[i].cnt==0){
boss_shot.bullet[i].kaiten=1;
}
if(boss_shot.bullet[i].cnt==80){
boss_bullet_on(1,8,3,1,boss_shot.bullet[i].x,boss_shot.bullet[i].y,
1,boss_shot.bullet[i].angle,0,0.5,4,0,1,0);
}
boss_shot.bullet[i].x+=boss_shot.bullet[i].vx;
boss_shot.bullet[i].y+=boss_shot.bullet[i].vy;
boss_shot.bullet[i].size+=2.0/120;
break;
case 4:
if(boss_shot.bullet[i].cnt>120 && boss_shot.bullet[i].cnt240){
boss_shot.bullet[i].spd+=0.02;
}
break;
}
}
}
}
void boss_shot_bulletE278(){
double x[8]={-160,-120,120,160,-160,-120,120,160};
double y[8]={ -40, -40,-40,-40, 40, 40, 40, 40};
int i,j,t=boss_shot.cnt%1200;
double r;
double dx,dy;
if(boss_shot.cnt==0){
boss_shot.base_angle[0]=65*PI/180;
}
if(t%30==0){
boss_bullet_on(36,22,7,1,boss.x,boss.y,1,bossatan2(),PI2/36,3,0,0,0,1);
boss_bullet_on(36,22,6,1,boss.x,boss.y,1,bossatan2(),PI2/36,1.5,0,0,0,1);
}
if(t%120==0){
for(i=0;i0){
switch(boss_shot.bullet[i].state){
case 1:
if(boss_shot.bullet[i].cnt==0) boss_shot.bullet[i].kaiten=1;
r=30-5*boss_shot.bullet[i].size;
dx=PI*r/30*(1-cos(PI/30*boss_shot.bullet[i].cnt));
dy=PI*r/30*sin(PI/30*boss_shot.bullet[i].cnt);
boss_shot.bullet[i].x+=dx*cos(boss_shot.bullet[i].angle)
-dy*sin(boss_shot.bullet[i].angle);
boss_shot.bullet[i].y+=dx*sin(boss_shot.bullet[i].angle)
+dy+cos(boss_shot.bullet[i].angle);
break;
}
}
}
}
「東方妖々夢」のHardをクリアしました。