teo45

MDA_winder_q.xml

Dec 23rd, 2023
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. <?xml version="1.0" ?>
  2. <!DOCTYPE bulletml SYSTEM "../barrage.dtd">
  3.  
  4. <barrage>
  5.  
  6. <barrageInfo>
  7. <filename>MDA_winder_q</filename>
  8. <group>MDA</group>
  9. <title>乱数と累乗の昆布汁</title>
  10. <description>変則的な回廊状ワインダーを作ろうと思ったら、変態的な全方位弾幕になりました。毎回割と姿を変え、且つ刻々と変化します。長いです(50レベルで20秒、100レベルで30秒)。これ作ってた時、酔いました。</description>
  11. <capture>きれいな全方位で始まると、終盤きついワインダーのような状態になるのでその時注意です。レベルアップすると微妙に弾速が上がり、弾幕がギュンギュンからギューンギューンギューンになります(わかりにくくてすいません)。</capture>
  12. </barrageInfo>
  13.  
  14. <barrageStyle>
  15. <bulletLanguage name="lua"/>
  16. </barrageStyle>
  17. <!-- w:本数 r:発射角度 t:時間 q:回転累乗 s:弾速 -->
  18. <lua>
  19. <![CDATA[
  20. w = 6
  21. r = math.random(90,630)
  22. t = 2
  23.  
  24. function top()
  25. local turn = getTurn()
  26. if (turn == 1) then
  27. X = getMaxX()/2
  28. Y = getMaxY()/3
  29. setPos(X, Y)
  30. rank = getRank()
  31. t = 1200*(rank+0.5)
  32. q = 1.465-(rank^0.42*0.04)
  33. s = 1.55+(rank*0.1)
  34. end
  35. if (turn > t+60) then
  36. quit()
  37. end
  38. if (turn <= t) then
  39. if (math.mod(turn,2) == 1) then
  40. for i=1,w do
  41. fire(math.sin( math.pi*((turn^q)+(i*r/w))/180)*s, -math.cos(math.pi*((turn^q)+(i*r/w))/180)*s)
  42. end
  43. end
  44. end
  45. end
  46.  
  47. ]]>
  48. </lua>
  49.  
  50.  
  51. </barrage>
  52.  
Advertisement
Add Comment
Please, Sign In to add comment