摘要: 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 阅读(147) 评论(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 阅读(1269) 评论(0) 推荐(0)