logo

libbulletml

Library of Bullet Markup Language (forked from https://shinh.skr.jp/libbulletml/index_en.html )git clone https://hacktivis.me/git/libbulletml.git

README.bulletml (6712B)


  1. BulletML Reference ver. 0.21 (c) Ĺ·òÂÀ(ABA."Saba") ABA Games
  2. BulletML¤Î´Ê°×¥ê¥Õ¥¡¥ì¥ó¥¹¤Ç¤¹¡£
  3. <bulletml> - Defines the BulletML's body ¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬
  4. ¡¦ Attribute - type = (none | vertical | horizontal)
  5. ¡¦ Contents - (bullet | action | fire)*
  6. BulletMLËÜÂΤòÄêµÁ¤·¤Þ¤¹¡£
  7. type°À­¤Ï¡¢¤³¤ÎÃÆË뤬½Ä¥¹¥¯¥í¡¼¥ë¥·¥å¡¼¥Æ¥£¥ó¥°ÍѤ«¡¢²£¥¹¥¯¥í¡¼¥ë¥·¥å¡¼¥Æ¥£¥ó
  8. ¥°ÍѤ«¤òµ¬Äꤷ¤Þ¤¹¡£
  9. <bullet> - Defines attributes of a bullet ¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬
  10. ¡¦ Attribute - label = STRING
  11. ¡¦ Contents - direction?, speed?, (action | actionRef)*
  12. ¡¦ Exapmle
  13. <bullet label="downAccel">
  14. <direction>270</direction>
  15. <speed>2</speed>
  16. <action>
  17. <accel>
  18. <vertical>3</vertical>
  19. <term>120</term>
  20. </accel>
  21. </action>
  22. </bullet>
  23. ÃƤÎÊý¸þ¡¢Â®ÅÙ¤ª¤è¤Ó¥¢¥¯¥·¥ç¥ó¤òÄêµÁ¤·¤Þ¤¹¡£
  24. ¥é¥Ù¥ë°À­¤Ç¥é¥Ù¥ë̾¤ò¤Ä¤±¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¥é¥Ù¥ëÉÕ¤±¤µ¤ì¤¿bulletÍ×ÁǤϡ¢
  25. bulletRefÍ×ÁǤˤè¤Ã¤Æ»²¾È¤µ¤ì¤Þ¤¹¡£
  26. <action> - Defines the action of bullet ¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬
  27. ¡¦ Attribute - label = STRING
  28. ¡¦ Contents - (repeat | fire | fireRef | changeSpeed | changeDirection | accel
  29. | wait | vanish | action | actionRef)*
  30. ¡¦ Exapmle
  31. <action>
  32. <changeSpeed>
  33. <speed>0</speed>
  34. <term>60</term>
  35. </changeSpeed>
  36. <wait>60</wait>
  37. <fire><bullet/></fire>
  38. <fire>
  39. <direction type="absolute">330+$rand*25</direction>
  40. <bulletRef label="downAccel"/>
  41. </fire>
  42. <vanish/>
  43. </action>
  44. ÃƤΥ¢¥¯¥·¥ç¥ó¤òÄêµÁ¤·¤Þ¤¹¡£¥é¥Ù¥ëÉÕ¤±¤µ¤ì¤¿actionÍ×ÁǤϡ¢actionRefÍ×ÁǤˤè¤Ã¤Æ
  45. »²¾È¤µ¤ì¤Þ¤¹¡£
  46. <fire> - Fires a bullet ¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬
  47. ¡¦ Attribute - label = STRING
  48. ¡¦ Contents - direction?, speed?, (bullet | bulletRef)
  49. ¡¦ Exapmle
  50. <fire>
  51. <direction type="absolute">270</direction>
  52. <speed>2</speed>
  53. <bulletRef label="rocket"/>
  54. </fire>
  55. ÃƤò<direction>ÅÙÊý¸þ¤Ë®ÅÙ<speed>¤Ç·â¤Á¤Þ¤¹¡£¥é¥Ù¥ëÉÕ¤±¤µ¤ì¤¿fireÍ×ÁǤϡ¢
  56. fireRefÍ×ÁǤˤè¤Ã¤Æ»²¾È¤µ¤ì¤Þ¤¹¡£
  57. <changeDirection> - Changes the direction of bullet ¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬
  58. ¡¦ Contents - direction, term
  59. ÃƤÎÊý¸þ¤ò<direction>ÅÙ¤Ë<term>¥Õ¥ì¡¼¥à¤«¤±¤Æ¶Ê¤²¤Þ¤¹¡£ 1¥Õ¥ì¡¼¥à¤Ï1/60ÉäǤ¹¡£
  60. <changeSpeed> - Changes the speed of bullet ¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬
  61. ¡¦ Contents - speed, term
  62. ÃƤήÅÙ¤ò<speed>¤Ë<term>¥Õ¥ì¡¼¥à¤«¤±¤ÆÊѤ¨¤Þ¤¹¡£
  63. <accel> - Accelerates a bullet ¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬
  64. ¡¦ Contents - horizontal?, vertical?, term
  65. ÃƤò¿åÊ¿Êý¸þ¤Ë<horizontal>¡¢¿âľÊý¸þ¤Ë<vertical>¡¢ <term>¥Õ¥ì¡¼¥à¤«¤±¤Æ²Ã®¤·¤Þ
  66. ¤¹¡£
  67. <wait> - Waits ¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬
  68. ¡¦ Contents - NUMBER
  69. NUMBER¥Õ¥ì¡¼¥àÂÔ¤Á¤Þ¤¹¡£
  70. <vanish> - Vanishes a bullet ¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬
  71. ÃƤò¾Ã¤·¤Þ¤¹¡£
  72. <repeat> - Repeats an action ¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬
  73. ¡¦ Contents - times, (action | actionRef)
  74. ¡¦ Exapmle
  75. <repeat>
  76. <times>100</times>
  77. <action>
  78. <fire>
  79. <direction type="absolute">220+$rand*100</direction>
  80. <bulletRef label="backBurst"/>
  81. </fire>
  82. <wait>6</wait>
  83. </action>
  84. </repeat>
  85. ¥¢¥¯¥·¥ç¥ó¤ò<times>²ó·«¤êÊÖ¤·¤Þ¤¹¡£
  86. <direction> - Specifies a direction ¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬
  87. ¡¦ Attribute - type = (aim | absolute | relative | sequence)
  88. ¡¦ Contents - NUMBER
  89. Êý¸þ¤òÅÙñ°Ì¤Ç»ØÄꤷ¤Þ¤¹¡£
  90. type¤¬"aim"¤Î¾ì¹ç¡¢¼«µ¡¤òÁÀ¤¦Êý¸þ¤¬0¤ÎÁêÂÐÃͤˤʤê¤Þ¤¹¡£
  91. type¤¬"absolute"¤Î¾ì¹ç¡¢NUMBER¤ÏÀäÂÐÃ͡ʾåÊý¸þ¤¬0¤Ç»þ·×²ó¤ê¡Ë¤Ç¤¹¡£
  92. type¤¬"relative"¤Î¾ì¹ç¡¢NUMBER¤Ï¤³¤ÎÃƤÎÊý¸þ¤¬0¤ÎÁêÂÐÃͤˤʤê¤Þ¤¹¡£
  93. type¤¬"sequence"¤Î¾ì¹ç¡¢Ä¾Á°¤ÎÃƤò·â¤Ã¤¿Êý¸þ¤¬0¤ÎÁêÂÐÃͤˤʤê¤Þ¤¹¡£
  94. <speed> - Specifies a speed ¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬
  95. ¡¦ Attribute - type = (absolute | relative | sequence)
  96. ¡¦ Contents - NUMBER
  97. ®ÅÙ¤ò»ØÄꤷ¤Þ¤¹¡£
  98. type¤¬"relative"¤Î¾ì¹ç¡¢ changeSpeedÍ×ÁÇÆâ¤Ç¤Ï¸½ºß¤ÎÃƤήÅ٤ȤÎÁêÂÐÃÍ¡¢¤½¤ì°Ê
  99. ³°¤ÎÍ×ÁÇÆâ¤Ç¤Ï¤³¤ÎÃƤήÅ٤ȤÎÁêÂÐÃͤǤ¹¡£
  100. type¤¬"sequence"¤Î¾ì¹ç¡¢ changeSpeedÍ×ÁÇÆâ¤Ç¤ÏÃƤήÅÙ¤òϢ³Ū¤ËÊѲ½¤µ¤»¡¢¤½¤ì
  101. °Ê³°¤ÎÍ×ÁÇÆâ¤Ç¤ÏľÁ°¤ÎÃƤήÅ٤ȤÎÁêÂÐÃͤǤ¹¡£
  102. <horizontal> - Specifies the acceleration in a horizontal line ¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬
  103. ¡¦ Attribute - type = (absolute | relative | sequence)
  104. ¡¦ Contents - NUMBER
  105. ¿åÊ¿Êý¸þ¤ÎÃƤβîÅÙ¤ò»ØÄꤷ¤Þ¤¹¡£
  106. type¤¬"relative"¤Î¾ì¹ç¡¢¸½ºß¤ÎÃƤήÅ٤ȤÎÁêÂÐÃͤǤ¹¡£ type¤¬"sequence"¤Î¾ì¹ç¡¢
  107. ²Ã®ÅÙ¤òϢ³Ū¤ËÊѲ½¤µ¤»¤Þ¤¹¡£
  108. <vertical> - Specifies the acceleration in a vertical line ¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬
  109. ¡¦ Attribute - type = (absolute | relative | sequence)
  110. ¡¦ Contents - NUMBER
  111. ¿âľÊý¸þ¤ÎÃƤβîÅÙ¤ò»ØÄꤷ¤Þ¤¹¡£
  112. type¤¬"sequence"¤Î¾ì¹ç¡¢¸½ºß¤ÎÃƤήÅ٤ȤÎÁêÂÐÃͤǤ¹¡£ type¤¬"sequence"¤Î¾ì¹ç¡¢
  113. ²Ã®ÅÙ¤òϢ³Ū¤ËÊѲ½¤µ¤»¤Þ¤¹¡£
  114. <term> - Specifies a term ¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬
  115. ¡¦ Contents - NUMBER
  116. ´ü´Ö¤ò»ØÄꤷ¤Þ¤¹¡£
  117. <times> - Specifies the number of times ¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬
  118. ¡¦ Contents - NUMBER
  119. ·«¤êÊÖ¤·²ó¿ô¤ò»ØÄꤷ¤Þ¤¹¡£
  120. <bulletRef> - Refers to the bullet ¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬
  121. ¡¦ Attribute - label = STRING
  122. ¡¦ Contents - param*
  123. ¥é¥Ù¥ëÉÕ¤±¤µ¤ì¤¿bulletÍ×ÁǤò»²¾È¤·¤Þ¤¹¡£¤³¤ÎÍ×ÁǤÏƱ̾¤Î¥é¥Ù¥ë¤Ç¥é¥Ù¥ëÉÕ¤±¤µ¤ì
  124. ¤¿bulletÍ×ÁǤÈƱ¤¸¤Ë°·¤ï¤ì¤Þ¤¹¡£
  125. »²¾È¤µ¤ì¤¿bulletÍ×ÁÇÆâ¤ÎÊÑ¿ô¡Ê$1, $2, $3, ...¡Ë¤Ï¡¢ <param>Í×ÁǤ˻ØÄꤵ¤ì¤¿¿ôÃÍ
  126. ¤ËÃÖ¤­´¹¤¨¤é¤ì¤Þ¤¹¡£¡ÊºÇ½é¤Ë½Ð¸½¤·¤¿paramÍ×ÁǤ¬$1¤Ë¡¢¼¡¤Ë½Ð¸½¤·¤¿paramÍ×ÁǤ¬$2
  127. ¤Ë¡¢...¡Ë
  128. <actionRef> - Refers to the action ¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬
  129. ¡¦ Attribute - label = STRING
  130. ¡¦ Contents - param*
  131. ¥é¥Ù¥ëÉÕ¤±¤µ¤ì¤¿actionÍ×ÁǤò»²¾È¤·¤Þ¤¹¡£¤³¤ÎÍ×ÁǤÏƱ̾¤Î¥é¥Ù¥ë¤Ç¥é¥Ù¥ëÉÕ¤±¤µ¤ì
  132. ¤¿actionÍ×ÁǤÈƱ¤¸¤Ë°·¤ï¤ì¤Þ¤¹¡£
  133. »²¾È¤µ¤ì¤¿actionÍ×ÁÇÆâ¤ÎÊÑ¿ô¤Ï¡¢<param>Í×ÁǤ˻ØÄꤵ¤ì¤¿¿ôÃͤËÃÖ¤­´¹¤¨¤é¤ì¤Þ¤¹¡£
  134. <fireRef> - Refers to the fire action ¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬
  135. ¡¦ Attribute - label = STRING
  136. ¡¦ Contents - param*
  137. ¥é¥Ù¥ëÉÕ¤±¤µ¤ì¤¿fireÍ×ÁǤò»²¾È¤·¤Þ¤¹¡£¤³¤ÎÍ×ÁǤÏƱ̾¤Î¥é¥Ù¥ë¤Ç¥é¥Ù¥ëÉÕ¤±¤µ¤ì¤¿
  138. fireÍ×ÁǤÈƱ¤¸¤Ë°·¤ï¤ì¤Þ¤¹¡£
  139. »²¾È¤µ¤ì¤¿fireÍ×ÁÇÆâ¤ÎÊÑ¿ô¤Ï¡¢<param>Í×ÁǤ˻ØÄꤵ¤ì¤¿¿ôÃͤËÃÖ¤­´¹¤¨¤é¤ì¤Þ¤¹¡£
  140. <param> - Specifies the parameter ¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬
  141. ¡¦ Contents - NUMBER
  142. ¥Ñ¥é¥á¥¿¤ò»ØÄꤷ¤Þ¤¹¡£
  143. STRING - any string ¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬
  144. ¥é¥Ù¥ëÍÑʸ»úÎó¤Ç¤¹¡£
  145. NUMBER - expression ¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬
  146. ¡¦ Exapmles
  147. 35
  148. 360/16
  149. 0.7 + 0.9*$rand
  150. 180-$rank*20
  151. (2+$1)*0.3
  152. ¿ôÃͤò»ØÄꤹ¤ë¤¿¤á¤Î¼°¤Ç¤¹¡£
  153. »Í§±é»»¤È¾ê;»»¡¢³ç¸Ì¡¢ÊÑ¿ô¡Ê¥Ñ¥é¥á¥¿ÍѤË$1, $2, $3...¡¢Íð¿ô¡Ê0¤«¤é1¤Þ¤Ç¤ÎÃÍ¡Ë
  154. ÍѤË$rand¡¢Æñ°×ÅÙ¡Ê0¤«¤é1¤Þ¤Ç¤ÎÃÍ¡ËÍѤË$rank¡Ë¤¬»È¤¨¤Þ¤¹¡£