飞机大战游戏滚动背景(21年4月28日版)
发布时间
阅读量:
阅读量
2021-04-28-飞机大战-001-day5-游戏滚动背景
- 1:游戏滚动背景
-
-
- 1.1 背景类设计
- 1.2 成员函数的实现
-
效果显示
-
1:游戏滚动背景
1.1 背景 类设计
#ifndef __LayerScrollBackground_H__
#define __LayerScrollBackground_H__
#include "Util.h"
class ScrollBackground : public Sprite{
protected:
Sprite* _background;
public:
ScrollBackground() {};
~ScrollBackground() {};
CREATE_FUNC(ScrollBackground);
bool init();
void addBackGround();
CC_SYNTHESIZE(float, _speeds, Speeds); //背景速度
CC_SYNTHESIZE(float, _angle, Angle); //
全部评论 (0)
还没有任何评论哟~
