Files
OzgGameRPG/Classes/OzgCCScrollBgNode.h
T
2014-04-07 17:00:28 +08:00

30 lines
567 B
C++
Executable File

//滚动背景
//目前之支持左右滚动
#ifndef __ozgcc2dxutils__OzgCCScrollBgNode__
#define __ozgcc2dxutils__OzgCCScrollBgNode__
#include "cocos2d.h"
#include <iostream>
USING_NS_CC;
using namespace std;
class OzgCCScrollBgNode : public CCNode
{
private:
CCSprite* m_bgSprite1;
CCSprite* m_bgSprite2;
string m_bg;
public:
virtual ~OzgCCScrollBgNode();
bool init(const char* bg);
static OzgCCScrollBgNode* create(const char* bg);
void update(float delta);
};
#endif /* defined(__ozgcc2dxutils__OzgCCScrollBgNode__) */