如何在IOS游戏中用c ++中的cocos2dx制作滑动菜单 [英] How to make a sliding menu in cocos2dx in c++ in IOS game

查看:107
本文介绍了如何在IOS游戏中用c ++中的cocos2dx制作滑动菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想制作一个滑动菜单,就像水平菜单一样,在一个屏幕上会有40个精灵分别标记为1级2级,最多40个。

在右下角会有是另一个带箭头的精灵,当我点击它时应该滑到其他屏幕并显示41到80级别。请给我一个如何使用它的基本概念。我将感谢你。

注意:我正在使用Xcode并且只想在c ++中使用cocos2d-x解决方案

I want to make a sliding menu just like the level menu in which on one screen there will be 40 sprites labelled as level 1 level 2 respectively up to 40.
At the bottom right there will be another sprite with a arrow to which when I click it should slide to other screen and show the levels 41 to 80.Please provide me with a basic concept how to use it.I will be thankful to you.
Note: I am using Xcode and only want solution in cocos2d-x in c++

推荐答案

对于一个新手我强烈建议访问并且几乎不能通过网站着名的 Ray Wenderlich 。它有很多优秀且非常棒的教程。像这样的动画:



http://www.raywenderlich.com/2454/uiview-tutorial-for-ios-how-to-use-uiview-animation [ ^ ]



他将成为你的ios大师; - )
For a newbie I strongly recommand visiting and hardly work trough the Website of the famous Ray Wenderlich. It has a lot of outstanding and really great tutorials. Like this for animation:

http://www.raywenderlich.com/2454/uiview-tutorial-for-ios-how-to-use-uiview-animation[^]

He will be your "ios master" ;-)


这篇关于如何在IOS游戏中用c ++中的cocos2dx制作滑动菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆