Cross platform mobile development

Started by
5 comments, last by Sparkon 11 years, 2 months ago
Hello, i'd like to know what are th options if you want to develop a game that runs on every mobile device ( ios and android mainly ) except for c#\XNA/Mono. I don't want to use an engine either so i was looking at a cross-platform 2d graphic library.

Thank you for your time and good day!
Advertisement
We use OpenGL and C++. It works fine. On iOS you need a very small Objective-C shim but Android supports 100% native activities so you can go straight to C++.

Luckily Windows phone isnt your main target because as an indie developer, you are not eligible for the native SDK and would be pretty much stuck with C#.

Another solution is SDL but I find it really faffy to get working compared with OpenGL.
http://tinyurl.com/shewonyay - Thanks so much for those who voted on my GF's Competition Cosplay Entry for Cosplayzine. She won! I owe you all beers :)

Mutiny - Open-source C++ Unity re-implementation.
Defile of Eden 2 - FreeBSD and OpenBSD binaries of our latest game.

We use OpenGL and C++. It works fine. On iOS you need a very small Objective-C shim but Android supports 100% native activities so you can go straight to C++.

Luckily Windows phone isnt your main target because as an indie developer, you are not eligible for the native SDK and would be pretty much stuck with C#.

Another solution is SDL but I find it really faffy to get working compared with OpenGL.

Great! thank you. I'll go for OpenGL and C++

Just wanted to point out that there is also Cordova from Apache which creates a native stand alone HTML5 / Javascript app that you can very easily port to any platform including iOS, Android, WinPhone, Blackberry and all flavors of PC as well. Might be something to look in to, especially considering it is a mobile game and you are already limited by size and hardware performance issues I would assume that the project itself isn't very complicated. I have ran my own tests on app's (not games) and have found that using Cordova with jQuery you actually get smoother / faster translation animations using Cordova then you do using the native tool kits. With all of that said it's also worth mentioning that the HTML5 canvas element is already using the devices preferred hardware acceleration API (which in these cases in OpenGL).

I'm sure many people will disagree with this approach and of course you should do your research and pick what works best for you. I would just recommend that you at least give my solution a try and see if it's something that can help you. HTML5 games take minutes to setup and get started, within a couple hours you could code up the most complicated part of your game and run it inside an emulator on your PC, if it runs satisfactorily then you can rest assured it will run great on the device. (An android emulator on PC is slower than a first gen android, same with iPhone emulation).

Some reading for you...

http://www.html5gamedevelopment.com/html5-game-tutorials

http://thecodeplayer.com/walkthrough/html5-game-tutorial-make-a-snake-game-using-html5-canvas-jquery

http://www.netmagazine.com/tutorials/build-cross-platform-html5-game

(plenty of others just google "HTML5 Game Tutorial")

http://cordova.apache.org/ (AKA PhoneGap)

Dan Mayor

Professional Programmer & Hobbyist Game Developer

Seeking team for indie development opportunities, see my classifieds post

Luckily Windows phone isnt your main target because as an indie developer, you are not eligible for the native SDK and would be pretty much stuck with C#.

Not true of Windows Phone 8, which supports C++ and DirectX. Unfortunately I don't think OpenGL ES is supported, and IIRC DirectX for WinPhone8 is not quite "Big DirectX" but its close enough.

Granted, WinPhone in general is a smallish market, and WinPhone 8 even smaller, but its a nice system, its growing, the app store (from a developers standpoint) is one of the least restrictive and offers a better share of profit, and is less saturated.

throw table_exception("(? ???)? ? ???");

I don't want to use an engine either so i was looking at a cross-platform 2d graphic library.

cocos2d-x.

HTML5 was my first thought, but the game i'll be creating won't be THAT easy, it will probably be 2.5d or even 3d. And Cocos2d it's... well... 2d. :)

This topic is closed to new replies.

Advertisement