2011-07-08 11:22:35 +08:00
|
|
|
//
|
|
|
|
// Bug-886
|
|
|
|
// http://code.google.com/p/cocos2d-iphone/issues/detail?id=886
|
|
|
|
//
|
|
|
|
|
|
|
|
#include "Bug-886.h"
|
|
|
|
|
|
|
|
bool Bug886Layer::init()
|
|
|
|
{
|
|
|
|
if(BugsTestBaseLayer::init())
|
|
|
|
{
|
2012-04-19 14:35:52 +08:00
|
|
|
// ask director the the window size
|
|
|
|
// CGSize size = [[CCDirector sharedDirector] winSize];
|
|
|
|
|
2012-06-14 15:13:16 +08:00
|
|
|
CCSprite* sprite = CCSprite::create("Images/bugs/bug886.jpg");
|
2012-04-19 14:35:52 +08:00
|
|
|
sprite->setAnchorPoint(CCPointZero);
|
|
|
|
sprite->setPosition(CCPointZero);
|
|
|
|
sprite->setScaleX(0.6f);
|
|
|
|
addChild(sprite);
|
2011-07-08 11:22:35 +08:00
|
|
|
|
2012-06-14 15:13:16 +08:00
|
|
|
CCSprite* sprite2 = CCSprite::create("Images/bugs/bug886.png");
|
2012-04-19 14:35:52 +08:00
|
|
|
sprite2->setAnchorPoint(CCPointZero);
|
|
|
|
sprite2->setScaleX(0.6f);
|
|
|
|
sprite2->setPosition(ccp(sprite->getContentSize().width * 0.6f + 10, 0));
|
|
|
|
addChild(sprite2);
|
2011-07-08 11:22:35 +08:00
|
|
|
|
|
|
|
return true;
|
2012-04-19 14:35:52 +08:00
|
|
|
}
|
2011-07-08 11:22:35 +08:00
|
|
|
|
2012-04-19 14:35:52 +08:00
|
|
|
return false;
|
2011-07-08 11:22:35 +08:00
|
|
|
}
|