SpriteTest

This commit is contained in:
minggo 2012-03-23 10:23:02 +08:00
parent a8eaf85cfb
commit ad8d7cdeff
3 changed files with 102 additions and 1 deletions

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>chinese1</key>
<string>美好的一天</string>
<key>japanese</key>
<string>良い一日を</string>
<key>spanish</key>
<string>Buen día</string>
</plist>

View File

@ -1 +1 @@
6b30e04685cc62b5daa0628f9bb038bc42bae923
20e32b9a1ad61e6bf3e179cc5e1cd7d7bdec57fa

View File

@ -441,6 +441,96 @@ public:
virtual std::string subtitle();
};
class NodeSort : public SpriteTestDemo
{
public:
NodeSort();
virtual std::string title();
virtual std::string subtitle();
void reorderSprite(ccTime dt);
private:
CCNode *m_pNode;
CCSprite *m_pSprite1;
CCSprite *m_pSprite2;
CCSprite *m_pSprite3;
CCSprite *m_pSprite4;
CCSprite *m_pSprite5;
};
class SpriteBatchNodeReorderSameIndex : public SpriteTestDemo
{
public:
SpriteBatchNodeReorderSameIndex();
virtual std::string title();
virtual std::string subtitle();
void reorderSprite(ccTime dt);
private:
CCSpriteBatchNode *m_pBatchNode;
CCSprite *m_pSprite1;
CCSprite *m_pSprite2;
CCSprite *m_pSprite3;
CCSprite *m_pSprite4;
CCSprite *m_pSprite5;
};
class SpriteBatchNodeReorderOneChild : public SpriteTestDemo
{
public:
SpriteBatchNodeReorderOneChild();
void reorderSprite(ccTime dt);
virtual std::string title();
virtual std::string subtitle();
private:
CCSpriteBatchNode *m_pBatchNode;
CCSprite *m_pReorderSprite;
};
class SpriteBatchNodeSkewNegativeScaleChildren : public SpriteTestDemo
{
public:
SpriteBatchNodeSkewNegativeScaleChildren();
~SpriteBatchNodeSkewNegativeScaleChildren();
virtual std::string title();
virtual std::string subtitle();
};
class SpriteSkewNegativeScaleChildren : public SpriteTestDemo
{
public:
SpriteSkewNegativeScaleChildren();
~SpriteSkewNegativeScaleChildren();
virtual std::string title();
virtual std::string subtitle();
};
class SpriteDoubleResolution : public SpriteTestDemo
{
public:
SpriteDoubleResolution();
virtual std::string title();
virtual std::string subtitle();
};
class AnimationCacheFile : public SpriteTestDemo
{
public:
AnimationCacheFile();
virtual std::string title();
virtual std::string subtitle();
};
class SpriteBatchBug1217 : public SpriteTestDemo
{
public:
SpriteBatchBug1217();
virtual std::string title();
virtual std::string subtitle();
};
class SpriteTestScene : public TestScene
{
public: