Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by Arantor

I'm looking at using Impact for iOS games (and frankly, I'm not in the slightest interested in supporting Android, don't have any such devices, nor the time to test them)

And that means I'm going to want to integrate with Game Center or maybe OpenFeint.

I actually know nothing about either at this point in time, so I have no idea what's required in order to use either service. Having done a few searches, though, it seems that a native binding will be in order.

If that's true, how would I (as an Obj-C newbie) go about calling the relative bindings from Impact?

I have no preference for iOSImpact vs AppMobi, so if it's significantly easier in one than the other (gut instinct tells me it might be easier in iOS Impact, since it's not like it relies on directly using xmlHttpRequest or similar that a browser would need), please advise, thanks :)

1 decade ago by Philip

I recently helped a friend do that. It's not that hard, but depends on what you want to do.

The first thing you should do is getting confortable with gamecenter. Apple provides good information in the docs. If you want to have it a little easier read the following:

http://mobile.tutsplus.com/tutorials/iphone/ios-sdk-game-center-achievements-and-leaderboards-part-1/
http://mobile.tutsplus.com/tutorials/iphone/ios-sdk-game-center-achievements-and-leaderboards-part-2/

Try out the example and play a little with it.

Then look at the impactiOs Source Code. Expecially the JS_xxx files. There you will see how you can comunicate between js and obj-c.

All the stuff with the interface builder in the tutorial isn't relevant to you, but to try out gc it's quite good. And you'll lern a little bit how native iOS Apps are made :)

1 decade ago by Arantor

Thanks for the heads-up :) Looks like a really clear tutorial but I guess I'm going to have to get my hands dirty with Obj-C (oh well, heh)

1 decade ago by Datamosh

Arantor, finally you could integrate Game Center with iOSImpact?

I'm really bad with Obj-C. Confirmed :$

1 decade ago by Arantor

Nope, haven't spent any time on it and to be brutally honest, my next development won't be with Impact but with Unity anyway (whereupon they already have GC integration built in)
Page 1 of 1
« first « previous next › last »