mirror of https://github.com/axmolengine/axmol.git
issue #131
This commit is contained in:
parent
8eb885382e
commit
ce0d6f33ce
|
@ -28,9 +28,9 @@ bool THelloWorldApp::initCocos2d()
|
||||||
CGSize size = CCDirector::getSharedDirector()->getWinSize();
|
CGSize size = CCDirector::getSharedDirector()->getWinSize();
|
||||||
|
|
||||||
// create sprite instance
|
// create sprite instance
|
||||||
CCSprite * pSprite = (new CCSprite())->initWithTexture(pTexture);
|
CCSprite * pSprite = new CCSprite();
|
||||||
|
pSprite->initWithTexture(pTexture);
|
||||||
pSprite->setPosition(CGPoint(size.width / 2, size.height / 2));
|
pSprite->setPosition(CGPoint(size.width / 2, size.height / 2));
|
||||||
pSprite->autorelease()->retain();
|
|
||||||
|
|
||||||
// create layer instance
|
// create layer instance
|
||||||
CCLayer * pLayer = new CCLayer();
|
CCLayer * pLayer = new CCLayer();
|
||||||
|
|
Loading…
Reference in New Issue