![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
cocoscreator
那个村的李富贵
这个作者很懒,什么都没留下…
展开
-
部分cocoscreator左右移动代码
cc.Class({extends: cc.Component,properties: { // 主角跳跃高度 jumpHeight: 0, // 主角跳跃持续时间 jumpDuration: 0, // 最大移动速度 maxMoveSpeed: 0, // 加速度 accel: 0, // 跳跃音效资源 jump...原创 2019-04-08 16:13:15 · 3264 阅读 · 2 评论 -
cocoscreator实现拖动节点移动
cc.Class({extends: cc.Component,properties: { },// LIFE-CYCLE CALLBACKS: onLoad () { this.node.on(cc.Node.EventType.TOUCH_START,function(t){ console.log("触摸开始"); },this)...原创 2019-04-09 16:15:03 · 8319 阅读 · 0 评论