Alexander K.
Alexander K.

Reputation: 1767

Support for XNA WP7 and flash with existing C++ code base - pipeline, tools and approaches

all. We are game development company and we develop casual games for PC/MAC/iOS/Android with our own engine written in C++ (90-100%) and we are happy with it!

Now we want to target XNA/WP7 and flash.

What is the best way for doing this ?

Of course we will have to rewrite some low-level stuff like sprite rendering/timing/audio support, but we want to put as less efforts as possible in porting game code itself.

A. We do not want to rewrite game code two time more

B. Ideally even one time more :)

For flash we are going to use Haxe together with this library. It would be awesome to have C# target support in Haxe. It has been announced but never released and I think it will not be released in nearest future. But I think it will be released in 1-2 years. So in porting different engine components to Haxe is potentially great investment.

Until then we have to decide how to meet A and B.

Possible variants for dealing with it:

  1. Using mokey. However languaged seems to be so primitive and so different from C++/AS3/C#/etc what we decided not to use it.

  2. First of all develop XNA port with the help of brains and C++ to C# converter. Then use C# to Haxe converter. This approach seems to be the best one at this moment, but I have no idea about how much time convertors will save compared to straightforward code rewrite. However, I think they will help.

  3. It is also possbile to use Adobe Alchemy for flash support. However we will have to develop new architecture to separate render/audio and logic into different languages and we want to avoid this - it seems to be more complex than code porting.

So what do you think about 1-3 and do you know better options to achieve A and B ? Maybe other meta languages/approaches/technologies ?

Thanks a lot!

Upvotes: 1

Views: 473

Answers (1)

user562566
user562566

Reputation:

This is your absolute best/ideal solution:

http://www.mandreel.com/?page_id=48

http://www.leebrimelow.com/?p=2593

Basically it's a framework/compiler that will compile c/cpp/objc to iOS, Android, Flash, WP7, and much more.

Upvotes: 1

Related Questions