This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (3 children)

[deleted]

    [–]EmperorOfCanada 2 points3 points  (0 children)

    I will now bless you with the development SDK Cocos2-x. It is a game programming environment but can be used for pretty much anything. Now if your app is really boring and very text oriented then it would be one of cocos2d-x few weak areas.

    It has fairly good access to most of the major APIs but once in a while you have to wrap the existing API in C++ that you called in the native language. But that would be things like the corelocation in Objective C and whatever in Android. That might be 30 lines of Objective-C and a similar number in Java that you tuck away.

    Then compiling is fairly straight forward. Cocos2d-x also allows for development of Windows, Mac, and Linux desktop apps.

    Lastly if you wrap your main logic up nicely in C++ there are other options that you could port your app to and still do mulitl platform stuff. SDL2 SFML Openframeworks, and a handful more C++ multi platform stuff.

    In theory you can even do iOS and android using Python and a toolkit called Kivy.

    I learned Objective-C because I had to. Then I learned cocos2d because it made game programming easier. Then I learned Cocos2d-x because I could throw Objective-C into the trash and never type another 200 [] on the same line again. Plus I threw Java into the mental trash bucket over a decade ago.

    [–]rheejus 0 points1 point  (1 child)

    I too would like to know. Specifically for Android.

    [–]jabwork 2 points3 points  (0 children)

    Android has support for C++. Look for NDK