Support our Sponsors:

Go Back   Touch Arcade > Developer Discussion > Public Game Developers Forum

Reply
 
Thread Tools Display Modes
  #1  
Old 02-17-2014, 03:07 PM
jacopious jacopious is offline
Junior Member
iPhone 4, iOS 6.x
 
Join Date: Feb 2014
Posts: 13
Default Porting a game from iOS to Android with Apportable?

I'm wondering if anybody here ported their iOS game to Android with Apportable, and how it worked for you? Did it pay off or would it have been better if you had rewritten the game yourself?
Reply With Quote
  #2  
Old 02-17-2014, 03:28 PM
baris's Avatar
baris baris is offline
Senior Member
iPhone 4S, iOS 6.x
 
Join Date: Jul 2010
Posts: 237
Default

Quote:
Originally Posted by jacopious View Post
I'm wondering if anybody here ported their iOS game to Android with Apportable, and how it worked for you? Did it pay off or would it have been better if you had rewritten the game yourself?
I'm porting TripTrap now.. It's really amazing so far, you have to see it to believe it. There are still a couple of issues / bugs to solve, but way fewer than I would have expected (and even for those, their discussion forum on google groups is very helpful)
Reply With Quote
  #3  
Old 02-17-2014, 07:56 PM
jacopious jacopious is offline
Junior Member
iPhone 4, iOS 6.x
 
Join Date: Feb 2014
Posts: 13
Default

Thanks for your answer. That's what I was, kind of, hoping to hear.
Reply With Quote
  #4  
Old 02-18-2014, 01:31 AM
Fahim Fahim is online now
Junior Member
iPhone 5, iOS 7.x
 
Join Date: Sep 2013
Location: Malaysia
Posts: 19
Default

I haven't spent a lot of time on Apportable so far but my experience hasn't been very positive so far. But it might also be due to the fact that I'm using several third-party libraries and developing using cocos2D V3

My main issues so far have been:

1. No real support for showing ads aside from iAds. I was told that AdMob mediation support was there in the Indie version of Apportable (not the free version) and the guys at Apportable were kind enough to give me a trial for the Indie version to test it out. But so far have not had a lot of luck getting AdMob mediation working. Had to comment the ad code out to get an Apportable build.

2. My game's a universal app with different spritesheets for iPad, iPhone etc. This works fine in the iOS version of the game using the cocos2D V3 relative positioning. But when I compile the same game for Android, I get really tiny images on screen.

The above are the two issues I've noticed so far in trying out Apportable. I do realize that these might be known issues and there might be known solutions. I have not looked into each issue yet. Just pointing out the things that were stumbling blocks for me in case that proves to be helpful.
Reply With Quote
  #5  
Old 02-18-2014, 12:55 PM
jacopious jacopious is offline
Junior Member
iPhone 4, iOS 6.x
 
Join Date: Feb 2014
Posts: 13
Default

Thanks for answering, that's some really useful info.

I'm also making a game in cocos2d, although v2 instead of v3, but I imagine the porting experience should be similar. Haven't really looked into using ads yet, but it's good to know there could be potential problems there.
Reply With Quote
  #6  
Old 02-18-2014, 04:21 PM
baris's Avatar
baris baris is offline
Senior Member
iPhone 4S, iOS 6.x
 
Join Date: Jul 2010
Posts: 237
Default

Quote:
Originally Posted by Fahim View Post
I haven't spent a lot of time on Apportable so far but my experience hasn't been very positive so far. But it might also be due to the fact that I'm using several third-party libraries and developing using cocos2D V3

My main issues so far have been:

1. No real support for showing ads aside from iAds. I was told that AdMob mediation support was there in the Indie version of Apportable (not the free version) and the guys at Apportable were kind enough to give me a trial for the Indie version to test it out. But so far have not had a lot of luck getting AdMob mediation working. Had to comment the ad code out to get an Apportable build.

2. My game's a universal app with different spritesheets for iPad, iPhone etc. This works fine in the iOS version of the game using the cocos2D V3 relative positioning. But when I compile the same game for Android, I get really tiny images on screen.

The above are the two issues I've noticed so far in trying out Apportable. I do realize that these might be known issues and there might be known solutions. I have not looked into each issue yet. Just pointing out the things that were stumbling blocks for me in case that proves to be helpful.
I haven't tried ads yet, so I can't say anything about that. For 2., try adding
Code:
#ifdef ANDROID
    [UIScreen mainScreen].currentMode = [UIScreenMode emulatedMode:UIScreenBestEmulatedMode];
#endif
at the beginning of your didFinishLaunching: method. This worked really well for me in Cocos2d v2

I also had a rough start at the beginning, but mainly because I was using very old devices. One of them wasn't working because it didn't have OpenGL ES 2 for instance, but it took me a while to realise that. In general, getting useful debugging info is a little hard, but luckily it's not needed too much (and the discussion group is very helpful)
Reply With Quote
  #7  
Old 02-18-2014, 04:58 PM
Fahim Fahim is online now
Junior Member
iPhone 5, iOS 7.x
 
Join Date: Sep 2013
Location: Malaysia
Posts: 19
Default

Quote:
Originally Posted by baris View Post
I haven't tried ads yet, so I can't say anything about that. For 2., try adding
Code:
#ifdef ANDROID
    [UIScreen mainScreen].currentMode = [UIScreenMode emulatedMode:UIScreenBestEmulatedMode];
#endif
at the beginning of your didFinishLaunching: method. This worked really well for me in Cocos2d v2

I also had a rough start at the beginning, but mainly because I was using very old devices. One of them wasn't working because it didn't have OpenGL ES 2 for instance, but it took me a while to realise that. In general, getting useful debugging info is a little hard, but luckily it's not needed too much (and the discussion group is very helpful)
Thanks baris! The screen mode setting tip is very useful and I have a feeling that that'll probably do the trick I did take a look at the discussion groups but didn't do a search for my particular issue since I thought it might be due to an oddity in cocos2d V3.

Will check it out soon. Thanks again!
Reply With Quote
  #8  
Old 02-19-2014, 09:04 AM
M.O. M.O. is offline
Member
iPhone 4, iOS 5.x
 
Join Date: Apr 2012
Posts: 60
Default

Do you think that in the future you will move over to cocos2dx, or stick with the objective-C and cocos2d?
Reply With Quote
  #9  
Old 02-19-2014, 04:04 PM
baris's Avatar
baris baris is offline
Senior Member
iPhone 4S, iOS 6.x
 
Join Date: Jul 2010
Posts: 237
Default

Quote:
Originally Posted by M.O. View Post
Do you think that in the future you will move over to cocos2dx, or stick with the objective-C and cocos2d?
I'll stick to cocos2d I think (since I'm not too well with C++, and so far it definitely seems like apportable will be sufficient for porting), but we'll also be using Unity for some projects
Reply With Quote
  #10  
Old 02-19-2014, 04:11 PM
Fahim Fahim is online now
Junior Member
iPhone 5, iOS 7.x
 
Join Date: Sep 2013
Location: Malaysia
Posts: 19
Default

Quote:
Originally Posted by M.O. View Post
Do you think that in the future you will move over to cocos2dx, or stick with the objective-C and cocos2d?
I've already ported one game using cocos2d-x though it was about a year ago. The experience just left me wanting to get back to Objective-C So I too would stick with cocos2d, especially if Apportable turns out to be a good enough way to get an Android version out.

Incidentally, my game works much better under Apportable using the tip that baris provided The ad issues are still there under the Apportable free plan but it does look as if that might be resolved if I upgrade to the Indie SDK.
Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Copyright 2012, TouchArcade.com, LLC.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Copyright 2008 - 2011, TouchArcade.com. Privacy Policy / DMCA Copyright Agent