Aligning CCMenu to a grid

前端 未结 5 1450
星月不相逢
星月不相逢 2021-01-14 07:38

Does anybody know the best practice approach to getting an array of CCMenuItems to align to a grid? This is a cocos2d question

For example :

int lev         


        
5条回答
  •  离开以前
    2021-01-14 08:19

    May be you can try this....

    [menuArray alignItemsVerticallyWithPadding:20.0];
    

    or

    [first_menu alignItemsHorizontallyWithPadding:20.0];
    

提交回复
热议问题