Aligning CCMenu to a grid

前端 未结 5 1448
星月不相逢
星月不相逢 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:37

    To the best of my knowledge Anish's answer is your best course of action. It would be the same as aligning to a grid and it is what I personally use. Just set your menu position and alignment padding and you should have what you are looking for.

提交回复
热议问题