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﹌互銀尹引允﹝

