コード例 #1
0
void runSpriteTest()
{
    SpriteMainScene::_s_autoTest = false;
    auto scene = new SpritePerformTest1;
    scene->initWithSubTest(1, 50);
    Director::getInstance()->replaceScene(scene);
    scene->release();
}
コード例 #2
0
void runLabelTest()
{
    LabelMainScene::_s_autoTest = false;
    auto scene = new LabelMainScene;
    scene->initWithSubTest(LabelMainScene::AUTO_TEST_NODE_NUM);
    Director::getInstance()->replaceScene(scene);
    scene->release();
}
コード例 #3
0
void runParticleTest()
{
    auto scene = new ParticlePerformTest1;
    scene->initWithSubTest(1, kNodesIncrease);

    Director::getInstance()->replaceScene(scene);
    scene->release();
}
コード例 #4
0
bool SpriteMainScene::init()
{
    if (TestCase::init())
    {
        initWithSubTest(_subtestNumber, _quantityNodes);
        return true;
    }

    return false;
}
コード例 #5
0
bool ParticleMainScene::init()
{
    if (TestCase::init())
    {
        initWithSubTest(subtestNumber, quantityParticles);
        return true;
    }

    return false;
}
コード例 #6
0
void SpriteMainScene::beginAutoTest()
{
    if (0 != SpriteMainScene::_s_nSpriteCurCase)
    {
        SpriteMainScene::_s_nSpriteCurCase = 0;
    }
    
    auto scene = new SpritePerformTest1;
    scene->initWithSubTest(1, 500);
    Director::getInstance()->replaceScene(scene);
    scene->release();
}