In cocos2d x for windows ccmenu is almost same as that in normal cocos2d.

Here is a sample code. We can add two items in the menu:menuItem1 and menuItem2.

In the above code, in1 and in3 are normal sprites and in2 and in4 are selected sprite.Next parameter this is the target. and buttonAction and the informationAction are touch functions.

Now we create the ccmenu menu1 with the above menuItems.

 

 

 

Filed under: Cocos2d xObjective CWindows Phone 7

Like this post? Subscribe to my RSS feed and get loads more!