Best iPhone framework for 2D platform games(用于 2D 平台游戏的最佳 iPhone 框架)
问题描述
您建议使用哪种框架为 iPhone 构建 2D 平台游戏?我只需要在屏幕上移动资产并检测碰撞等.
Which framework do you suggest for building a 2D platform game for the iPhone? I only need to move assets around the screen and detect collisions etc.
我认为是 OpenGL.但也许 Quartz 2D 就足够了?或者还有什么我应该注意的吗?各自的优点和缺点是什么?我想 OpenGL 的学习曲线更长,但在性能上是有回报的,对吧?
I would think OpenGL. But maybe Quartz 2D is enough? Or is there something else I should be aware of? What are advantages and disadvantages of each? I guess there is a longer learning curve for OpenGL, but that pays off in performance, right?
推荐答案
我目前正在使用并推荐Cocos2d.(http://cocos2d-iphone.org)
I am currently using and recommend Cocos2d. (http://cocos2d-iphone.org)
cocos2d-iphone 的文档非常好,并且一直在变得更好.您可以下载一些完整的工作示例游戏,并且 API 本身附带了很多您可以使用的示例.
The documentation for cocos2d-iphone is pretty good and getting better all the time. There are some full working example games you can download and the API itself comes with quite a number of examples you can use.
下面是一组很好的安装说明,您可以使用它来开始:
Here is a good set of install directions you can use to get started:
http://permadi.com/blog/?p=130
希望这会有所帮助!
这篇关于用于 2D 平台游戏的最佳 iPhone 框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:用于 2D 平台游戏的最佳 iPhone 框架
基础教程推荐
- UIImage 在开始时不适合 UIScrollView 2022-01-01
- 如何比较两个 NSDate:哪个是最近的? 2022-01-01
- 为什么姜饼模拟器方向卡在应用程序中? 2022-01-01
- Play 商店的设备兼容性问题 2022-01-01
- Xcode UIView.init(frame:) 只能在主线程中使用 2022-01-01
- iOS - UINavigationController 添加多个正确的项目? 2022-01-01
- 如何将图像从一项活动发送到另一项活动? 2022-01-01
- SwiftUI-ScrollViewReader的ScrollTo不滚动 2022-01-01
- navigationItem.backBarButtonItem 不工作?为什么上一个菜单仍然显示为按钮? 2022-01-01
- Android Volley - 如何动画图像加载? 2022-01-01
