Google Play Games [Stencyl now supports GPG out of the box]

Denver2003

  • *
  • Posts: 19
Stencyl now supports Google Play Games out of the box. We're sticking this notice here to avoid confusion.

http://www.stencyl.com/help/view/google-play-games/

=========

Google Play Games Services v0.1 extension for Stencyl

I have made this extension for my new game, which comes out very soon.

SETUP

1) Install Extention

2) Google Play Developer Console
2.1 Set up the game in the Google Play Developer Console (https://developers.google.com/games/services/console/enabling)
2.2 Create and set up your Leaderboards and Achievements
2.3 Create a linked application and auth it with your SHA1 fingerprint of the certificate !!! very important !!!

3)Edit ids.xml file inside extention directory.

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="app_id">APP_ID_FROM_CONSOLE</string>
</resources>


replace APP_ID_FROM_CONSOLE by your App ID from Google Play Game Services

HOW TO USE

4)How to use extention

4.1 After game is started extention connects to Google Play Games Services automaticaly!
4.2 To submit score you need to place "GooglePlay: submit score" block or call function
    com.khlopin.GooglePlay.submitScore(LEADERBOARD_ID,Score);
4.2 To show Leaderboard: "GooglePlay: show leaderboard" or call
    com.khlopin.GooglePlay.showLeaderboard(LEADERBOARD_ID);
4.3 To unlock achievement  : "GooglePlay: unlock achievement" or call
    com.khlopin.GooglePlay.unlockAchievement(ACHIEVEMENT_ID);
4.4 To increment achievement  : "GooglePlay: increment achievement" or call
    com.khlopin.GooglePlay.incrementAchievement(ACHIEVEMENT_ID,count);
4.5 To show achievements table : "GooglePlay: show achievements" or call
    com.khlopin.GooglePlay.showAchievements();

P.S.
To test my game, you need to join google plus community "Denver2003 Games"
(https://plus.google.com/u/0/communities/116834540641222921824)
and download game from
https://play.google.com/apps/testing/com.khlopin.imnotdrunkrelease
To test Google Play Games Services into the game send me your Gmail and i'll add it to testers email list.

« Last Edit: November 02, 2015, 10:56:25 am by Jon »


Denver2003

  • *
  • Posts: 19
yes, you're right, it's news to me)
but for me it was a good experience in creating extensions)

Neotron

  • Posts: 475
Very nice Denver, thank you for your great extension. I will test your extension and the official one as well. And I am waiting to test your game too! Keep up the good work!:)

havana24

  • *
  • Posts: 505
Thank you Denver, great work! :)
My Website: www.havana24.net

Max Finch

  • *
  • Posts: 2187



doctorfox

  • Posts: 21
Finally something of importance for the Android folks.
Has anyone tested the extension yet, what's the experience with integration like?

creatiwell

  • Posts: 125
Wow,Finally <3 <3
Denver did you test it? it works? :D