Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

Is there such thing as an SDK or toolset that can produce Windows, Flash, and Android executables from the same source? Something like "write once, run in all three platforms?"

share|improve this question

closed as off-topic by Byte56 May 29 at 13:46

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions about "how to get started," "what to learn next," or "which technology to use" are discussion-oriented questions which involve answers that are either based on opinion, or which are all equally valid. Those kinds of questions are outside the scope of this site. Visit our help center for more information." – Byte56
If this question can be reworded to fit the rules in the help center, please edit the question.

    
Excellent question. Exactly what I wanted to know. –  ashes999 Oct 14 '11 at 22:43

5 Answers 5

up vote 5 down vote accepted

unity3d exports to android and will export to flash 11 swf. It can be made to to do 2d, but its not its primary function.

http://haxe.org/ is also a possibility.

If you drop your flash requirement there are lots more :)

share|improve this answer
    
can you comment on what other ones are a possibility? –  ashes999 Oct 14 '11 at 22:43
    
If by "Flash," the OP means "playable in a web browser," Unity has that covered without dropping the requirement--just refining it. –  chaosTechnician Oct 15 '11 at 3:43

Google just released an early version of PlayN that does just what you want (on the paper) : https://developers.google.com/playn/

It's too early to say if it's useful or what.

share|improve this answer
    
So did they realize that "forplay" is a silly name or is that something different? –  bummzack Oct 14 '11 at 21:10
    
I don't know but what I know is that lack of documentation and any demo to show what have been done with it is a serious failure. –  Klaim Oct 14 '11 at 21:20

This is what Adobe AIR is for. Personally I wouldn't really recommend that approach though, because it's not really optimal for each platform (especially not for mobile). I would recommend use Flash to develop for desktop browsers, and then port to a mobile development tool like Corona SDK.

share|improve this answer

FlashPunk is a nice game framework. It's pretty good - there's also Flixel. Both are pretty great with 2D game drawing; there's many, many games out there made with these two.

share|improve this answer
    
This doesn't exactly address the question. These are Flash games libraries, so they can be useful on all platforms Flash can be used on, but you didn't mention that part. –  jhocking Oct 13 '11 at 12:36

You could try the libgdx library, it supports building games that work on PC and Android, and there are some experiments to get it to work with html5 (using gwt) and to get it to run on iOS (using the avian jvm).

This library has support for buiding 2d and 3d games, you can search in the android market for some examples of games made with the library libgdx on the android market

Some nice examples of games made with libgdx are:

  • jumping slime
  • tap 'n' crash
  • Apparatus
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.