• Stars
    star
    102
  • Rank 335,584 (Top 7 %)
  • Language
    JavaScript
  • Created about 12 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

JavaScript BulletML library.

bulletml.js

Join the chat at https://gitter.im/daishihmr/bulletml.js

JavaScript BulletML library.

Download

https://github.com/daishihmr/bulletml.js/releases/

CDN site

bulletml.min.js

https://cdn.rawgit.com/daishihmr/bulletml.js/master/build/bulletml.min.js

bulletml.enchant.js

https://cdn.rawgit.com/daishihmr/bulletml.js/master/build/plugins/bulletml.enchant.js

tmlib.bulletml.js

https://cdn.rawgit.com/daishihmr/bulletml.js/master/build/plugins/tmlib.bulletml.js

DEMO

enchant.js使用

tmlib.js使用

独自実装

This library is used by ...

FEATURES

Runner

// setup
var bml = bulletml.buildXML("<bulletml>...</bulletml>");
var runner = bml.createRunner({
  target: playerShip, // enemy's attack target (has 'x' and 'y' property)
  createNewBullet: function(bulletRunner) { // function to be called when new bullet has been fired
    var bullet = new Bullet();
    bullet.update = function() {
      bulletRunner.update();
    };
    scene.addChild(bullet);
  }
});
runner.x = enemy.x;
runner.y = enemy.y;

enemy.update = function() {
  // every frame
  runner.x = this.x;
  runner.y = this.y;
  runner.update();
};

DSL

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE bulletml SYSTEM "http://www.asahi-net.or.jp/~cs8k-cyu/bulletml/bulletml.dtd">
<bulletml xmlns="http://www.asahi-net.or.jp/~cs8k-cyu/bulletml">
    <action label="top">
        <repeat>
            <times>10</times>
            <action>
                <fire>
                    <direction type="absolute">60</direction>
                    <bullet />
                </fire>
                <wait>5</wait>
            </action>
        </repeat>
    </action>
</bulletml>
var spec = new bulletml.Root({
    top: action([
        repeat(10, [
            fire(direction(60, "absolute"), bullet),
            wait(5),
        ]),
    ]),
});

More Repositories

1

glshooter2

HTML5 Danmaku STG.
JavaScript
27
star
2

glshooter

JavaScript 2D DANMAKU shooter using WebGL.
JavaScript
21
star
3

phigl.js

phina.jsでWebGLを使うための俺専用スーパー最強ライブラリ
JavaScript
11
star
4

bulletml.js2

JavaScript BulletML library.
JavaScript
10
star
5

phina-shooter

Phina Shooter. JavaScript bullethell shooter for web browser.
JavaScript
6
star
6

bulletml.js-tutorial

JavaScript
3
star
7

phina.three.js

JavaScript
3
star
8

tmshooter-cbl

JavaScript
3
star
9

precure.js

All about Japanese battle heroine "Pretty Cure (Precure)"
JavaScript
3
star
10

jsstg-cannon

JavaScriptシューティングゲーム祭り2014投稿作品
JavaScript
3
star
11

atlas.phina.js

JavaScript
2
star
12

rouge

2D Danmaku Shmup game.
JavaScript
2
star
13

dms

JavaScript
2
star
14

blog20170530

JavaScript
2
star
15

passion

phina.jsとWebGLで高速大量描画を実現したエンジンを利用した弾幕STG開発キット(俺専用)
JavaScript
2
star
16

glshooter3

JavaScript
2
star
17

phinajsadvcal20161218

2
star
18

jsstg2015-twinkle

for jsstg2015 - http://jp.wgld.org/jsstg/2015f/
JavaScript
2
star
19

aqua

JavaScript
2
star
20

voxel-assets

2
star
21

slide20150530

JavaScript
1
star
22

socket-san

ドッグファイト!ソケットさん
JavaScript
1
star
23

hamcorossam_materialize

JavaScript
1
star
24

anybullet

JavaScript
1
star
25

phina-di.js

DIでみんなを守る
1
star
26

tmlib.js-samples

ヒマな時に作って追加してくよー
1
star
27

daishihmr.github.io

HTML
1
star
28

tm.input.gamepad

JavaScript
1
star
29

dev7-enchant-doga

DOGA Data Parser and JSON Converter for Java.
Java
1
star
30

horizontal-scroll-action

JavaScript
1
star
31

tm.game.googleplay

JavaScript
1
star
32

glslib.js

JavaScript
1
star
33

tm.input.MultiTouch

1
star
34

phinajsadvcal20171217

HTML
1
star
35

tm-particle

Particle Genrlator for tmlib.js
JavaScript
1
star
36

gl-bullethell

WebGLで弾幕シューティングを作るためのphina.jsプラグイン
JavaScript
1
star
37

tmphoton

JavaScript
1
star
38

tm.hybrid

Three.jsをtmlib.jsから利用する
JavaScript
1
star
39

phina.live2d.js

JavaScript
1
star
40

dlib.js

JavaScript
1
star