I have a good grasp in C++ and C and have also experience developing AAA game using C++. Now, I'm shamelessly thinking to dive into mobile game development either in iOS or Android. Unfortunately, I don't know objective-C and java and neither have courage to learn it. So, As above mentioned reason, Is there any possibility to do mobile development in C++ without using any single statement of JAVA and Objective-C ?
|
Some objective C has to be written for iPhone apps. That being said, you can write a pretty thin layer of obj-c and then do all you game code in C or C++. On android look up the NDK. I don't have any experience with it, but it promises to be a native sdk so you should be able to write most things in C or C++. That being said, you're artificially limiting yourself with the language barrier. On iOS, if you want to do anything with the OS layer (like GameCenter, their social platform), or use any kind of middleware, you'd probably be faced with an objective C API. I can kind of understand the sentiment. C++ in particular is a huge language. But obj-c isn't a big. It's a bolt on to C (so the fundamentals should be familiar) with a few extra things added on top. It isn't nearly as complex or deep as C++. |
|||||||||||||||||
|
|
I've been writing a game for quite a while in c++ for Android. I have to touch the java code once every few weeks, but for the most part I modified one of the sample apps that comes with the NDK and have written c++ otherwise. I've had to do a bit of JNI work as well, which is never fun. However, I have many years of java experience, so having to write java or JNI doesn't particularly slow me down. My game runs just as well on my linux box as it does on my test devices. The linux version is pure C++ and the trouble I went through to make this work pays for itself every time I make an iterative change to my game. My project has 836 lines of java code, 331 lines of hideous jni C code and about 40k lines of C++ code. |
|||||
|
|
There is also Marmalade which allows you to use c++ to create mobile applications for a broad range of devices such as iPhone, Android, Win Mobile, Bada, and some more. |
|||
|
|
|
I'm using cocos2d-x for a while, it's a game engine based on c++. (it actually a c++ port of cocos2d-iphone). using this engine you can easily run and test your codes on windows and then compile the same code for iphone/android export. |
|||
|
If you really want just C++, Marmalade might be good for youBut for full capabilities you have to use at least some objective-C (or java, but i'm talking about "full capabilities"). But with a thin layer of objective-C you could do so much, so I reccomend you look in to iOS development with Xcode. If you have a mac look at Xcode, if not, try corona with lua instead. There are many ways to max your C++ code to be run on the iPhone. A free program on the mac app store could help increase C++ use in Objective-C based products: It's called objective-C++ Preprocessor HeadersThis allows you to do even more with C++ rather than Objective-C. iOS programming:
|
||||
|
|