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

时间:2022-11-23 12:17:08

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.

您建议为iPhone构建2D平台游戏的框架是什么?我只需要在屏幕上移动资源并检测碰撞等。

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?

我会想OpenGL。但也许Quartz 2D就足够了?或者还有其他我应该注意的事情吗?每个的优点和缺点是什么?我想OpenGL有一个更长的学习曲线,但这会带来性能的回报,对吧?

13 个解决方案

#1


26  

I am currently using and recommend Cocos2d. (http://cocos2d-iphone.org)

我目前正在使用并推荐Cocos2d。 (http://cocos2d-iphone.org)

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.

cocos2d-iphone的文档非常好,并且一直在变得越来越好。您可以下载一些完整的工作示例游戏,API本身附带了许多您可以使用的示例。

Here is a good set of install directions you can use to get started:

以下是一组可用于开始使用的安装说明:

http://permadi.com/blog/?p=130

http://permadi.com/blog/?p=130

Hope this helps!

希望这可以帮助!

#2


6  

Try cocos2d:

试试cocos2d:

cocos2d is a framework for building 2D games, demos, and other graphical/interactive applications.

cocos2d是用于构建2D游戏,演示和其他图形/交互式应用程序的框架。

#3


5  

Have a look at cocos2d-iphone. I have heard only good things about it.

看看cocos2d-iphone。我只听到过有关它的好消息。

#4


5  

You may want to check out Sparrow at http://www.sparrow-framework.org. It is lightweight and very similar to the Flash API.

您可以在http://www.sparrow-framework.org上查看Sparrow。它很轻巧,与Flash API非常相似。

#5


3  

cocos2d-iphone is pretty good. I have written some extensions to it which you can read about here and get here. Good luck!

cocos2d-iphone相当不错。我已经写了一些扩展,你可以在这里阅读并到达这里。祝你好运!

#6


1  

I thought OpenGL was very easy for 2D. I think it's easier to deal with a well-known API than to try to grok someone's layer on top of it.

我认为OpenGL很容易用于2D。我认为处理一个众所周知的API比尝试在它上面挖出一个人的层更容易。

#7


1  

Unity3D is not so much a framework as an engine, but 2D can be done (well) with it. Zombieville USA is Unity/2D (http://www.zombievilleusa.com/)

Unity3D不是一个框架作为引擎,但2D可以用它完成(好)。 Zombieville USA是Unity / 2D(http://www.zombievilleusa.com/)

http://unity3d.com

http://unity3d.com

#8


1  

It's worth mentioning at this point that Unity3D now supports 2D better than before in workflow and optimizations so it's worth being in the list.

值得一提的是,Unity3D现在在工作流和优化方面比以前更好地支持2D,因此值得列入清单。

http://unity3d.com/

http://unity3d.com/

#9


0  

There are usually two schools of thoughts here when it comes to included iPhone frameworks:

在包含iPhone框架时,通常有两种思路:

  • go with Quartz 2D. If performance is not good enough, try Open GL. (for my 2D game, I'm following this path)
  • 使用Quartz 2D。如果性能不够好,请尝试Open GL。 (对于我的2D游戏,我正在遵循这条道路)
  • go for Open GL directly.
  • 直接去Open GL。

I haven't tried cocos2d, but that sounds like a great alternative to harness Open GL without having to deal with API.

我没有尝试过cocos2d,但这听起来像是一个很好的替代方案,可以在不必处理API的情况下利用Open GL。

#10


0  

Cocos2d is really good.

Cocos2d真的很棒。

#11


0  

Ok, it's true the Cocos-2d is the more powerful, but I have used Sparrow http://gamua.com/sparrow/. It has a smooth learning curve, and you can develop a game within days!. It integrates with other important frameworks, like Box2d (http://www.codeandweb.com/blog/2012/05/07/physicseditor-sparrow-box2d).

好吧,Cocos-2d确实更强大,但我使用了Sparrow http://gamua.com/sparrow/。它有一个平滑的学习曲线,你可以在几天内开发游戏!它与其他重要框架集成,如Box2d(http://www.codeandweb.com/blog/2012/05/07/physicseditor-sparrow-box2d)。

Regards.

问候。

#12


0  

SpriteKit is among the better solutions now that iOS 7 is out. Keep in mind that it is exclusive to iOS 7.

现在,iOS 7已经推出,SpriteKit是更好的解决方案之一。请记住,它是iOS 7独有的。

#13


-5  

I think you might have two different answers depending on if you want to publish your game in the AppStore. If so, you have to use the provided/accepted frameworks or it won't be accepted. If not, then you are (of course) free to use anything.

我想你可能有两个不同的答案取决于你是否想在AppStore中发布你的游戏。如果是这样,您必须使用提供/接受的框架,否则将不被接受。如果没有,那么你(当然)可以*使用任何东西。

#1


26  

I am currently using and recommend Cocos2d. (http://cocos2d-iphone.org)

我目前正在使用并推荐Cocos2d。 (http://cocos2d-iphone.org)

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.

cocos2d-iphone的文档非常好,并且一直在变得越来越好。您可以下载一些完整的工作示例游戏,API本身附带了许多您可以使用的示例。

Here is a good set of install directions you can use to get started:

以下是一组可用于开始使用的安装说明:

http://permadi.com/blog/?p=130

http://permadi.com/blog/?p=130

Hope this helps!

希望这可以帮助!

#2


6  

Try cocos2d:

试试cocos2d:

cocos2d is a framework for building 2D games, demos, and other graphical/interactive applications.

cocos2d是用于构建2D游戏,演示和其他图形/交互式应用程序的框架。

#3


5  

Have a look at cocos2d-iphone. I have heard only good things about it.

看看cocos2d-iphone。我只听到过有关它的好消息。

#4


5  

You may want to check out Sparrow at http://www.sparrow-framework.org. It is lightweight and very similar to the Flash API.

您可以在http://www.sparrow-framework.org上查看Sparrow。它很轻巧,与Flash API非常相似。

#5


3  

cocos2d-iphone is pretty good. I have written some extensions to it which you can read about here and get here. Good luck!

cocos2d-iphone相当不错。我已经写了一些扩展,你可以在这里阅读并到达这里。祝你好运!

#6


1  

I thought OpenGL was very easy for 2D. I think it's easier to deal with a well-known API than to try to grok someone's layer on top of it.

我认为OpenGL很容易用于2D。我认为处理一个众所周知的API比尝试在它上面挖出一个人的层更容易。

#7


1  

Unity3D is not so much a framework as an engine, but 2D can be done (well) with it. Zombieville USA is Unity/2D (http://www.zombievilleusa.com/)

Unity3D不是一个框架作为引擎,但2D可以用它完成(好)。 Zombieville USA是Unity / 2D(http://www.zombievilleusa.com/)

http://unity3d.com

http://unity3d.com

#8


1  

It's worth mentioning at this point that Unity3D now supports 2D better than before in workflow and optimizations so it's worth being in the list.

值得一提的是,Unity3D现在在工作流和优化方面比以前更好地支持2D,因此值得列入清单。

http://unity3d.com/

http://unity3d.com/

#9


0  

There are usually two schools of thoughts here when it comes to included iPhone frameworks:

在包含iPhone框架时,通常有两种思路:

  • go with Quartz 2D. If performance is not good enough, try Open GL. (for my 2D game, I'm following this path)
  • 使用Quartz 2D。如果性能不够好,请尝试Open GL。 (对于我的2D游戏,我正在遵循这条道路)
  • go for Open GL directly.
  • 直接去Open GL。

I haven't tried cocos2d, but that sounds like a great alternative to harness Open GL without having to deal with API.

我没有尝试过cocos2d,但这听起来像是一个很好的替代方案,可以在不必处理API的情况下利用Open GL。

#10


0  

Cocos2d is really good.

Cocos2d真的很棒。

#11


0  

Ok, it's true the Cocos-2d is the more powerful, but I have used Sparrow http://gamua.com/sparrow/. It has a smooth learning curve, and you can develop a game within days!. It integrates with other important frameworks, like Box2d (http://www.codeandweb.com/blog/2012/05/07/physicseditor-sparrow-box2d).

好吧,Cocos-2d确实更强大,但我使用了Sparrow http://gamua.com/sparrow/。它有一个平滑的学习曲线,你可以在几天内开发游戏!它与其他重要框架集成,如Box2d(http://www.codeandweb.com/blog/2012/05/07/physicseditor-sparrow-box2d)。

Regards.

问候。

#12


0  

SpriteKit is among the better solutions now that iOS 7 is out. Keep in mind that it is exclusive to iOS 7.

现在,iOS 7已经推出,SpriteKit是更好的解决方案之一。请记住,它是iOS 7独有的。

#13


-5  

I think you might have two different answers depending on if you want to publish your game in the AppStore. If so, you have to use the provided/accepted frameworks or it won't be accepted. If not, then you are (of course) free to use anything.

我想你可能有两个不同的答案取决于你是否想在AppStore中发布你的游戏。如果是这样,您必须使用提供/接受的框架,否则将不被接受。如果没有,那么你(当然)可以*使用任何东西。