12 2020 档案

摘要:cc.Class({ extends: cc.Component, properties: { //speed accl:0, player:{ default:null, type:cc.Node }//}, }, // LIFE-CYCLE CALLBACKS: SetInputControl: 阅读全文
posted @ 2020-12-12 00:54 icon_sunny 阅读(146) 评论(0) 推荐(0) 编辑
摘要:Js代码 cc.loader.loadRes 首先需要使用这个函数,加载图片文件,这里需要注意,图片必须是相对于 resources文件夹的 Js代码 //这里加载assets/resource/123.png文件 cc.loader.loadRes('123', cc.SpriteFrame,fu 阅读全文
posted @ 2020-12-12 00:00 icon_sunny 阅读(1257) 评论(0) 推荐(0) 编辑
摘要:CocosCreator-Widget Widget(对齐挂件) Top:对齐上边界 Bottom:对齐下边界 Left:对齐左边界 Right:对齐右边界 HorizontalCenter:水平方向居中 VerticalCenter:垂直方向居中 Target:对齐目标,默认父节点,可以指定父节点 阅读全文
posted @ 2020-12-11 23:32 icon_sunny 阅读(579) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示