Skip to content

funseek/godot-googleplay-games-services

Repository files navigation

godot-googleplay-games-services

Godot Android plugin for the Google Play Games Services

Usage

method

  • signIn()

signal

  • _on_sign_in_success(player_id: String)
  • _on_sign_in_failed
if Engine.has_singleton("GooglePlayGamesServices"):
		var singleton = Engine.get_singleton("GooglePlayGamesServices")
		singleton.connect("_on_sign_in_success", self, "_on_sign_in_success")
		singleton.connect("_on_sign_in_failed", self, "_on_sign_in_failed")
		singleton.signIn()

func _on_sign_in_success(player_id: String):
		print(player_id)

func _on_sign_in_failed():
		print("_on_sign_in_failed")

Compiling

Steps to build:

  1. Clone this Git repository
  2. Run ./gradlew build in the cloned repository
  3. copy *.aar and gdap files
cp GooglePlayGamesServices/build/outputs/aar/GooglePlayGamesServices-release.aar ${YOUR_PROJECT}/android/plugin/
cp GooglePlayGamesServices.gdap ${YOUR_PROJECT}/android/plugin

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages