摘要: 1.使用jdk1.7。2.重启android studio。 阅读全文
posted @ 2015-11-05 10:01 小翔momo 阅读(3990) 评论(0) 推荐(0) 编辑
摘要: —设置叠加模式,高亮setBlend=function(sp,ctype) local blendType={ {GL_ONE,GL_ONE_MINUS_SRC_ALPHA}, {GL_SRC_ALPHA,GL_ONE} } local cc=ccBle... 阅读全文
posted @ 2015-08-01 06:47 小翔momo 阅读(659) 评论(0) 推荐(0) 编辑
摘要: //克隆精灵CCSprit *clone(CCNode *sp){CCSprite *csp=NULL;CCSize size=sp->getContentSize();float tempX=sp->getPositionX();float tempY=sp->getPositionY();sp-... 阅读全文
posted @ 2015-08-01 06:46 小翔momo 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 定位函数:command + r删除当前行:ctrl + shift + backspace 阅读全文
posted @ 2015-08-01 06:39 小翔momo 阅读(118) 评论(0) 推荐(0) 编辑
摘要: mac系统:⌘(command)、⌥(option)、⇧(shift)、⇪(caps lock)、⌃(control)、↩(return)、⌅(enter) shift+option+k ¸ˆ shifu+option+i文件剪切:command+c->到目标内容后->option+command... 阅读全文
posted @ 2015-08-01 06:37 小翔momo 阅读(150) 评论(0) 推荐(0) 编辑
摘要: ⌘(command)、⌥(option)、⇧(shift)、⇪(caps lock)、⌃(control)、↩(return)、⌅(enter)切换.h和.cpp:ˆ+⌘+↑/↓切换2个xcode:⌘+~搜索下一处:⌘+g搜索上一处:⌘+⇧+g显示类函数列表:⌃+6转倒定义:ˆ+⌘+j /⌘+鼠标左... 阅读全文
posted @ 2015-01-25 20:08 小翔momo 阅读(196) 评论(0) 推荐(0) 编辑
摘要: HelloWorldScene.h 1 #ifndef __HELLOWORLD_SCENE_H__ 2 #define __HELLOWORLD_SCENE_H__ 3 4 #include "cocos2d.h" 5 #include "GameOverScene.h" 6 7 USING_... 阅读全文
posted @ 2015-01-25 18:51 小翔momo 阅读(590) 评论(0) 推荐(0) 编辑
摘要: mac:1.用终端进入/Users/lixiang/Desktop/cocos2d-x-3.2/tools/cocos2d-console/bin目录执行./cocos.py。(出现Permission denied,是权限问题,可以先使用chmod命令获得权限,输入chmod u+x ./coco... 阅读全文
posted @ 2015-01-25 18:01 小翔momo 阅读(190) 评论(0) 推荐(0) 编辑
摘要: test1.lua 1 --这里声明了类名,并且给出了属性的初始值 2 Class = {x=0,y=0} 3 --这句话是冲定义元表的索引,就是说有了这句,这才是一个类 4 Class.__index=Class 5 --构造体 6 function Class:new(x,y) 7 lo... 阅读全文
posted @ 2015-01-24 17:36 小翔momo 阅读(423) 评论(0) 推荐(0) 编辑