摘要: g_rGemertricRecognizer=new GeometricRecognizer; g_rGemertricRecognizer->loadTemplates();void HelloWorld::ccTouchMoved(cocos2d::CCTouch *pTouch, coco... 阅读全文
posted @ 2013-03-17 22:45 纯洁的坏蛋 阅读(188) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/c_qiang0_0/article/details/8006261 阅读全文
posted @ 2013-03-17 20:02 纯洁的坏蛋 阅读(82) 评论(0) 推荐(0) 编辑
摘要: cocos2d::CCPoint HelloWorld::covertPointToTiledCoord(cocos2d::CCPoint p){ int x = p.x / mMap->getTileSize().width; int y = ((mMap->getMapSize().height... 阅读全文
posted @ 2013-03-17 15:16 纯洁的坏蛋 阅读(257) 评论(0) 推荐(0) 编辑
摘要: void HelloWorld::setCenterOfScreen(CCPoint p){ CCSize s = CCDirector::sharedDirector()->getWinSize(); int x = MAX(p.x, s.width / 2); int y = MAX(p.y, ... 阅读全文
posted @ 2013-03-17 14:28 纯洁的坏蛋 阅读(204) 评论(0) 推荐(0) 编辑