Score keeping and gamecenter

Hi, Im just reached the point where Im going to integrate a game network for scores.

I was going to use openfeight but just released that apple game center has been integrated into the api.

I intend to release my game on android and ios, so how do people go about making both builds have a game network if game center is being used. Do you use multiple networks? Will both builds have a separate game network? What’s your preference?

Also do I need to still have local scores saved on the device or do the api’s for the game networks cache all scores locally for you so it works when no network is available? Many thanks, all insight appreciated. [import]uid: 118379 topic_id: 23970 reply_id: 323970[/import]

As for your first problem, I do something like:

local isAndroid = false  
if system.getInfo("platformName") == "android" then  
 isAndroid = true  
end  
...  
-- later on....  
...  
  
if isAndroid then  
 gameNetwork.init(... for open feint ... )  
else   
 gameNetwork.init(... for game center ... )  
end  

Then you keep using that “if isAndroid” to wrap your gameNetwork.request() calls as well.

I always keep the last high scores for the player locally. People don’t know what OpenFeint is and its a turn off to them so they may never sign up and you want to be able to present their high scores at a minimum. Game Center is a bit more widely known, so there is more acceptance. [import]uid: 19626 topic_id: 23970 reply_id: 96583[/import]

Thx rob, may come back if I have any more questions. :slight_smile: [import]uid: 118379 topic_id: 23970 reply_id: 96699[/import]

Rob just reading this a second time and thought id follow up:

“People don’t know what OpenFeint is and its a turn off to them”

Are you suggesting that effort to integrate does not outweigh the benefits?

Its my first game so dont want to overdo everything, shall I just worry about Gamecenter in your opinion?

Also Im yet to try it and will most likely find out the answer but does the gamecenter display the scores for you or will I have to create the boards myself?

Cheers.
[import]uid: 118379 topic_id: 23970 reply_id: 97051[/import]