teo45

overkill_gara.xml

Dec 23rd, 2023
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. <?xml version="1.0" ?>
  2. <!DOCTYPE bulletml SYSTEM "../barrage.dtd">
  3.  
  4. <barrage>
  5.  
  6. <barrageInfo>
  7. <group>shinichiro_h</group>
  8. <title>OKG</title>
  9. <description>殺す気まんまんのガラさんです。</description>
  10. <capture>避けれるかどうかとかは深く考えていません。</capture>
  11. </barrageInfo>
  12.  
  13. <barrageStyles>
  14. <!-- bulletml か lua が使えます。 -->
  15. <bulletLanguage name="lua" />
  16. </barrageStyles>
  17.  
  18. <!-- CDATA とかいうのは大事なおまじないです。 -->
  19. <lua>
  20. <![CDATA[
  21. count = 0
  22. angle = 0
  23. amount = 60
  24.  
  25. function child_gara(x)
  26. if (getX() < 10 or getX() > getMaxX() - 10 or
  27. getY() < 10 or getY() > getMaxY() - 10) then
  28. local pa = getPlayerAngle()
  29. for i=1,20 do
  30. local spd = 0.6 + i * 0.2
  31. fire(math.sin(pa)*spd, -math.cos(pa)*spd)
  32. end
  33. vanish()
  34. end
  35. end
  36.  
  37. function top()
  38. local turn = getTurn()
  39. if (turn > 700) then
  40. quit()
  41. elseif (turn > 495) then
  42. return
  43. end
  44.  
  45. local c = math.mod(turn, 100)
  46. if (c == 99) then
  47. amount = amount + 8
  48. end
  49. if (c < amount) then
  50. if (c == amount - 1) then
  51. count = count + 1
  52. setSpeed(0, 0)
  53. return
  54. end
  55.  
  56. local pa = getPlayerAngle()
  57. setSpeed(math.sin(pa), -math.cos(pa))
  58.  
  59. if (math.mod(c, 5) == 0) then
  60. if (math.mod(count, 2) == 1) then
  61. for i=1,20 do
  62. local spd = 0.6 + i * 0.2
  63. fire(math.sin(pa)*spd, -math.cos(pa)*spd)
  64. end
  65. else
  66. if (c == 0) then
  67. angle = pa + (count-1) * 1
  68. else
  69. angle = angle - (count-1) * 0.2
  70. end
  71. for i=1,20 do
  72. local spd = 0.2 + i * 0.2
  73. fire(math.sin(angle)*spd, -math.cos(angle)*spd)
  74. end
  75. if (count == 4) then
  76. fire(math.sin(angle)*1, -math.cos(angle)*1, "child_gara")
  77. end
  78. end
  79. end
  80. end
  81. end
  82. ]]>
  83. </lua>
  84.  
  85. </barrage>
  86.  
Advertisement
Add Comment
Please, Sign In to add comment