mirror of https://github.com/axmolengine/axmol.git
rename to nodeanimation
This commit is contained in:
parent
90e010aec8
commit
8d24ea7efe
|
@ -72,7 +72,7 @@ static std::function<Layer*()> createFunctions[] =
|
|||
CL(Sprite3DEmptyTest),
|
||||
CL(UseCaseSprite3D),
|
||||
CL(Sprite3DForceDepthTest),
|
||||
CL(NodeFrameAnimationTest)
|
||||
CL(NodeAnimationTest)
|
||||
};
|
||||
|
||||
#define MAX_LAYER (sizeof(createFunctions) / sizeof(createFunctions[0]))
|
||||
|
@ -2340,7 +2340,7 @@ void UseCaseSprite3D::update(float delta)
|
|||
|
||||
/////////////////////////////////////////////
|
||||
// Node Frame Animation
|
||||
NodeFrameAnimationTest::NodeFrameAnimationTest()
|
||||
NodeAnimationTest::NodeAnimationTest()
|
||||
:_vectorIndex(0)
|
||||
{
|
||||
auto s = Director::getInstance()->getWinSize();
|
||||
|
@ -2380,16 +2380,16 @@ NodeFrameAnimationTest::NodeFrameAnimationTest()
|
|||
|
||||
addNewSpriteWithCoords(Vec2(s.width / 2.f, s.height / 2.f));
|
||||
}
|
||||
std::string NodeFrameAnimationTest::title() const
|
||||
std::string NodeAnimationTest::title() const
|
||||
{
|
||||
return "Node Frame Animation Test";
|
||||
return "Node Animation Test";
|
||||
}
|
||||
std::string NodeFrameAnimationTest::subtitle() const
|
||||
std::string NodeAnimationTest::subtitle() const
|
||||
{
|
||||
return "Jumping animation";
|
||||
}
|
||||
|
||||
void NodeFrameAnimationTest::addNewSpriteWithCoords(Vec2 p)
|
||||
void NodeAnimationTest::addNewSpriteWithCoords(Vec2 p)
|
||||
{
|
||||
auto s = Director::getInstance()->getWinSize();
|
||||
|
||||
|
|
|
@ -491,12 +491,12 @@ protected:
|
|||
std::string _useCaseTitles[(int)USECASE::MAX_CASE_NUM];
|
||||
};
|
||||
|
||||
// node fame animation test
|
||||
class NodeFrameAnimationTest : public Sprite3DTestDemo
|
||||
// node animation test, cocos2d-x supports both skeletal animation and node animation
|
||||
class NodeAnimationTest : public Sprite3DTestDemo
|
||||
{
|
||||
public:
|
||||
CREATE_FUNC(NodeFrameAnimationTest);
|
||||
NodeFrameAnimationTest();
|
||||
CREATE_FUNC(NodeAnimationTest);
|
||||
NodeAnimationTest();
|
||||
virtual std::string title() const override;
|
||||
virtual std::string subtitle() const override;
|
||||
|
||||
|
|
Loading…
Reference in New Issue