creator 物理画线
生活随笔
收集整理的這篇文章主要介紹了
creator 物理画线
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
界面如圖 drawLine是畫線的節(jié)點
//畫線節(jié)點
private _drawLine: cc.Node = null;
//
private _point = [];
//用來確認是否有開始的節(jié)點(畫線要有頭才能畫出尾)
private _lineNumber: number = 0;
//繪制的線段寬度
private _lineWidth: number = 12;
//
private _lastPoint = null;
總結
以上是生活随笔為你收集整理的creator 物理画线的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 使用麦咖啡打造安全系统
- 下一篇: html5 canvas带音效的新年烟花