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乯偑巊偊傑偡丅

