笔记
Old_newbie
这个作者很懒,什么都没留下…
展开
-
2020-03-20
cocos2dx lua自学笔记本地存储和获取配置function main_gpr_api:save_data(game_id,value,save_id) local key = "" if game_id then key = "1000_"..game_id.."_"..save_id else key = "1000_"..save_i...原创 2020-03-20 19:11:03 · 139 阅读 · 0 评论 -
2020-03-23
cocos2dx lua自学笔记本地数据存储549689原创 2020-03-23 15:49:24 · 200 阅读 · 0 评论 -
2020-03-18
cocos2dx lua自学笔记创建动画:按照上个笔记加载plist文件function game_scene:createCard(path)local cache = cc.SpriteFrameCache:getInstance()if(cache:getSpriteFrame(path))return cc.Sprite:createWithSpriteFrameName(pa...原创 2020-03-18 18:47:34 · 143 阅读 · 0 评论 -
2020-03-17
cocos2dx 自学笔记–把game_scene声明成类似全局变量,可全局调用cc.exports.game_scene = class(‘game_scene’,function(){return cc.Scene:create()}function game_scene:ctor(isVideo,param,bNoSit)end新建场景self.m_game_scene = ...原创 2020-03-17 18:49:21 · 157 阅读 · 0 评论