Guest User

h

a guest
Oct 25th, 2013
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.57 KB | None | 0 0
  1.          task mainTask{
  2.             yield;
  3.         movement;
  4.         }
  5.  
  6.     task movement{
  7.         wait(60);
  8.         loop{
  9.             concen;
  10.             wait(40);
  11.             circle;
  12.             circle2;
  13.             circle;
  14.             wait(480);
  15.             PlaySE(sfx3);
  16.             wait(30);
  17.             SetMovePositionRandom01(80,80,20,100,150,350,200);
  18.             barrage;
  19.             wait(120);
  20.            
  21.         }
  22.     }
  23.  
  24.     task concen{
  25.         PlaySE(concenfx);
  26.         Concentration01(60);
  27.         Concentration02(60);
  28.     }
  29.                
  30.         task circle{
  31.                 let x = 0;
  32.                 let dir = 0;
  33.         wait(120);
  34.         loop(4){
  35.             PlaySE(sfx1);
  36.                         while(x<36){
  37.                                 CreateShotA(1,GetEnemyX,GetEnemyY,10);
  38.                                 SetShotDataA(1,0,1,dir,0,0.1,4,BLUE01);
  39.                                 SetShotDataA(1,120,NULL,dir,0,-0.1,-1,RED01);
  40.                 SetShotDataA(1,640,NULL,dir,0.5,0.1,-1,RED01);
  41.                 SetShotDataA(1,800,NULL,NULL,0,0,-1,RED01);
  42.                 FireShot(1);
  43.                                 dir+=360/36;
  44.                                 x++;
  45.                         }
  46.                         x = 0;
  47.                         dir = 0;
  48.                         wait(60);
  49.  
  50.                         yield;
  51.  
  52.  
  53.                 }
  54.         }  
  55.  
  56.     task barrage{
  57.         let x = 0;
  58.                 let dir = 0;
  59.                 wait(1);
  60.         loop(5){
  61.                         PlaySE(sfx2);
  62.                         while(x<36){
  63.                                 CreateShotA(1,GetEnemyX,GetEnemyY,1);
  64.                                 SetShotDataA(1,0,1,dir,0,-0.5,8,BLUE31);
  65.                                 FireShot(1);
  66.                                
  67.                                 dir+=360/36;
  68.                                 x++;
  69.                         }
  70.                         x = 0;
  71.                         dir = 0;
  72.                         wait(5);
  73.             yield;
  74.  
  75.         }
  76.     }
  77.  
  78.     task circle2{
  79.                 let x = 0;
  80.                 let dir = 0;
  81.         wait(120);
  82.         loop(4){
  83.             PlaySE(sfx1);
  84.                         while(x<36){
  85.                                 CreateShotA(1,GetEnemyX,GetEnemyY,10);
  86.                                 SetShotDataA(1,0,1,dir,0,0.1,4,BLUE01);
  87.                                 SetShotDataA(1,120,NULL,dir,0,0.1,-1,GREEN01);
  88.                 SetShotDataA(1,540,NULL,dir,0.5,0.1,-1,GREEN01);
  89.                 SetShotDataA(1,800,NULL,NULL,0,0,-1,GREEN01);
  90.                 FireShot(1);
  91.                                 dir+=360/36;
  92.                                 x++;
  93.                         }
  94.                         x = 0;
  95.                         dir = 0;
  96.                         wait(60);
  97.  
  98.                         yield;
  99.  
  100.  
  101.                 }
  102.         }
Advertisement
Add Comment
Please, Sign In to add comment