1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254
|
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...01ޤǤ͡
Ѥ$rand١01ޤǤ͡Ѥ$rankˤȤޤ
|