BulletML Reference ver. 0.21                (c) (ABA."Saba")    ABA Games

BulletML̊ȈՃt@XłB

<bulletml> - Defines the BulletML's body 

 E Attribute - type = (none | vertical | horizontal)
   
 E Contents - (bullet | action | fire)*
   
BulletML{̂`܂B

typéA̒ecXN[V[eBOpAXN[V[eB
OpK肵܂B

<bullet> - Defines attributes of a bullet  

 E Attribute - label = STRING
   
 E Contents - direction?, speed?, (action | actionRef)*
   
 E Exapmle
   
    <bullet label="downAccel">
    <direction>270</direction>
    <speed>2</speed>
    <action>
    <accel>
     <vertical>3</vertical>
     <term>120</term>
    </accel>
    </action>
    </bullet>

e̕AxуANV`܂B

xŃx邱Ƃł܂Bxtꂽbulletvf́A
bulletRefvfɂĎQƂ܂B

<action> - Defines the action of bullet  

 E Attribute - label = STRING
   
 E Contents - (repeat | fire | fireRef | changeSpeed | changeDirection | accel
    | wait | vanish | action | actionRef)*
   
 E 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>

ẽANV`܂Bxtꂽactionvf́AactionRefvfɂ
QƂ܂B

<fire> - Fires a bullet  

 E Attribute - label = STRING
   
 E Contents - direction?, speed?, (bullet | bulletRef)
   
 E Exapmle
   
    <fire>
     <direction type="absolute">270</direction>
     <speed>2</speed>
     <bulletRef label="rocket"/>
    </fire>

e<direction>xɑx<speed>Ō܂Bxtꂽfirevf́A
fireRefvfɂĎQƂ܂B

<changeDirection> - Changes the direction of bullet  

 E Contents - direction, term
   
e̕<direction>x<term>t[ċȂ܂B 1t[1/60błB

<changeSpeed> - Changes the speed of bullet  

 E Contents - speed, term
   
ȇx<speed><term>t[ĕς܂B

<accel> - Accelerates a bullet 

 E Contents - horizontal?, vertical?, term
   
e𐅕<horizontal>A<vertical>A <term>t[ĉ
B

<wait> - Waits 

 E Contents - NUMBER
   
NUMBERt[҂܂B

<vanish> - Vanishes a bullet 

e܂B

<repeat> - Repeats an action 

 E Contents - times, (action | actionRef)
   
 E Exapmle
   
    <repeat>
    <times>100</times>
    <action>
     <fire>
      <direction type="absolute">220+$rand*100</direction>
      <bulletRef label="backBurst"/>
     </fire>
     <wait>6</wait>
    </action>
    </repeat>

ANV<times>JԂ܂B

<direction> - Specifies a direction  

 E Attribute - type = (aim | absolute | relative | sequence)
   
 E Contents - NUMBER
   
xPʂŎw肵܂B

type"aim"̏ꍇA@_0̑ΒlɂȂ܂B

type"absolute"̏ꍇANUMBER͐Βli0ŎvjłB

type"relative"̏ꍇANUMBER͂̒e̕0̑ΒlɂȂ܂B

type"sequence"̏ꍇAO̒e0̑ΒlɂȂ܂B

<speed> - Specifies a speed  

 E Attribute - type = (absolute | relative | sequence)
   
 E Contents - NUMBER
   
xw肵܂B

type"relative"̏ꍇA changeSpeedvfł݂͌̒ȇxƂ̑ΒlA
O̗vfł͂̒ȇxƂ̑ΒlłB

type"sequence"̏ꍇA changeSpeedvfł͒ȇxAIɕωA
ȊO̗vfł͒O̒ȇxƂ̑ΒlłB

<horizontal> - Specifies the acceleration in a horizontal line 

 E Attribute - type = (absolute | relative | sequence)
   
 E Contents - NUMBER
   
̒ẻxw肵܂B

type"relative"̏ꍇA݂̒ȇxƂ̑ΒlłB type"sequence"̏ꍇA
xAIɕω܂B

<vertical> - Specifies the acceleration in a vertical line 

 E Attribute - type = (absolute | relative | sequence)
   
 E Contents - NUMBER
   
̒ẻxw肵܂B

type"sequence"̏ꍇA݂̒ȇxƂ̑ΒlłB type"sequence"̏ꍇA
xAIɕω܂B

<term> - Specifies a term  

 E Contents - NUMBER
   
Ԃw肵܂B

<times> - Specifies the number of times  

 E Contents - NUMBER
   
JԂ񐔂w肵܂B

<bulletRef> - Refers to the bullet 

 E Attribute - label = STRING
   
 E Contents - param*
   
xtꂽbulletvfQƂ܂B̗vf͓̃xŃxt
bulletvfƓɈ܂B

QƂꂽbulletvf̕ϐi$1, $2, $3, ...j́A <param>vfɎw肳ꂽl
ɒu܂Biŏɏoparamvf$1ɁAɏoparamvf$2
ɁA...j

<actionRef> - Refers to the action 

 E Attribute - label = STRING
   
 E Contents - param*
   
xtꂽactionvfQƂ܂B̗vf͓̃xŃxt
actionvfƓɈ܂B

QƂꂽactionvf̕ϐ́A<param>vfɎw肳ꂽlɒu܂B

<fireRef> - Refers to the fire action  

 E Attribute - label = STRING
   
 E Contents - param*
   
xtꂽfirevfQƂ܂B̗vf͓̃xŃxtꂽ
firevfƓɈ܂B

QƂꂽfirevf̕ϐ́A<param>vfɎw肳ꂽlɒu܂B

<param> - Specifies the parameter  

 E Contents - NUMBER
   
p^w肵܂B

STRING - any string  

xpłB

NUMBER - expression  

 E Exapmles
   
    35
    360/16
    0.7 + 0.9*$rand
    180-$rank*20
    (2+$1)*0.3

lw肷邽߂̎łB

lZƏ]ZAʁAϐip^p$1, $2, $3...Ai01܂ł̒lj
p$randAՓxi01܂ł̒ljp$rankjg܂B

