我在上一篇博客中介绍了Progresstimer的用法,这篇博客决定写一些使用Progress实现一些简单的效果,
然后定义一个Progress类
- #ifndef_Progress_H_
- #define_Progress_H_
- #include"cocos2d.h"
- USING_NS_CC;
- classProgress:publiccclayer
- {
- public:
- staticCCScene*scene();
- boolinit();
- CREATE_FUNC(Progress);
- voidscheduleFunc(floatdt);
- };
- #endif