![]() ![]() ![]() This game is original and has a hard time creating it. ![]() The following game uses the selection interface above. This kind of selection of the most classic game is the Angry Birds, but now you have worked hard to do this kind of selection of the game, it is likely that the sea of stone, we recommend not to do this kind of selection of the game, remember! As a programmer, I personally think it is best not to waste time on the selection of the interface, sliding mode, click mode can be achieved, click more easily, how simple implementation, how to achieve. If you don't need to talk about it, you can see the source code clearly.ġ. In this way, you only need to set the levels menuitem to unavailable. By default, cocos2d supports three image styles: normal, selected, and disabled. You only need to determine the number of levels. Void LevelSelectContent::initAllLevels(int page) If it is used as the default addition method, it is difficult to implement such several rows and columns, therefore, we only need to create an empty Menu and add MenuItem one by one in our way. I can see that the implementation of the cocos2d Menu is a Layer, and many menuitems are added in it. If you have the source code, let's skip it. Source code and cocos2d source code are included in the cocos2d game selection interface.ġ5 entries per page, 45 entries in total, and 5 entries per line. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
May 2023
Categories |