README.bulletml (6712B)
- BulletML Reference ver. 0.21 (c) Ĺ·òÂÀ(ABA."Saba") ABA Games
- BulletML¤Î´Ê°×¥ê¥Õ¥¡¥ì¥ó¥¹¤Ç¤¹¡£
- <bulletml> - Defines the BulletML's body ¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬
- ¡¦ Attribute - type = (none | vertical | horizontal)
- ¡¦ Contents - (bullet | action | fire)*
- BulletMLËÜÂΤòÄêµÁ¤·¤Þ¤¹¡£
- type°À¤Ï¡¢¤³¤ÎÃÆË뤬½Ä¥¹¥¯¥í¡¼¥ë¥·¥å¡¼¥Æ¥£¥ó¥°ÍѤ«¡¢²£¥¹¥¯¥í¡¼¥ë¥·¥å¡¼¥Æ¥£¥ó
- ¥°ÍѤ«¤òµ¬Äꤷ¤Þ¤¹¡£
- <bullet> - Defines attributes of a bullet ¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬
- ¡¦ Attribute - label = STRING
- ¡¦ Contents - direction?, speed?, (action | actionRef)*
- ¡¦ Exapmle
- <bullet label="downAccel">
- <direction>270</direction>
- <speed>2</speed>
- <action>
- <accel>
- <vertical>3</vertical>
- <term>120</term>
- </accel>
- </action>
- </bullet>
- ÃƤÎÊý¸þ¡¢Â®ÅÙ¤ª¤è¤Ó¥¢¥¯¥·¥ç¥ó¤òÄêµÁ¤·¤Þ¤¹¡£
- ¥é¥Ù¥ë°À¤Ç¥é¥Ù¥ë̾¤ò¤Ä¤±¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£¥é¥Ù¥ëÉÕ¤±¤µ¤ì¤¿bulletÍ×ÁǤϡ¢
- bulletRefÍ×ÁǤˤè¤Ã¤Æ»²¾È¤µ¤ì¤Þ¤¹¡£
- <action> - Defines the action of bullet ¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬
- ¡¦ Attribute - label = STRING
- ¡¦ Contents - (repeat | fire | fireRef | changeSpeed | changeDirection | accel
- | wait | vanish | action | actionRef)*
- ¡¦ Exapmle
- <action>
- <changeSpeed>
- <speed>0</speed>
- <term>60</term>
- </changeSpeed>
- <wait>60</wait>
- <fire><bullet/></fire>
- <fire>
- <direction type="absolute">330+$rand*25</direction>
- <bulletRef label="downAccel"/>
- </fire>
- <vanish/>
- </action>
- ÃƤΥ¢¥¯¥·¥ç¥ó¤òÄêµÁ¤·¤Þ¤¹¡£¥é¥Ù¥ëÉÕ¤±¤µ¤ì¤¿actionÍ×ÁǤϡ¢actionRefÍ×ÁǤˤè¤Ã¤Æ
- »²¾È¤µ¤ì¤Þ¤¹¡£
- <fire> - Fires a bullet ¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬
- ¡¦ Attribute - label = STRING
- ¡¦ Contents - direction?, speed?, (bullet | bulletRef)
- ¡¦ Exapmle
- <fire>
- <direction type="absolute">270</direction>
- <speed>2</speed>
- <bulletRef label="rocket"/>
- </fire>
- ÃƤò<direction>ÅÙÊý¸þ¤Ë®ÅÙ<speed>¤Ç·â¤Á¤Þ¤¹¡£¥é¥Ù¥ëÉÕ¤±¤µ¤ì¤¿fireÍ×ÁǤϡ¢
- fireRefÍ×ÁǤˤè¤Ã¤Æ»²¾È¤µ¤ì¤Þ¤¹¡£
- <changeDirection> - Changes the direction of bullet ¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬
- ¡¦ Contents - direction, term
- ÃƤÎÊý¸þ¤ò<direction>ÅÙ¤Ë<term>¥Õ¥ì¡¼¥à¤«¤±¤Æ¶Ê¤²¤Þ¤¹¡£ 1¥Õ¥ì¡¼¥à¤Ï1/60ÉäǤ¹¡£
- <changeSpeed> - Changes the speed of bullet ¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬
- ¡¦ Contents - speed, term
- ÃƤήÅÙ¤ò<speed>¤Ë<term>¥Õ¥ì¡¼¥à¤«¤±¤ÆÊѤ¨¤Þ¤¹¡£
- <accel> - Accelerates a bullet ¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬
- ¡¦ Contents - horizontal?, vertical?, term
- ÃƤò¿åÊ¿Êý¸þ¤Ë<horizontal>¡¢¿âľÊý¸þ¤Ë<vertical>¡¢ <term>¥Õ¥ì¡¼¥à¤«¤±¤Æ²Ã®¤·¤Þ
- ¤¹¡£
- <wait> - Waits ¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬
- ¡¦ Contents - NUMBER
- NUMBER¥Õ¥ì¡¼¥àÂÔ¤Á¤Þ¤¹¡£
- <vanish> - Vanishes a bullet ¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬
- ÃƤò¾Ã¤·¤Þ¤¹¡£
- <repeat> - Repeats an action ¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬
- ¡¦ Contents - times, (action | actionRef)
- ¡¦ Exapmle
- <repeat>
- <times>100</times>
- <action>
- <fire>
- <direction type="absolute">220+$rand*100</direction>
- <bulletRef label="backBurst"/>
- </fire>
- <wait>6</wait>
- </action>
- </repeat>
- ¥¢¥¯¥·¥ç¥ó¤ò<times>²ó·«¤êÊÖ¤·¤Þ¤¹¡£
- <direction> - Specifies a direction ¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬
- ¡¦ Attribute - type = (aim | absolute | relative | sequence)
- ¡¦ Contents - NUMBER
- Êý¸þ¤òÅÙñ°Ì¤Ç»ØÄꤷ¤Þ¤¹¡£
- type¤¬"aim"¤Î¾ì¹ç¡¢¼«µ¡¤òÁÀ¤¦Êý¸þ¤¬0¤ÎÁêÂÐÃͤˤʤê¤Þ¤¹¡£
- type¤¬"absolute"¤Î¾ì¹ç¡¢NUMBER¤ÏÀäÂÐÃ͡ʾåÊý¸þ¤¬0¤Ç»þ·×²ó¤ê¡Ë¤Ç¤¹¡£
- type¤¬"relative"¤Î¾ì¹ç¡¢NUMBER¤Ï¤³¤ÎÃƤÎÊý¸þ¤¬0¤ÎÁêÂÐÃͤˤʤê¤Þ¤¹¡£
- type¤¬"sequence"¤Î¾ì¹ç¡¢Ä¾Á°¤ÎÃƤò·â¤Ã¤¿Êý¸þ¤¬0¤ÎÁêÂÐÃͤˤʤê¤Þ¤¹¡£
- <speed> - Specifies a speed ¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬
- ¡¦ Attribute - type = (absolute | relative | sequence)
- ¡¦ Contents - NUMBER
- ®ÅÙ¤ò»ØÄꤷ¤Þ¤¹¡£
- type¤¬"relative"¤Î¾ì¹ç¡¢ changeSpeedÍ×ÁÇÆâ¤Ç¤Ï¸½ºß¤ÎÃƤήÅ٤ȤÎÁêÂÐÃÍ¡¢¤½¤ì°Ê
- ³°¤ÎÍ×ÁÇÆâ¤Ç¤Ï¤³¤ÎÃƤήÅ٤ȤÎÁêÂÐÃͤǤ¹¡£
- type¤¬"sequence"¤Î¾ì¹ç¡¢ changeSpeedÍ×ÁÇÆâ¤Ç¤ÏÃƤήÅÙ¤òϢ³Ū¤ËÊѲ½¤µ¤»¡¢¤½¤ì
- °Ê³°¤ÎÍ×ÁÇÆâ¤Ç¤ÏľÁ°¤ÎÃƤήÅ٤ȤÎÁêÂÐÃͤǤ¹¡£
- <horizontal> - Specifies the acceleration in a horizontal line ¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬
- ¡¦ Attribute - type = (absolute | relative | sequence)
- ¡¦ Contents - NUMBER
- ¿åÊ¿Êý¸þ¤ÎÃƤβîÅÙ¤ò»ØÄꤷ¤Þ¤¹¡£
- type¤¬"relative"¤Î¾ì¹ç¡¢¸½ºß¤ÎÃƤήÅ٤ȤÎÁêÂÐÃͤǤ¹¡£ type¤¬"sequence"¤Î¾ì¹ç¡¢
- ²Ã®ÅÙ¤òϢ³Ū¤ËÊѲ½¤µ¤»¤Þ¤¹¡£
- <vertical> - Specifies the acceleration in a vertical line ¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬
- ¡¦ Attribute - type = (absolute | relative | sequence)
- ¡¦ Contents - NUMBER
- ¿âľÊý¸þ¤ÎÃƤβîÅÙ¤ò»ØÄꤷ¤Þ¤¹¡£
- type¤¬"sequence"¤Î¾ì¹ç¡¢¸½ºß¤ÎÃƤήÅ٤ȤÎÁêÂÐÃͤǤ¹¡£ type¤¬"sequence"¤Î¾ì¹ç¡¢
- ²Ã®ÅÙ¤òϢ³Ū¤ËÊѲ½¤µ¤»¤Þ¤¹¡£
- <term> - Specifies a term ¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬
- ¡¦ Contents - NUMBER
- ´ü´Ö¤ò»ØÄꤷ¤Þ¤¹¡£
- <times> - Specifies the number of times ¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬
- ¡¦ Contents - NUMBER
- ·«¤êÊÖ¤·²ó¿ô¤ò»ØÄꤷ¤Þ¤¹¡£
- <bulletRef> - Refers to the bullet ¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬
- ¡¦ Attribute - label = STRING
- ¡¦ Contents - param*
- ¥é¥Ù¥ëÉÕ¤±¤µ¤ì¤¿bulletÍ×ÁǤò»²¾È¤·¤Þ¤¹¡£¤³¤ÎÍ×ÁǤÏƱ̾¤Î¥é¥Ù¥ë¤Ç¥é¥Ù¥ëÉÕ¤±¤µ¤ì
- ¤¿bulletÍ×ÁǤÈƱ¤¸¤Ë°·¤ï¤ì¤Þ¤¹¡£
- »²¾È¤µ¤ì¤¿bulletÍ×ÁÇÆâ¤ÎÊÑ¿ô¡Ê$1, $2, $3, ...¡Ë¤Ï¡¢ <param>Í×ÁǤ˻ØÄꤵ¤ì¤¿¿ôÃÍ
- ¤ËÃÖ¤´¹¤¨¤é¤ì¤Þ¤¹¡£¡ÊºÇ½é¤Ë½Ð¸½¤·¤¿paramÍ×ÁǤ¬$1¤Ë¡¢¼¡¤Ë½Ð¸½¤·¤¿paramÍ×ÁǤ¬$2
- ¤Ë¡¢...¡Ë
- <actionRef> - Refers to the action ¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬
- ¡¦ Attribute - label = STRING
- ¡¦ Contents - param*
- ¥é¥Ù¥ëÉÕ¤±¤µ¤ì¤¿actionÍ×ÁǤò»²¾È¤·¤Þ¤¹¡£¤³¤ÎÍ×ÁǤÏƱ̾¤Î¥é¥Ù¥ë¤Ç¥é¥Ù¥ëÉÕ¤±¤µ¤ì
- ¤¿actionÍ×ÁǤÈƱ¤¸¤Ë°·¤ï¤ì¤Þ¤¹¡£
- »²¾È¤µ¤ì¤¿actionÍ×ÁÇÆâ¤ÎÊÑ¿ô¤Ï¡¢<param>Í×ÁǤ˻ØÄꤵ¤ì¤¿¿ôÃͤËÃÖ¤´¹¤¨¤é¤ì¤Þ¤¹¡£
- <fireRef> - Refers to the fire action ¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬
- ¡¦ Attribute - label = STRING
- ¡¦ Contents - param*
- ¥é¥Ù¥ëÉÕ¤±¤µ¤ì¤¿fireÍ×ÁǤò»²¾È¤·¤Þ¤¹¡£¤³¤ÎÍ×ÁǤÏƱ̾¤Î¥é¥Ù¥ë¤Ç¥é¥Ù¥ëÉÕ¤±¤µ¤ì¤¿
- fireÍ×ÁǤÈƱ¤¸¤Ë°·¤ï¤ì¤Þ¤¹¡£
- »²¾È¤µ¤ì¤¿fireÍ×ÁÇÆâ¤ÎÊÑ¿ô¤Ï¡¢<param>Í×ÁǤ˻ØÄꤵ¤ì¤¿¿ôÃͤËÃÖ¤´¹¤¨¤é¤ì¤Þ¤¹¡£
- <param> - Specifies the parameter ¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬
- ¡¦ Contents - NUMBER
- ¥Ñ¥é¥á¥¿¤ò»ØÄꤷ¤Þ¤¹¡£
- STRING - any string ¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬
- ¥é¥Ù¥ëÍÑʸ»úÎó¤Ç¤¹¡£
- NUMBER - expression ¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬¨¬
- ¡¦ Exapmles
- 35
- 360/16
- 0.7 + 0.9*$rand
- 180-$rank*20
- (2+$1)*0.3
- ¿ôÃͤò»ØÄꤹ¤ë¤¿¤á¤Î¼°¤Ç¤¹¡£
- »Í§±é»»¤È¾ê;»»¡¢³ç¸Ì¡¢ÊÑ¿ô¡Ê¥Ñ¥é¥á¥¿ÍѤË$1, $2, $3...¡¢Íð¿ô¡Ê0¤«¤é1¤Þ¤Ç¤ÎÃÍ¡Ë
- ÍѤË$rand¡¢Æñ°×ÅÙ¡Ê0¤«¤é1¤Þ¤Ç¤ÎÃÍ¡ËÍѤË$rank¡Ë¤¬»È¤¨¤Þ¤¹¡£