Advertisement
teo45

kasuri_sin.xml

Dec 23rd, 2023
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. <?xml version="1.0" ?>
  2. <!DOCTYPE bulletml SYSTEM "../barrage.dtd">
  3.  
  4. <barrage>
  5.  
  6. <!--
  7. 2003/11/25 by Oohara Yuuma (oohara@libra.interq.or.jp)
  8. * buzz the fire
  9. * hello central
  10. * ride the wave
  11. -->
  12.  
  13. <barrageInfo>
  14. <filename>kasuri_sin</filename>
  15. <group>Oohara</group>
  16. <title>カスリ正弦</title>
  17. <description>某カスリシューティングの自機の最終形態がこんな感じの弾を撃ちます。LuaBullet でようやく構造がわかりました。</description>
  18. <capture>後ろにまわるまでもないでしょう。</capture>
  19. </barrageInfo>
  20.  
  21. <barrageStyle>
  22. <bulletLanguage name="lua"/>
  23. </barrageStyle>
  24.  
  25. <lua>
  26. <![CDATA[
  27. function top()
  28. local turn = getTurn()
  29. local speed = 0.5 + getRank() * 0.5
  30. if (turn > 500) then
  31. quit()
  32. end
  33. if (turn < 30) then
  34. return
  35. end
  36. if (math.mod(turn, 4) < 3.0) then
  37. fire(speed * math.sin(turn * 7 * 2 * 3.14 / 360.0), speed * 2.0)
  38. end
  39. end
  40. ]]>
  41. </lua>
  42.  
  43. </barrage>
  44.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement