cocos js 模拟闪电特效

参考:https://krazydad.com/bestiary/bestiary_lightning.htmlhtml 直接上核心代码:dom var drawLighting = function (x1, y1, x2, y2, displace) { if (displace < curDetail) { drawNode.drawSegment(cc.p(x1,
相关文章
相关标签/搜索