爱意满满的作品展示区。
lakechan96

OhMyDanmaku 桌面实时弹幕系统 源代码开放

  •  
  •   lakechan96 · Jul 25, 2015 · 5934 views
    This topic created in 4125 days ago, the information mentioned may be changed or developed.
    基于.NET WPF
    UDP Socket通信
    更多细节都在简单又明了的readme里啦,欢迎查阅w

    地址:http://github.com/LakeChan/OhMyDanmaku

    欢迎issue和pullRequest

    并没有什么技术含量的作品OAO
    16 replies  •  2015-09-20 16:24:24 +08:00
    RIcter
    RIcter
    Jul 26, 2015
    1
    oh,膜拜石头大神_(:3」∠)_
    66666
    pandada8
    pandada8
    Jul 26, 2015
    2
    oh,膜拜石头大神和Ricter菊苣_(:3」∠)_
    66666
    yaqink
    yaqink
    Jul 26, 2015 via iPad
    3
    oh,膜拜 石头大神 和 Ricter 菊苣 和 pandada _(:3」∠)_
    66666
    msg7086
    msg7086
    Jul 26, 2015
    4
    oh,膜拜楼上各路大神菊苣_(:з」∠)_
    prprp
    kawaiiushio
    kawaiiushio
    Jul 26, 2015 via iPhone
    5
    oh,膜拜石头大神和Ricter菊苣_(:3」∠)_
    66666
    KexyBiscuit
    KexyBiscuit
    Jul 26, 2015 via Android
    6
    oh,膜拜石头大神、Ricter 菊苣、pandada 大触、yaqink 和 msg7086 _(:3」∠)_

    prprpr
    pimin
    pimin
    Jul 26, 2015
    7
    我就想知道这个东西单纯幻想出来的,还是真的放在上面地方用过
    Epsil0n9
    Epsil0n9
    Jul 26, 2015
    8
    oh,膜拜石头大神、Ricter 菊苣、pandada 大触、yaqink 、 msg7086 和 KexyBiscuit 师傅 _(:3」∠)_


    prprp
    zsx
    zsx
    Jul 26, 2015
    9
    orz一下楼上诸位(虽然都不认识)_(:з」∠)_

    https://github.com/zsxsoft/danmu-client
    https://github.com/zsxsoft/danmu-server

    然后默默拿出了自己基于Nodejs + Nwjs的弹幕客户端 + 服务端实现_(:з」∠)_
    molinxx
    molinxx
    Jul 26, 2015 via iPhone
    10
    oh,膜拜上路各种被prpr的各种大神菊苣大触师傅!

    prprprpr
    lakechan96
    lakechan96
    OP
    Jul 26, 2015
    11
    @zsx 感觉自己的这个效率还是不够好,请教一下您这个大概的弹幕渲染思路和资源管理方面大致是怎么样的?
    zsx
    zsx
    Jul 27, 2015
    12
    @lakechan96
    ```javascript
    DD.CommentFrame.prototype.render = function() {
    this.ctx.clearRect(0, 0, this.width, this.height); //清空结果画布
    var bufCanvasCtx = this.bufCanvas.getContext("2d");
    bufCanvasCtx.clearRect(0, 0, this.width, this.height); //清空buffer画布
    //渲染各层精灵到buffer画布上
    for (var i = 0; i < this.layers.length; i++) {
    for (var j = 0; j < this.layers[i].length; j++) {
    this.layers[i][j].draw(bufCanvasCtx);
    }
    }
    //往主图层上绘制buffer图层
    this.ctx.drawImage(this.bufCanvas, 0, 0);
    };
    ```
    ```javascript
    (function animate() {
    that.updateSprite(); //更新Sprite
    that.clearSprite(); //清除无效Sprite
    that.render();
    that.fps = that.countFps(); // 计算FPS
    that.renderTimer = window.requestAnimationFrame(animate, that);
    //console.log(that.renderTimer);
    })();
    ```
    zsx
    zsx
    Jul 27, 2015
    13
    @lakechan96 不过这块弹幕部分不是我写的_(:з」∠)_ 源自另外一个开源项目,对其进行了改造而已……
    lakechan96
    lakechan96
    OP
    Jul 27, 2015
    14
    感谢w
    grzhan
    grzhan
    Aug 12, 2015
    15
    已star √
    mikangchan
    mikangchan
    Sep 20, 2015
    16
    orz 膜拜楼上菊苣
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2503 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 62ms · UTC 04:31 · PVG 12:31 · LAX 20:31 · JFK 23:31
    ♥ Do have faith in what you're doing.