Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TouhouDanmakufu
- #Title[Filled Bullet Tester 11]
- #Text[Herp Derp]
- #Player[FREE]
- #ScriptVersion[2]
- #BackGround[User(.\system\rainbowbg.png,1,1)]
- script_enemy_main{
- let CSD = GetCurrentScriptDirectory;
- let bg1 = CSD ~ "system\Ayabg.png";
- let imgBoss = CSD ~ "system\okuu_main.png";
- let cut = CSD ~ "system\okuucutin.png";
- #include_function ".\system\function_cutin.txt";
- let f = 0;
- let f2 = 0;
- let r = 50;
- let dir = 0;
- let angle = 0;
- let angle2 = 0;
- let count = 0;
- let count2 = 0;
- let count3 = 0;
- let r = 50;
- let r2 = 35;
- let slide = 0;
- @Initialize{
- SetLife(10000);
- SetScore(300000);
- SetTimer(450);
- SetMovePosition03(GetCenterX,GetCenterY-120,20,3);
- LoadGraphic(imgBoss);
- LoadGraphic(bg1);
- LoadGraphic(cut);
- LoadUserShotData(GetCurrentScriptDirectory ~ "system\ShotSheet1.txt");
- cutin("NAZRIN","sumfin",cut,0,0,397,696);
- }
- @MainLoop{
- SetCollisionA(GetX,GetY,32);
- SetCollisionB(GetX,GetY,32);
- ExtendPlayer(3);
- count++;
- count2++;
- count3++;
- angle2--;
- angle++;
- if(count == 60){
- loop(8){
- CreateShotA(3,GetEnemyX+r*cos(angle),GetEnemyY+r*sin(angle2),10);
- SetShotDataA(3,0,3,angle*2,0,0,0,85);
- SetShotDataA(3,5,3,angle*2,0,0,0,86);
- SetShotDataA(3,10,3,angle*2,0,0,0,87);
- SetShotDataA(3,15,3,angle*2,0,0,0,88);
- SetShotDataA(3,20,3,angle*2,0,0,0,89);
- SetShotDataA(3,25,3,angle*2,0,0,0,90);
- SetShotDataA(3,30,3,angle*2,0,0,0,91);
- SetShotDataA(3,35,3,angle*2,0,0,0,92);
- SetShotDataA(3,40,3,angle*2,0,0,0,93);
- SetShotDataA(3,45,3,angle*2,0,0.2,1,94);
- SetShotDataA(3,55,1,angle*2,0,0,0,93);
- SetShotDataA(3,65,1,angle*2,0,0,0,92);
- SetShotDataA(3,75,1,angle*2,0,0,0,91);
- SetShotDataA(3,85,1,angle*2,0,0,0,90);
- SetShotDataA(3,95,1,angle*2,0,0,0,89);
- SetShotDataA(3,105,1,angle*2,0,0,0,88);
- SetShotDataA(3,115,1,angle*2,0,0,0,87);
- SetShotDataA(3,125,1,angle*2,0,0,0,86);
- SetShotDataA(3,135,1,angle*2,0,0,0,85);
- SetShotDataA(3,145,1,angle*2,0,0,0,86);
- SetShotDataA(3,155,1,angle*2,0,0,0,87);
- SetShotDataA(3,165,1,angle*2,0,0,0,88);
- SetShotDataA(3,175,1,angle*2,0,0,0,89);
- SetShotDataA(3,185,1,angle*2,0,0,0,90);
- SetShotDataA(3,195,1,angle*2,0,0,0,91);
- SetShotDataA(3,205,1,angle*2,0,0,0,92);
- SetShotDataA(3,215,1,angle*2,0,0,0,93);
- SetShotDataA(3,225,1,angle*2,0,0,0,94);
- FireShot(3);
- PlaySE(CSD~"sound\shot1.wav");
- angle2 += 360/8;
- angle -= 360*4;
- }
- count = 57;
- }
- if(count2 == 600){
- CreateShotA(4,GetEnemyX+r2*cos(angle),GetEnemyY+r2*sin(angle),10);
- SetShotDataA(4,0,4,angle*7,0,0,0,12);
- CreateShotA(5,GetEnemyX+r2*cos(angle2),GetEnemyY+r2*sin(angle2),10);
- SetShotDataA(5,0,4,angle2*7,0,0,0,11);
- FireShot(5);
- FireShot(4);
- count2 = 598;
- }
- if(count3 == 300){
- SetMovePosition03(rand_int(GetClipMinX+20,GetClipMaxX-20),rand_int(GetClipMinY+20,GetClipMinY+100),20,3);
- count3 = 0;
- }
- }
- @DrawLoop{
- //data for the boss
- SetTexture(imgBoss);
- SetRenderState(ALPHA);
- SetAlpha(255);
- if(int(GetSpeedX())==0){
- if(f<10){ SetGraphicRect(0,0,128,128); }
- if(f>=10 && f<20) { SetGraphicRect(128,0,256,128); }
- if(f>=20 && f<30) { SetGraphicRect(0,256,128,384); }
- f2=0;
- }
- if(GetSpeedX()>0){
- if(f2<5){ SetGraphicRect(256,256,384,384); }
- if(f2>=5 && f2<10) { SetGraphicRect(256,384,384,512); }
- f2++;
- }
- if(GetSpeedX()<0){
- if(f2<5){ SetGraphicRect(256,0,384,128); }
- if(f2>=5 && f2<10) { SetGraphicRect(256,128,384,256); }
- f2++;
- }
- SetGraphicScale(1,1);
- SetGraphicAngle(0,0,0);
- DrawGraphic(GetX,GetY);
- f++;
- if(f==40) {f=0;}
- }
- @BackGround{
- SetTexture(bg1);
- SetGraphicRect(0,0,384,448);
- SetGraphicScale(1,1);
- SetGraphicAngle(0,0,0);
- DrawGraphic(GetCenterX,GetCenterY);
- }
- @Finalize{
- // delete the image from memory
- DeleteGraphic(imgBoss);
- DeleteGraphic(bg1);
- DeleteGraphic(cut);
- }
- //wait function
- function wait(w){loop(w){yield;}
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement