CCMenu* menu = CCMenu::create(); menu->setAnchorPoint(ccp(0.5, 0.5));
CCMenu* menu = CCMenu::create(); menu->setAnchorPoint(ccp(0, 0));
CCMenu* menu = CCMenu::create(); menu->setAnchorPoint(ccp(1, 1));This code creates a new menu and sets its anchor point to the top right corner of the menu. These examples demonstrate how the setAnchorPoint function can be used to position a menu on the screen. The package library used is Cocos2d-x.