cb213901
xiaoyu
添加一个游戏的源码和编译选项
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
//
// ChangingSprite.h
// SteveMaggieCpp
//
// Created by Katarzyna Kalinowska-Górska on 17.05.2017.
//
//
#ifndef ChangingSprite_h
#define ChangingSprite_h
#include "PlainNode.h"
class ChangingSprite : public PlainNode
{
public:
static ChangingSprite* createWithSpritePaths(std::string firstSpritePath, std::string secondSpritePath);
virtual bool initWithSpritePaths(std::string firstSpritePath, std::string secondSpritePath);
virtual void onEnter() override;
virtual void prepareSize(const rapidjson::Value& jsonValue, float& width, float& height) override;
virtual void switchSprites();
protected:
std::string _firstSpritePath;
std::string _secondSpritePath;
cocos2d::Sprite* _firstSprite;
cocos2d::Sprite* _secondSprite;
};
#endif /* ChangingSprite_h */
|