Advertisement
Guest User

Untitled

a guest
Aug 18th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. #TouhouDanmakufu
  2. #Title[TEST]
  3. #Text[Test]
  4. #Player[FREE]
  5. #ScriptVersion[2]
  6.  
  7. script_enemy_main
  8. {
  9. let frame = 0;
  10. let count = 0;
  11. let switch = 0;
  12.  
  13.  
  14. @Initialize
  15. {
  16. SetMovePosition03(GetCenterX, GetCenterY-100, 15, 3);
  17. SetInvincibility(150);
  18. SetTimer(999999);
  19. SetLife(1500);
  20. SetEnemyMarker(true);
  21. SetDamageRate(10, 10);
  22. SetEnemyMarker(true);
  23. SetEffectForZeroLife(60,60,0);
  24. mainTask;
  25. }
  26.  
  27. task mainTask
  28. {
  29. Wait(50);
  30. SetColor(255, 100, 100);
  31. Concentration01(150);
  32. Wait(100);
  33. wave(2);
  34. }
  35.  
  36. task wave(a){
  37. let angle = 0;
  38. let vstr = 25;
  39. let hstr = 3;
  40. let vshr = 75;
  41. let hshr = 1;
  42. loop{
  43. Shoot(angle, GetX+sin((angle)*hshr)*vshr, GetY+sin((angle+25)*hshr)*vshr);
  44. Shoot(angle, GetX+sin((-angle)*hshr)*vshr, GetY+sin((-angle+155)*hshr)*vshr);
  45. Wait(a);
  46. angle+=11;
  47. }
  48. }
  49.  
  50. task Shoot(a,d,e){
  51. let angle = 0;
  52. CreateShotA(1, d, e, 25);
  53. SetShotDataA(1, 0, 0, a, 0, 0.1, 0, RED01);
  54. SetShotDataA(1, 100, 0, a, 0, 0.1, 3, RED01);
  55. FireShot(1);
  56. }
  57.  
  58. function Wait(time){loop(time){yield;}}
  59.  
  60.  
  61. @MainLoop
  62. {
  63. yield;
  64. SetCollisionA(GetX,GetY,48);
  65. SetCollisionB(GetX,GetY,32);
  66. frame++;
  67. }
  68.  
  69. @DrawLoop
  70. {
  71. }
  72.  
  73. @BackGround
  74. {
  75. }
  76.  
  77. @Finalize
  78. {
  79. }
  80.  
  81.  
  82. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement