- 博客(3)
- 收藏
- 关注
原创 cocoscreator笔记(三)摇杆
cc.Class({ extends: cc.Component, properties: { Max_r:100, }, // use this for initialization onLoad: function () { this.speed = 300 //移动速度 this.xiao = cc....
2019-08-01 10:12:02
136
原创 cocoscreator笔记(二)DataManager
定义如下:class DataMgr { constructor() { this.instance = null; this.getInstance = function () { if(this.instance == null) { this.instan...
2019-07-30 10:29:57
451
原创 cocoscreator笔记(一)Global
定义:var Global = function(){ /**界面相关变量 */ this.curPlaneID = 1; //当前关卡 this.curStageID = 2;} module.exports = new Global();使用如下:var Global = require("Global")cc.Class({ e...
2019-07-30 09:33:08
761
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人