上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 43 下一页
摘要: 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)
摘要: 首先,mapeditor中的gid,和程序中的gid相差1.其次,这个gid是一个整数,%d可以输出,%f输出不聊。 阅读全文
posted @ 2015-02-03 15:35 yufenghou 阅读(155) 评论(0) 推荐(0)
摘要: #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)
摘要: CC_BREAK_IF(m_pGameMap==NULL); 阅读全文
posted @ 2015-01-28 18:08 yufenghou 阅读(158) 评论(0) 推荐(0)
摘要: #define SCREEN_WIDTH CCDirector::sharedDirector()->getWinSize().width //屏幕宽(指定分辨率)#define SCREEN_HEIGHT CCDirector::sharedDirector()-... 阅读全文
posted @ 2015-01-28 17:53 yufenghou 阅读(216) 评论(0) 推荐(0)
摘要: 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)
摘要: 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)
摘要: "关闭兼容模式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)
摘要: 如果在layer当中使用了物理的元素,那么加载到scene的时候,就会没有,解决方法就是,改为集成node。 阅读全文
posted @ 2015-01-02 17:38 yufenghou 阅读(203) 评论(0) 推荐(0)
摘要: 先说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 下一页