Git Product home page Git Product logo

bbggps's Introduction

bbGGPS

Godot Google Play Services Admob Video

This is a Google Play Game Services module for the Godot game engine, written by blubee

This module should be straigh forward to use.

###Implemented Abilities ####Login or Logout to Google Play Game Services ####Increment or Unlock achievements

Setup your app in the new Google Play Services developers console.

Download this project put the "GodotGooglePlayGameServices" inside your godot-src/modules foler. Then recompile your android export templates.

How To Compiling Android Export Templates

###Adding Your APP_ID

Inside the GodotGooglePlayGameServices folder go into the androidmanifestchunk and add your app id ex:

<meta-data android:name="com.google.android.gms.games.APP_ID" android:value="\ [place app id here]" />

##Example Usage In any script add this code

var ggps

func _init():
	if(Globals.has_singleton("bbGGPS")):
		ggps = Globals.get_singleton("bbGGPS")
		ggps(get_instance_ID())

###Now You Can Call ggps.sign_in() //This will make sure your user is logged in. This will prompt the user to login to Google. You should make sure that the user is fully before calling any of the Google Play Game Services Functions

In you GDScript file create a function called is_user_logged_in this will return true or false

func is_user_logged_in(logged_in):
		if(logged_in):
			you can call the implemented Google Play Game Services Functions
		else:
			user isn't logged in, you can request for them to log in.

To get the is_user_logged_in you must call

ggps.is_loggedIn()

##Function prototype init_GGPGS(int device_id) sign_in() is_logged_in() #this will call back to the GDScript "is_user_logged_in(boolean)" function increment_achy(String achievement_id, int increment_amount) unlock_achy(String achievement_id) show_achy_list()

bbggps's People

Contributors

teamblubee avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.