Created
January 1, 2016 10:03
-
-
Save pineoc/f3ccf5513a25430a8371 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bool HelloWorld::init() | |
{ | |
/*has some code*/ | |
//sprite | |
auto sprite = Sprite::create("CloseNormal.png"); | |
this->addChild(sprite1); | |
//sprite change, setTexture | |
sprite->setTexture(Director::getInstance()->getTextureCache()->addImage("CloseNormal_changed.png")); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment