newlist

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2014年11月27日

摘要: class EnemyBase : public Sprite { public: virtual bool init() override; CREATE_FUNC(EnemyBase); Animation* createAnimation(std::s... 阅读全文
posted @ 2014-11-27 21:51 一枚程序 阅读(259) 评论(0) 推荐(0) 编辑

摘要: //让精灵动起来,并改变方向void EnemyBase::changeDirection(float dt) { auto curr = currPoint(); if(curr->getPositionX() > this->getPosition().x ) {... 阅读全文
posted @ 2014-11-27 15:54 一枚程序 阅读(211) 评论(0) 推荐(0) 编辑

摘要: //给精灵创建帧动画Animation* EnemyBase::createAnimation(std::string prefixName, int framesNum, float delay) { // 1 Vector animFrames; // 2 fo... 阅读全文
posted @ 2014-11-27 15:10 一枚程序 阅读(428) 评论(0) 推荐(0) 编辑