Guest User

Untitled

a guest
Dec 17th, 2011
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.86 KB | None | 0 0
  1. #TouhouDanmakufu
  2. #Title[Marisa N1]
  3. #Text[Simplify]
  4. #ScriptVersion[2]
  5.  
  6. script_enemy_main {
  7.  
  8. #include_function".\lib\lib_anime_Marisa.txt";
  9.  
  10. let CSD = GetCurrentScriptDirectory; // Declare Variable
  11.  
  12. let ImgBoss = CSD ~ "Image\boss_marisa.png";
  13.  
  14. let frame = 0;
  15.  
  16. @Initialize {
  17.  
  18. LoadGraphic(ImgBoss);
  19. SetLife(1600);
  20. SetDamageRate(50,200);
  21. SetTimer(45);
  22. SetX(GetCenterX);
  23. SetY(GetCenterY-100);
  24. LoadUserShotData(CSD~"Image\Shot\supershot.txt"); Expert;
  25.  
  26.  
  27. }
  28.  
  29. @MainLoop {
  30.  
  31. SetCollisionA(GetX, GetY, 32);
  32. SetCollisionB(GetX, GetY, 16);
  33. yield;
  34. frame++;
  35. if(frame==5){
  36. SetAction(ACT_MOVE,30);
  37.  
  38.  
  39. }
  40.  
  41. if(frame==200){
  42. CreateShotA(200, GetX, GetY, 20);
  43. SetShotDataA(200, 20, 60, 1.5, 1.0, 20, 70, 200);
  44. SetShotDataA_XY(200, 0, 10, 30, 20, 1.5, 15, 35, 200);
  45. AddShot(30,200,134);
  46. FireShot(200);
  47. SetAction(ACT_SHOT_A4,120);
  48. }
  49.  
  50. if(frame==320){
  51. SetMovePositionRandom01(60,rand(0,0),3,GetCenterX-100,50,GetCenterX+100,140);
  52. SetAction(ACT_MOVE_L);
  53.  
  54.  
  55. }
  56.  
  57. if(frame==480){
  58. CreateShot01(GetX,GetY,0,48,20);
  59. CreateShot01(GetX,120,GetAngleToPlayer,48,0);
  60. CreateShot02(GteX,GetY,
  61. SetAction(ACT_SHOT_A);
  62. }
  63. }
  64.  
  65. }
  66.  
  67.  
  68. @DrawLoop {
  69.  
  70. DrawBoss(ImgBoss);
  71. SetTexture(ImgBoss);
  72. SetGraphicRect(0, 0, 63, 63);
  73. SetGraphicScale(1,1);
  74. SetRenderState(ALPHA);
  75.  
  76. if(GetSpeedX()>0){SetAction(ACT_MOVE,0)}
  77. if(GetSpeedX()<0){SetAction(ACT_MOVE,0)}
  78.  
  79. }
  80.  
  81.  
  82. @Finalize {
  83.  
  84. DeleteGraphic(ImgBoss);
  85.  
  86. }
Advertisement
Add Comment
Please, Sign In to add comment