开发者

Multiple mobile platform game development (Android/iOS)

I'm currently developing a small indie game for the Android framework, however in order to save my some future work - I was wondering, is there a way to develop a game for the Android and iOS at the same time?

I'm aware of HTML 5 solutions, but I'm unsure if you can use them in order to develop games. My requirements: * 2D Graphics with animations * Play sounds (music/sfx) * Touch gestures (cl开发者_如何学编程ick, drag, pinch, etc)

Any suggestions?


Check out Corona SDK. They offer exactly what you are looking for - 2D graphics, animations, physics engine, touch, sounds; and they offer it as a cross-platform solution for both iOS and Android. The engine is OpenGL based, and they use Lua as a language.

The main drawback is that it costs $200 per platform, or $350 if you want support for both. However, you need the subscription only when you actually get to publishing your game; you can use it for free locally to build for your own device.


You may also want to check Gideros Studio, which includes

  • Box2D physics engine
  • OpenAL sound system
  • Plugins (native code support)
  • Instant testing on the phone (no compile needed)
  • Tweening
  • Movieclips
  • Sprites & sprite sheets
  • Analytics
  • Ad support

Using Gideros Studio is free, and you can develop for both Android and iOS at the same time with native (OpenGL rendered) functions.


I suggest writing your main game engine code in C++ because Android supports that with the NDK:

http://developer.android.com/sdk/ndk/overview.html

And iPhone has Objective-C++ which is explained pretty well here:

How well is Objective-C++ supported?

You're fortunate enough that both platforms use OpenGL ES, so not much will be required to port that over.

The only differences at this point will be sound, touching, file management, etc. (anything in the APIs).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜