会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
yufenghou
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
20
21
22
23
24
25
26
27
28
···
43
下一页
2015年2月23日
bug 复制代码没有审查,没有完全就该变量名
摘要: bool HeroSprite::isLeftWall(Point nextPos){ auto mapLayer=_map->getLayer("Map"); CCASSERT(mapLayer!=nullptr,"map is error ---HeroSprite::isGroun...
阅读全文
posted @ 2015-02-23 20:17 yufenghou
阅读(187)
评论(0)
推荐(0)
2015年2月3日
cocos3 深入理解tiledmap
摘要: 首先,mapeditor中的gid,和程序中的gid相差1.其次,这个gid是一个整数,%d可以输出,%f输出不聊。
阅读全文
posted @ 2015-02-03 15:35 yufenghou
阅读(155)
评论(0)
推荐(0)
2015年1月29日
cocos3 深入理解单例模式
摘要: #include #include #include #include using namespace std;class Singleton {public: int i; static Singleton* GetInstance(); virtual void Show()...
阅读全文
posted @ 2015-01-29 11:36 yufenghou
阅读(153)
评论(0)
推荐(0)
2015年1月28日
cocos3 CC_BREAK_IF(m_pGameMap==NULL);
摘要: CC_BREAK_IF(m_pGameMap==NULL);
阅读全文
posted @ 2015-01-28 18:08 yufenghou
阅读(158)
评论(0)
推荐(0)
cocos2d3 宏定义屏幕宽高,这样就不用重复获取了
摘要: #define SCREEN_WIDTH CCDirector::sharedDirector()->getWinSize().width //屏幕宽(指定分辨率)#define SCREEN_HEIGHT CCDirector::sharedDirector()-...
阅读全文
posted @ 2015-01-28 17:53 yufenghou
阅读(216)
评论(0)
推荐(0)
2015年1月4日
css 做一个常见的按钮
摘要: a:link,a:visited { display:block; background-color:#98bf21; width:120px; text-align:center; padding:4px; ...
阅读全文
posted @ 2015-01-04 17:08 yufenghou
阅读(233)
评论(0)
推荐(0)
sublime 安装
摘要: ctrl+~调出命令行,输入import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(i...
阅读全文
posted @ 2015-01-04 12:16 yufenghou
阅读(155)
评论(0)
推荐(0)
gvim 配置文件
摘要: "关闭兼容模式set nocompatible"模仿全选,复制,粘贴source $VIMRUNTIME/vimrc_example.vimsource $VIMRUNTIME/mswin.vimbehave mswin"gvim字体设置 set guifont=Monaco:h22"gvim内部编...
阅读全文
posted @ 2015-01-04 11:35 yufenghou
阅读(378)
评论(0)
推荐(0)
2015年1月2日
cocos3 深入理解layer 和物理引擎
摘要: 如果在layer当中使用了物理的元素,那么加载到scene的时候,就会没有,解决方法就是,改为集成node。
阅读全文
posted @ 2015-01-02 17:38 yufenghou
阅读(203)
评论(0)
推荐(0)
2014年12月30日
cocos3 vector
摘要: 先说Vector吧。如果说C++的vector容器怎么用,如果我说太多肯定一下子就暴露了我菜鸟的身份。所以呢,在这里不过多阐述,也请大神绕路。所以,还是回到Vector的使用问题上吧。该怎么用?既然Vector是替代了Array,那就拿Array 和Vector进行对比吧。下面我就以创建 Sprit...
阅读全文
posted @ 2014-12-30 08:01 yufenghou
阅读(197)
评论(0)
推荐(0)
上一页
1
···
20
21
22
23
24
25
26
27
28
···
43
下一页
公告