
Cocos2d-x 2.x学习记录
Pancwyz
迷茫学习中...
展开
-
按钮
/* 扣血飘字特效 */ FlowWord* flowWord = FlowWord::create(); this->addChild(flowWord); flowWord->showWord("-15", getSprite()->getPosition());原创 2014-07-31 19:03:36 · 586 阅读 · 0 评论 -
创建精灵、执行动作
创建精灵: //图片创建精灵,植物 CCSprite * plant = CCSprite::create("Peashooter1.tiff"); plant->setPosition(ccp(300, 300)); //帧创建精灵步骤1 CCSpriteFrame * frame = CCSpriteFrame::create("Peashooter1.tiff", CCRe原创 2014-07-31 17:25:08 · 629 阅读 · 0 评论 -
使用tmx地图
制作tmx地图可以使用tiled工具。原创 2014-07-31 17:36:42 · 1157 阅读 · 0 评论