摘要: #coffeeScript风格的代码```coffeeScriptcc.Class { extends: cc.Component properties: { # foo: # default: null # The default value will be used only when the component attaching ... 阅读全文
posted @ 2017-03-31 17:03 kuku小夭 阅读(261) 评论(0) 推荐(0) 编辑
摘要: cocos2dx lua判断点是否在凸多边形内的方法 每两个边,加一个辅助边围成一个三角形,如果在某个三角形内存在,则必定在这个多边形内 local PengZhuangLayer = class("PengZhuangLayer",cc.Layer) PengZhuangLayer.vecPoin 阅读全文
posted @ 2017-03-26 02:28 kuku小夭 阅读(785) 评论(0) 推荐(0) 编辑
摘要: ccui.Button的创建方法 ccui.Button:create("cocosui/animationbuttonnormal.png", "cocosui/animationbuttonpressed.png") ccui.Button:create("crystal.png", "", " 阅读全文
posted @ 2017-03-24 16:41 kuku小夭 阅读(5473) 评论(0) 推荐(0) 编辑