1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | #include "HelloWorldScene.h" Scene* HelloWorld::createScene() { auto scene = Scene::create(); auto layer = HelloWorld::create(); scene->addChild(layer); return scene; } bool HelloWorld::init() { if (!Layer::init()) { return false; } auto spr = Sprite::create("Icon-57.png") ; spr->setPosition(Point(100, 100)); this->addChild(spr); auto action = Hide::create(); spr->runAction(action); return true; } | cs |
show 와 반대되는 개념