mirror of
https://github.com/wu736139669/OzgGameRPG.git
synced 2026-08-05 06:24:38 +00:00
30 lines
567 B
C++
Executable File
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__) */
|