ファイルには、アクション、fire、弾を0個以上記述します。
action { アクション要素... }
action アクション要素
アクション要素は、次のいずれかです。BulletML で省略可能なものは省略できます(例えば accel で horizontal~ を書かないといったように)。changeDirection の direction キーワード、changeSpeed の speed キーワードは省略できます。
changeDirection direction aim等 式 term 式 ; changeSpeed speed absolute等 式 term 式 ; accel horizontal absolute等 式 vertical absolute等 式 term 式 ; wait 式 ; vanish; repeat 式 アクション fire direction aim等 speed absolute等 式 弾
bullet direction aim等 speed absolute等 式 アクション
アクションが無いときは、次のように書けます。
bullet direction aim等 speed absolute等 式 ;
action, fire, bullet の直後に識別子を書くと、ラベルを付けることができます。また、action, fire, bullet の代わりに、以下の形式でラベルを付けられた要素を参照できます。引数がない場合、括弧ごと省略できます。
actionRef 識別子(引数, ...); bulletRef 識別子(引数, ...); fireRef 識別子(引数, ...);