Skip to content

Instantly share code, notes, and snippets.

@takashi1975
Last active August 29, 2015 14:15
Show Gist options
  • Select an option

  • Save takashi1975/37f5467e0d9507299b36 to your computer and use it in GitHub Desktop.

Select an option

Save takashi1975/37f5467e0d9507299b36 to your computer and use it in GitHub Desktop.
Cocos2d-x 特定のノード全てに処理 (名前がつけてあるといい)
//
{
newTiledMap->enumerateChildren("xxx", [](Node * node) -> bool {
if (auto sprite = dynamic_cast<Sprite *>(node))
{
//...
}
return false;
});
}
@takashi1975

Copy link
Copy Markdown
Author

@takashi1975

Copy link
Copy Markdown
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment