白鹭引擎(egret)中锚点(anchoroffset)的位置体会
原文链接
首先关于锚点的作用,我们就以一根线段旋转90度为例:
先绘制一根水平的直线,长度为100protected startCreateScene(): void {
this.drawOneLine();
}protected drawOneLine(){
let ns = new egret.Shape(); ns.x = 100;
ns.y
转载
2017-11-29 23:15:42 ·
2084 阅读 ·
0 评论