Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

 
Advanced search

891141 Posts in 33524 Topics- by 24768 Members - Latest Member: Stome

June 19, 2013, 01:50:44 AM
TIGSource ForumsDeveloperTechnical (Moderators: Glaiel-Gamer, ThemsAllTook)Convert iPhone/iPod game to Flash game (or browser game)
Pages: [1]
Print
Author Topic: Convert iPhone/iPod game to Flash game (or browser game)  (Read 1124 times)
Gguo
Level 0
**



View Profile WWW Email
« on: June 18, 2011, 11:21:50 PM »

Hello All.
This is my first thread at TIGSource Smiley Yay!

I am trying to convert my latest iPhone Game (iTunes Link) to Flash (or browser game)
But I have no idea what to do.

I've tried Stencyl but it's like somewhat event-driven code I prefer traditional main-loop style.
could you recommend most convenient way to convert C++ code based game to browser game?

Thanks.
Logged

Netsu
Level 10
*****



View Profile WWW
« Reply #1 on: June 19, 2011, 02:01:30 AM »

Java has C-like syntax and you can run it in browsers so maybe it is the way to go.
Logged

Gguo
Level 0
**



View Profile WWW Email
« Reply #2 on: June 19, 2011, 03:53:57 AM »

Java has C-like syntax and you can run it in browsers so maybe it is the way to go.

Thank you for suggestion! It seems definitely worth to try!!!  
Currently I found LWJGL for game library. is there any other library for game?
If you know some please tell me  Smiley

And I want to have more option if I can use Flash like c++ that will be best.
(It seems Kongregate accept Java but Armor Games doesn't)
« Last Edit: June 19, 2011, 03:59:28 AM by Gguo » Logged

pgil
Guest
« Reply #3 on: June 19, 2011, 04:42:23 AM »

Flashpunk is a great library for loop-driven stuff.
Logged
BorisTheBrave
Level 10
*****


View Profile WWW
« Reply #4 on: June 19, 2011, 07:15:54 AM »

I take it the original is in Objective C? You can use Alchemy to recompile your ObjC/C++ to Flash. You'll need to still rewrite all the display stuff though.

You can also compile ObjC/C++ to javascript and make an HTML5 game. WebGL and whatever the iPhone uses are probably vaguely similar. I forget the name of the tool capable of this, but it is definitely possible.

Otherwise, if you go for flash, you'll have to rewrite pretty much everything. Getting started with flash is pretty easy, get haXe or flex as your compiler and FlashDevelop as an IDE (windows only).
Logged
Gguo
Level 0
**



View Profile WWW Email
« Reply #5 on: June 19, 2011, 08:14:55 PM »

Thank you!

Now I have enough options to try. Smiley

And Alchemy seems like literally alchemy itself!
can it convert my XML reader routine automatically?
Logged

BorisTheBrave
Level 10
*****


View Profile WWW
« Reply #6 on: June 20, 2011, 11:51:33 AM »

Yes, XML parser is actually mentioned as a use case on the main page. It can convert anything that can be compiled to llvm bitcode, but just like any port, you have to deal with all the libraries being different.
Logged
Nix
Level 10
*****



View Profile
« Reply #7 on: June 20, 2011, 12:03:20 PM »

Alchemy is very frustrating. If it works, fantastic, but don't get your hopes up. It is definitely not a one click solution. I would say hunker down and do the work of manually porting it to as3, maybe with Flixel or Flashpunk.
Logged
Krux
Level 1
*



View Profile
« Reply #8 on: June 20, 2011, 04:36:54 PM »

If you decide to use the JVM, give Scala a try, its definitely worth it.
Logged
Gguo
Level 0
**



View Profile WWW Email
« Reply #9 on: June 21, 2011, 06:08:07 AM »

Thanks for additional hints!

It seems I should try FlashPunk,Alchemy and Java.
Logged

Nix
Level 10
*****



View Profile
« Reply #10 on: June 21, 2011, 02:44:28 PM »

Don't try Java.
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic