cocos luacompile cocos luacompile Overview Usage Available Arguments Samples Overview Compile the .lua files to .luac. Usage cocos luacompile [arguments] Available Arguments arg available value sample description necessary -h, --help - - Show the hel…
图片加密的方法有很多种,在cocos2dx中,经常会使用TexturePacker来加密图片,方法如下: 打开TexturePacker,点击Add Sprite添加图片,在output栏下的Texture format选择pvr.gz格式, 点击Content protection加密按钮,创建加密密钥,点击create new key来创建一个新的密钥,clear/disable删除密钥,save as global key可以将当前密钥保存成全局密钥,以后可以使用,use global k…
两种方式: -- 触摸开始 local function onTouchBegan(touch, event) return true end -- 触摸结束 local function onTouchEnded(touch, event) -- 获取点击位置 local location = touch:getLocation() print(location.x .. " "..location.y) end local listener = cc.EventListenerTo…