0
\$\begingroup\$

I have developed a game on android using native coding. However I am being asked to port it to ios.

So I thought that I should bite the bullet and recode it in unity so I can go cross platform.

I am just upset that I have to recode everything in unity. Is there any other way or tool that at least will make me use half of my code or so thing? Basically what would you do.

Ps:I don't even know unity but I heard learning it is easy

\$\endgroup\$

2 Answers 2

3
\$\begingroup\$

Libgdx is a free game library that supports java and can be deployed to Android and iOS. You will definitely be able to use a lot of your existing code and, depending on how you implemented your Android game, you may even be able to convert many of your draw calls to the Android canvas directly to draw calls in Libgdx.

Libgdx definitely has a steeper learning curve than Unity, but it has a pretty good community and a couple of good tutorials. Libgdx supports Desktop(Win/Mac/Linux), Android, iOS. It even kind of supports HTML5/JS, though its a bit of a pain to get everything working in the browser.

\$\endgroup\$
1
  • \$\begingroup\$ Thats a pretty good suggestion. The only problem is like you said the steep learning curve. It's Much harder than unity plus the lack of assets. But definitely a good suggestion and that's why i accepted it \$\endgroup\$
    – Snake
    Commented Jun 22, 2016 at 16:51
4
\$\begingroup\$

There is no simple way to convert your java code into Unity, unfortunately.

You are going to have to convert the entire code base into either C# or Javascript. Even the way you do your scenes are going to have to be updated.

There is no easy way around it, sorry to say.

\$\endgroup\$
2
  • \$\begingroup\$ Thank You. I am not even limited to unity. I am wondering what would be the quickest and easier way to go to ios. I suggested unity just because I know it is cross platform. It does not seems it is Java to c# conversion. The whole game design will change \$\endgroup\$
    – Snake
    Commented Jun 9, 2016 at 13:28
  • \$\begingroup\$ There is no easy way to go from Android (native) to iOS. Sorry. Unless someone can prove me wrong, I do not know of any method. \$\endgroup\$
    – jgallant
    Commented Jun 9, 2016 at 13:29

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .