A high-performance JavaScript bullet-screen (danmaku) engine. 1000+ at the same time
This is a high-performance JavaScript bullet-screen (danmaku) engine and it is very simple and easy to use. This bullet-screen engine can render bullet-screen by using CSS3, Canvas 2D, WebGL and SVG. This bullet-screen engine can render top, bottom and backward bullet-screen. Using Canvas 2D can render at lest 1000 bullet-screens at the same time. (some times can render 1600 ullet-screens at the same time)
You can click here to download latest release version. You also can install NPM package using following commands.
> npm install openbse
After the installation, include the script in the html page.
Minimum Version:
<script src="openBSE.all.min.js"></script>
Debug Version:
<script src="openBSE.all.js"></script>
For display bullet-screen, you need add a fixed-size div tag in the html page and the id is BulletScreensDiv
. Then add the following JavaScript code.
var bulletScreenEngine = new openBSE.BulletScreenEngine(document.getElementById('BulletScreensDiv'));
var _startTime = 5000;
for (var i = 0; i < 10000; i++) {
bulletScreenEngine.addBulletScreen({
text: "This is a long long long long long long long long long test(^_^)",
startTime: _startTime
});
_startTime += Math.round(Math.random() * 300);
}
bulletScreenEngine.play();
Open the web page with a browser to display the bullet-screen.
See wiki for detailed instructions.
If you have any issue please write issues.
E-mail:scottxu@scottxublog.com
This project is an open source project and it is licensed under the MIT License. If you want to read this license, please click here.
Sign in to post a comment
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
Activity
Community
Health
Trend
Influence
:Code submit frequency
:React/respond to issue & PR etc.
:Well-balanced team members and collaboration
:Recent popularity of project
:Star counts, download counts etc.
Repository Comments ( 9 )