3 ms·
I personally would recommend developing games in C++ for both platforms. You're not going to be heavily using any of the APIs that necessitate using Obj-C or Ja
by TJSomething 10y ago
I personally would recommend developing games in C++ for both platforms. You're not going to be heavily using any of the APIs that necessitate using Obj-C or Java. It's just OpenGL ES and other low level APIs. Additionally, it's easy to port between iOS and Android and you can use a much wider variety of libraries.
- vvanders 10y agoYup, you can do things that'll start getting close to the metal with Java(arrays to keep caches warm, avoid allocations). However at the end of the day it's a huge pain and you lose the portability you get with C++.
- bluedino 10y ago>> you lose the portability you get with C++ Wouldn't Java be more portable than C++?
- schwarrrtz 10y agoNot on mobile. You can embed compiled C++ code in both iOS and Android apps, but there's no easy way to run Java on iOS.
- jack463782 10y agoIs that the reason unity 3d is popular. Never thought c++ would be more portable than Java. But it makes sense now.
- murkle 10y agoMaybe not "easy" but certainly quite possible (x2): https://github.com/google/j2objc https://github.com/google/j2objc https://software.intel.com/en-us/multi-os-engine https://software.intel.com/en-us/multi-os-engine
- vvanders 10y agoNot if you don't have a JVM on your target platform.
- BoorishBears 10y agoI always recommend Unity3D because the devs that would be comfortable starting in C++ with "raw" OpenGL already know their options and generally aren't looking for recommendations. Usually when someone asks me "What should I use to make a cross-platform game", what they're really asking is "What tool can I use that won't get in the way of me making my game, that additionally allows me to target multiple platforms"
- fit2rule 10y ago> Cross platform mobile games when you have C++ skills: Use C++ with OpenGL and share most of the code. I would recommend MOAI - gives you the best bang for the buck, as long as you're willing to learn Lua to do all the app-layer stuff, and leave the MOAI engine to manage the performance-critical resources... http://getmoai.com/ http://getmoai.com/