mirror of https://github.com/axmolengine/axmol.git
Animate3D transition
This commit is contained in:
parent
2a6ce26335
commit
4685a8654e
|
@ -648,11 +648,12 @@ void Animate3DTest::update(float dt)
|
|||
|
||||
void Animate3DTest::addSprite3D()
|
||||
{
|
||||
std::string fileName = "Sprite3DTest/haigui.c3b";
|
||||
std::string fileName = "Sprite3DTest/tortoise.c3b";
|
||||
auto sprite = Sprite3D::create(fileName);
|
||||
sprite->setScale(0.1f);
|
||||
auto s = Director::getInstance()->getWinSize();
|
||||
sprite->setPosition(Vec2(s.width * 4.f / 5.f, s.height / 2.f));
|
||||
addChild(sprite);
|
||||
_sprite = sprite;
|
||||
auto animation = Animation3D::getOrCreate(fileName);
|
||||
if (animation)
|
||||
|
|
|
@ -34,6 +34,7 @@ Controller g_aTestNames[] = {
|
|||
// TESTS MUST BE ORDERED ALPHABETICALLY
|
||||
// violators will be prosecuted
|
||||
//
|
||||
{ "3D: Sprite3D", [](){ return new Sprite3DTestScene(); }},
|
||||
{ "ActionManager", [](){return new ActionManagerTestScene(); } },
|
||||
{ "Actions - Basic", [](){ return new ActionsTestScene(); } },
|
||||
{ "Actions - Ease", [](){return new ActionsEaseTestScene();} },
|
||||
|
@ -83,7 +84,6 @@ Controller g_aTestNames[] = {
|
|||
{ "Node: Scene", [](){return new SceneTestScene();} },
|
||||
{ "Node: Spine", []() { return new SpineTestScene(); } },
|
||||
{ "Node: Sprite", [](){return new SpriteTestScene(); } },
|
||||
{ "Node: Sprite3D", [](){ return new Sprite3DTestScene(); }},
|
||||
{ "Node: TileMap", [](){return new TileMapTestScene(); } },
|
||||
{ "Node: Text Input", [](){return new TextInputTestScene(); } },
|
||||
{ "Node: UI", [](){ return new UITestScene(); }},
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue