用于 2D 平台游戏的最佳 iPhone 框架

2023-05-17移动开发问题
4

本文介绍了用于 2D 平台游戏的最佳 iPhone 框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

限时送ChatGPT账号..

您建议使用哪种框架为 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 框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

The End

相关推荐

硬件音量按钮更改应用程序音量
Hardware Volume buttons change in app volume(硬件音量按钮更改应用程序音量)...
2024-08-12 移动开发问题
10

Cocos2d - 如何检查不同层中对象之间的交集
Cocos2d - How to check for Intersection between objects in different layers(Cocos2d - 如何检查不同层中对象之间的交集)...
2024-08-12 移动开发问题
8

突出显示朗读文本(在 iPhone 的故事书类型应用程序中)
Highlight Read-Along Text (in a storybook type app for iPhone)(突出显示朗读文本(在 iPhone 的故事书类型应用程序中))...
2024-08-12 移动开发问题
9

Cocos2D + 仅禁用 Retina iPad 图形
Cocos2D + Disabling only Retina iPad Graphics(Cocos2D + 仅禁用 Retina iPad 图形)...
2024-08-12 移动开发问题
10

如何将 32 位 PNG 转换为 RGB565?
How to convert 32 bit PNG to RGB565?(如何将 32 位 PNG 转换为 RGB565?)...
2024-08-12 移动开发问题
21

正确的 cocos2d 场景重启?
Proper cocos2d scene restart?(正确的 cocos2d 场景重启?)...
2024-08-12 移动开发问题
7