kingBook

导航

2020年8月4日 #

CocosCreator 全局Touch事件

摘要: ####全局的Touch事件 const{ccclass}=cc._decorator; @ccclass export default class GlobalTouchInput extends cc.Component{ private _eventManager=cc["internal"] 阅读全文

posted @ 2020-08-04 14:33 kingBook 阅读(1532) 评论(0) 推荐(0) 编辑

CocosCreator Texture2d.initWithData方法

摘要: var imgWidth = 200; var imgHeight = 200; var count = imgWidth * imgHeight * 4; var imgData =new Uint8Array(count); for (var j = 0; j < count; j += 4) 阅读全文

posted @ 2020-08-04 11:49 kingBook 阅读(1065) 评论(0) 推荐(0) 编辑