Skip to content

Heli-Lab/danmakubox.js

 
 

Repository files navigation

Danmakubox.js

A Danmaku Render Library

How to use

Include dist/danmakubox.min.js, add a <canvas id="renderer"> element in document , and do this:

let renderer = new DanmakuBox.DanmakuRenderer("renderer");
renderer.play()
renderer.startAutoRender()
setInterval(()=>{renderer.send(["nya","nyanyanyanyanyanya~~"][parseInt(Math.random()*1.5)])},200)

More

Please see the scource code, doc is under construction.

About

A javascript danmaku renderer for canvas2d

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 92.5%
  • HTML 7.5%