Click here to Skip to main content
12,503,838 members (32,045 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: Windows Mobile iPhone Android Game , +
Hi all,
I know ObjC is the most suitable for iOS and Java for Android, for desktops there are more choice; and OpenGL / OpenGL ES is available on most of these platforms. Now how could I make a cross platform 2D game runs on iOS, Android and desktop (Windows PC might)? Suggestions and tips are appreciated.
Posted 19-Feb-11 20:41pm
paladin_t5.8K
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

You could write your game in standard C++ and use OpenGL ES for graphics. This way, your game will be (easily) portable to iOS, Android, Windows, Linux and Mac. The iOS version would have an Objective-C wrapper to communicate with the iOS platform. The Android version would use the Android NDK[^]. There are many resources for C++ development on all these platforms, you just need to Google it. Best of luck! :)
  Permalink  
Comments
Tony's Toy 20-Feb-11 23:04pm
   
Thank you!
BTW, does Android NDK support C++ standards consummately? May I use exception, template, STL as my desires on it?
FrancisXavier 21-Feb-11 1:52am
   
See this for more info on C++ support with the Android NDK:
http://docs.huihoo.com/android/ndk/r5/CPLUSPLUS-SUPPORT.html

I've not gone into the details, but from a quick glance, it seems like you should be able to use exceptions, STL and RTTI in your Android project.
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

This question is far too wide for this forum. Try doing some research into the subjects you are interested in and come back here when you have a more specific problem.
  Permalink  
Comments
Tony's Toy 20-Feb-11 4:12am
   
Thank you for reply! I'll keep on researching on it.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.160919.1 | Last Updated 20 Feb 2011
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100