cocos creator 取屏幕随机x轴的位置

(Math.random() - 0.5) * 2 * this.node.width/2;
y轴的位置同理
一步一个脚印。

发布了4 篇原创文章 · 获赞 1 · 访问量 367

猜你喜欢

转载自blog.csdn.net/w520cyz/article/details/88561049
今日推荐