Hi,I have been looking into the game circle,for cross platform? Dose anybody know a simple example of how to use the gideros gamecircle plug ins. Or knows any reference? Thanks
require"gaming"
game = Gaming.new("gamecircle")-- or googleplay or gamekit
game:addEventListener(Event.STATE_LOADED, function(e)--load saved data from cloud hereif e.data ~=""thenprint(e.data)endend)
game:addEventListener(Event.STATE_CONFLICT, function(e)--resolve data conflicts here--for example always taking server data
game:resolveState(e.key, e.version, e.serverData)end)
game:addEventListener(Event.LOGIN_COMPLETE, function()
game.isLoaded =true--you can request data from server here
game:loadState(1)end)--authenticate
game:login()--you create some global functions to post scores and achievementsfunction postScore(score)if game and game.isLoaded then
game:reportScore("leaderboard1", score)endendfunction unlockAchievement(achievementId)if game and game.isLoaded then
gamereportAchievement(achievementId, 100)endendfunction showAchievements()if game and game.isLoaded then
game:showAchievements()endendfunction showLeaderboard()if game and game.isLoaded then
game:showLeaderboard("leaderboard1")endend
Has ios gaming been updated to include gamecircle/play services?
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!). https://deluxepixel.com
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!). https://deluxepixel.com
I started modifying it, by adding methods to manipulate notifications pop ups and its positions, retrieving information about player and its scores, standartizing achievements values from 0 to 100 for all frameworks and also adding the other ios frameworks, But not finished yet, but probably will be this week
Comments
And usage is quite simple:
Likes: hgvyas123
https://deluxepixel.com
https://deluxepixel.com
Thanks
But not finished yet, but probably will be this week
Likes: SinisterSoft, zoolax
no rush,take your time,as long as it is coming along I am happy:)
and Thank you very much:)