03 2017 档案
摘要:#coffeeScript风格的代码```coffeeScriptcc.Class { extends: cc.Component properties: { # foo: # default: null # The default value will be used only when the component attaching ...
阅读全文
摘要:cocos2dx lua判断点是否在凸多边形内的方法 每两个边,加一个辅助边围成一个三角形,如果在某个三角形内存在,则必定在这个多边形内 local PengZhuangLayer = class("PengZhuangLayer",cc.Layer) PengZhuangLayer.vecPoin
阅读全文
摘要:ccui.Button的创建方法 ccui.Button:create("cocosui/animationbuttonnormal.png", "cocosui/animationbuttonpressed.png") ccui.Button:create("crystal.png", "", "
阅读全文

浙公网安备 33010602011771号