iPhone有游戏引擎吗? [英] Are there any game engines for iPhone?

查看:148
本文介绍了iPhone有游戏引擎吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

iPhone上有游戏引擎吗?

Are there any game engines for iPhone?

推荐答案

两个最受欢迎的可能是 Oolong SIO2 但是这是值得的,我建议你做这样的事情:

The two most popular are probably Oolong and SIO2 but for what it's worth, I recommend you do something like this:


  • 声音:从样本中使用CAF文件和苹果公司自己的SoundEngine OpenAL包装类(请注意,您需要插入的示例代码中存在内存泄漏)

  • 模型:使用这个wavefront OBJ加载器用于直接从Blender或Max导出的obj和mtl文件

  • 纹理:使用Apple自己的Texture2D类来自样本(bmp会起作用,但我推荐png因为平台优化)

  • '引擎'实际上只是粘合这些东西的类一起。 这家伙的doxygen 似乎是一种教科书。 这个人也有一个不错的例子UML(恕我直言)。

  • Sound: use CAF files and apple's own SoundEngine OpenAL wrapper class from the samples (beware, there are memory leaks in the example code you'll need to plug)
  • Models: use this wavefront OBJ loader for obj and mtl files exported directly from Blender or Max
  • Textures: use Apple's own Texture2D class from the samples (bmp will work, but I recommend png because of the platform optimizations)
  • 'Engine' is really just the classes that glue this stuff together. This guy's doxygen seems kind of "textbook". This guy also has a decent example UML too (IMHO).

我个人认为这一切都是如此主观,你真的应该自己写这些东西,因为它应该按照你需要的方式构建,不仅仅是一些试图成为每个人的东西。

Personally I think it's all so subjective, you really should write this stuff yourself because it should be architected for the way you need it, not just something written that tries to be everything to everybody.

仅供参考,我们的团队决定用Objective-C ++完成所有工作,其中游戏的核心是用C ++编写的并且在它上面有一层薄薄的Objective-C,它将代码粘贴到UI小部件等等。

FYI, our team decided to do everything in Objective-C++, where the core of the game is written in C++ and there is a thin layer of Objective-C on top of it that glues the code to the UI widgets and such things.

这篇关于iPhone有游戏引擎吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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