HaxeExtension / extension-googleplaygames

OpenFL extension for Google Play Games / Android
Other
53 stars 17 forks source link

Login result event functionality #3

Closed shadowofsoul closed 9 years ago

shadowofsoul commented 9 years ago

Hi,

the lib is awesome and works out of the box, but the crappy google play services require on most of the cases, of this function to avoid glitches and bugs on the game play. for example, in my case (and like nitrome games does), i have a loading screen i show in the meantime i set up everything ( game data, ads if exist, and leaderboards) and i force the login of the user in that phase. for this reason, i need to know when google play services finished to use the activity, to load the game world. with this function, i was able to detect a pattern of results depending different circumstances, if the connection is up, if the user logged in or not etc.. to know when to load the actual game. is enough flexible and useful to be adapted to any kind of game logic.

i tried to follow your code structure as much i could, and added instructions to the readme. if you could merge it and release a new haxelib package with it, it would be awesome :D

Regards.

fbricker commented 9 years ago

Hi! Thanks for the contribution. I'll be uploading to haxelib in few minutes :+1:

fbricker commented 9 years ago

Done, you can do haxelib upgrade now :)