Author Topic: jpct-ae for iOS  (Read 2848 times)

Offline jackjia

  • byte
  • *
  • Posts: 6
    • View Profile
jpct-ae for iOS
« on: December 04, 2012, 06:45:16 am »
Hi Egon,

Google recently published a Java to Objective C translation tool: http://code.google.com/p/j2objc/
Do you think it is possible to port jpct-ae to iOS using the tool? By the way, I'm really thankful for your jpct-ae engine, it works great!

Best,
Jack

Offline K24A3

  • long
  • ***
  • Posts: 231
    • View Profile
Re: jpct-ae for iOS
« Reply #1 on: December 04, 2012, 01:31:59 pm »
"J2ObjC does not provide any sort of platform-independent UI toolkit, nor are there any plans to do so in the future. iOS UI code needs to be written in Objective-C or Objective-C++ using Apple's iOS SDK (Android UIs using Android's API, web app UIs using GWT, etc.)."

..which means it would be a big job converting jPCT to iOS. I think Egon has enough on his plate ;)
« Last Edit: December 04, 2012, 01:34:06 pm by K24A3 »

Offline jackjia

  • byte
  • *
  • Posts: 6
    • View Profile
Re: jpct-ae for iOS
« Reply #2 on: December 05, 2012, 01:05:04 am »
I did lots of android and ios coding so I know the UI stuff is easy; especially for game engine that is only a tiny part. The engine itself and opengl etc are the concerns.

Online EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: jpct-ae for iOS
« Reply #3 on: December 05, 2012, 08:28:26 am »
OpenGL is a concern as well as the Bitmap/Drawable stuff for texture uploads and file access for textures and shaders. I don't thinkt that this project is mature enough to bother with it, nor do i own anything from Apple nor do i want to ATM...

Offline jackjia

  • byte
  • *
  • Posts: 6
    • View Profile
Re: jpct-ae for iOS
« Reply #4 on: December 06, 2012, 10:21:22 am »
The physics and geometry stuff should be similar though, and the structure and overall design is transferable too. Lots of iOS coding is probably needed and some iOS libraries needs to be plugged in etc. The benefit would be the games that are using jpct-ae then could be  ported easily to iOS. This is just a wild idea. Of course you don't own anybody, and we all own you for jpct.  :)

Offline K24A3

  • long
  • ***
  • Posts: 231
    • View Profile
Re: jpct-ae for iOS
« Reply #5 on: December 06, 2012, 01:36:41 pm »
It's not just the iOS API and OpenGL adaption, the quality of J2ObjC's code conversion is in question as well so the conversion may introduce many problems that may be difficult and tiresome to track down. Plus any future changes done in jPCT-AE would need to be duplicated in jPCT-iOS, tested, patched, etc..

I mean it would be nice having an iOS version but I've had to convert a large amount of code from one platform to another (C++ MFC to C# .NET) and was something that introduced a lot hair pulling and headaches :p

Offline jackjia

  • byte
  • *
  • Posts: 6
    • View Profile
Re: jpct-ae for iOS
« Reply #6 on: December 08, 2012, 11:22:11 am »
Agree with you - it won't be easy. Maybe easier than rewrite but it's hard to tell. Objective c is such a flexible language (doesn't necessarily mean it is better), it has a lot ammunition to express Java, so J2ObjC should be OK if they did it right - but honestly I haven't tried it yet. :-) Ok, maybe this is a bad idea.