![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
cocos
某公司前端攻城狮️
只为自己开发完记笔记用,写错勿怪
展开
-
微信分享 传递数据 接收收据
**// 分享带对战ID// 点击分享**clickShareRoomId() { var that = this; cc.loader.loadRes("resource/imgs/muilt", function (err, spriteFrame) { let url = spriteFrame.url; wx.shareAppMessage({ imageUrl: url,//转发标题 // titl原创 2020-09-01 09:40:14 · 176 阅读 · 0 评论 -
cocos骨骼动画 代码控制
const { ccclass, property } = cc._decorator;@ccclassexport default class DragonBoneManager extends cc.Component {@property([dragonBones.DragonBonesAsset])skeArr: dragonBones.DragonBonesAsset[] = [];@property([dragonBones.DragonBonesAtlasAsset])texArr原创 2020-08-27 20:57:47 · 336 阅读 · 0 评论 -
cocos移动
//移动ts脚本export interface ITouchUser {rightEvent(dir: string): void;leftEvent(dir: string): void;}export class TouchController {target: cc.Node;isAllowTouch: boolean = true; //允许移动startPoint: any;endPoint: any;movePoint: any;minLength: number;原创 2020-08-27 09:49:24 · 148 阅读 · 0 评论 -
cocos 微信转发图
原创 2020-08-13 17:33:14 · 83 阅读 · 0 评论