今年最後の弾幕

アバター
Tatu
記事: 445
登録日時: 14年前
住所: 北海道

今年最後の弾幕

投稿記事 by Tatu » 14年前

前回の弾幕は「デフレーションワールド」が元ネタでした。

本日の弾幕 ナピレー・ワン
Ultimateさんのホームページに掲載された画像から
弾幕181.jpg

CODE:

void boss_shot_bulletT181(){
	int i,t=boss_shot.cnt%300;
	double d;
	double angle;
	if(boss_shot.cnt==0){
		input_phy_pos(FMX/2,FMY/2,30);
		boss_bullet_on(1,7,2,2,-20,-20,1,0,0,2,100*60,0,0);
		boss_bullet_on(1,7,2,2,FMX+20,FMY+20,PI,0,1,2,100*60,0,0);
	}
	if(t==60){
		boss_shot.base_angle[0]=bossatan2();
		boss_bullet_on(1,0,2,1,boss.x,boss.y,rang(PI2),0,1,1,0,0,0);
		boss_bullet_on(1,0,4,1,boss.x,boss.y,rang(PI2),0,2,1,0,0,0);
	}
	if(t>60 && tFMX) && boss_shot.bullet[i].x*boss_shot.bullet[i].vx>=0){
					boss_shot.bullet[i].vx*=-1;
				}

				if((boss_shot.bullet[i].yFMY) && boss_shot.bullet[i].y*boss_shot.bullet[i].vy>=0){
					boss_shot.bullet[i].vy*=-1;
				}
			}
			if(boss_shot.bullet[i].state==3){
				d=2*sin(PI2/180*boss_shot.bullet[i].cnt);
				boss_shot.bullet[i].x+=d*sin(boss_shot.bullet[i].angle);
				boss_shot.bullet[i].y+=d*cos(boss_shot.bullet[i].angle);
			}
		}
		if(boss_shot.bullet[i].state==2){
			if(boss_shot.bullet[i].cnt==0){
				boss_shot.bullet[i].vx=boss_shot.bullet[i].spd*cos(boss_shot.bullet[i].angle);
				boss_shot.bullet[i].vy=boss_shot.bullet[i].spd*sin(boss_shot.bullet[i].angle);
				boss_shot.bullet[i].spd=0;
			}
			if(boss_shot.bullet[i].vx>0 && boss_shot.bullet[i].x >FMX+20){
				boss_shot.bullet[i].vx=0;
				boss_shot.bullet[i].vy=1;
			}
			if(boss_shot.bullet[i].vx0 && boss_shot.bullet[i].y >FMY+20){
				boss_shot.bullet[i].vx=-1;
				boss_shot.bullet[i].vy=0;
			}
			if(boss_shot.bullet[i].vy<0 && boss_shot.bullet[i].y <-20){
				boss_shot.bullet[i].vx=1;
				boss_shot.bullet[i].vy=0;
			}
			boss_shot.bullet[i].x+=boss_shot.bullet[i].vx;
			boss_shot.bullet[i].y+=boss_shot.bullet[i].vy;

			if(boss_shot.bullet[i].cnt%10==0){
				boss_bullet_on(1,7,2,1,boss_shot.bullet[i].x,boss_shot.bullet[i].y,atan2(boss_shot.bullet[i].vy,boss_shot.bullet[i].vx)+PI/2,0,1,3,400,0,1);
			}
		}
	}
}

コメントはまだありません。