All Projects → Abedalkareem → games_services

Abedalkareem / games_services

Licence: other
A Flutter plugin to support game center and google play games services.

Programming Languages

dart
5743 projects
swift
15916 projects
kotlin
9241 projects
ruby
36898 projects - #4 most used programming language
objective c
16641 projects - #2 most used programming language

Projects that are alternatives of or similar to games services

laravel-gamify
Laravel Gamify: Gamification System with Points & Badges support
Stars: ✭ 35 (-47.76%)
Mutual labels:  leaderboard, achievements
custom-styled-maps-android
Demonstration project with an example of Google Map custom map styling on Android.
Stars: ✭ 30 (-55.22%)
Mutual labels:  google-play-services
laravel-achievements
Simple, elegant Achievements the Laravel way
Stars: ✭ 62 (-7.46%)
Mutual labels:  achievements
MSMARCO-MRC-Analysis
Analysis on the MS-MARCO leaderboard regarding the machine reading comprehension task.
Stars: ✭ 20 (-70.15%)
Mutual labels:  leaderboard
rclc
Rich Context leaderboard competition, including the corpus and current SOTA for required tasks.
Stars: ✭ 20 (-70.15%)
Mutual labels:  leaderboard
TheGame
The platform that MetaGame will be played on aka MetaOS - an open source framework for running decentralized societies. Currently featuring MetaSys, MyMeta Profiles, Dashboard, MetaMenu & Quests
Stars: ✭ 100 (+49.25%)
Mutual labels:  leaderboard
atari-leaderboard
A leaderboard of human and machine performance on the Arcade Learning Environment (ALE).
Stars: ✭ 22 (-67.16%)
Mutual labels:  leaderboard
SteamAchievementNotifier
Steam Achievement Notifier is an Electron application that shows a customisable notification when you unlock any Steam Achievement! It uses the Steam Web API to track achievement stats in real time, and displays an achievement summary within the notification.
Stars: ✭ 77 (+14.93%)
Mutual labels:  achievements
BetterAchievements
An improvement to the Minecraft achievement screen
Stars: ✭ 20 (-70.15%)
Mutual labels:  achievements
Scavenger
A virtual "scavenger hunt" game for mobile devices using Unity, Azure, and PlayFab
Stars: ✭ 19 (-71.64%)
Mutual labels:  leaderboard
cx leaderboard
Elixir library for fast, customizable leaderboards
Stars: ✭ 18 (-73.13%)
Mutual labels:  leaderboard
InstanceRefer
[ICCV 2021] InstanceRefer: Cooperative Holistic Understanding for Visual Grounding on Point Clouds through Instance Multi-level Contextual Referring
Stars: ✭ 64 (-4.48%)
Mutual labels:  leaderboard
exhale
A Pebble app for breathing, written in C.
Stars: ✭ 12 (-82.09%)
Mutual labels:  achievements
7-billion-humans-solutions
Solutions for the game 7 Billion Humans
Stars: ✭ 147 (+119.4%)
Mutual labels:  achievements
achievement maker
Generate your own achievements
Stars: ✭ 42 (-37.31%)
Mutual labels:  achievements
Opensource-Contribution-Leaderboard
Open Source project contributors tracking leaderboard built with ❤️ in NodeJS 😉
Stars: ✭ 30 (-55.22%)
Mutual labels:  leaderboard
discord-paginationembed
A pagination utility for MessageEmbed in Discord.JS
Stars: ✭ 93 (+38.81%)
Mutual labels:  leaderboard
github-profile-achievements
A collection listing all Achievements available on the GitHub profile 🏆
Stars: ✭ 1,060 (+1482.09%)
Mutual labels:  achievements
ti.playservices
Titanium module for Google Play Services
Stars: ✭ 19 (-71.64%)
Mutual labels:  google-play-services
ANE-GooglePlayServices
Shared library including the Google Play Services Client Library
Stars: ✭ 19 (-71.64%)
Mutual labels:  google-play-services

pub package

A Flutter plugin to support game center and google play games services.

Screenshot

iOS

Android

Tutorials

Written tutorial

Video tutorial Will be added soon.

Apps

Monkey Banana Android & iOS by Abedalkareem.
Nonogram Colors by @tommybuonomo.
Ripple Effect Puzzle by @tommybuonomo.
Lights: A Memory Game Android & iOS by @theLee3.

Usage

Sign in

Sign in the user to the Game center (iOS) or Google play games services (Android). You should call the sign in before making any action (like sending a score or unlocking an achievement).

 GamesServices.signIn();

Is Signed In

A boolean value to check to see if the user is currently signed into Game Center or Google Play Services.

GamesServices.isSignedIn;

Sign out

To sign the user out of Goole Play Services. After calling, you can no longer make any actions on the user's account.

 GamesServices.signOut();

Show achievements

To show the achievements screen.

GamesServices.showAchievements();

Show leaderboards

To show the leaderboards screen. It takes the leaderbord id for android and iOS.

 GamesServices.showLeaderboards(iOSLeaderboardID: 'ios_leaderboard_id', androidLeaderboardID: 'android_leaderboard_id');

Submit score

To submit a Score to specific leaderboard.
-The Score class takes three parameters:
-androidLeaderboardID: the leader board id that you want to send the score for in case of android.
-iOSLeaderboardID the leader board id that you want to send the score for in case of iOS.
-value the score.

GamesServices.submitScore(score: Score(androidLeaderboardID: 'android_leaderboard_id',
                                       iOSLeaderboardID: 'ios_leaderboard_id',
                                       value: 5));

Unlock achievement

To unlock an Achievement.
The Achievement takes three parameters:
-androidID the achievement id for android.
-iOSID the achievement id for iOS.
-percentComplete the completion percent of the achievement, this parameter is optional in case of iOS.
-steps the achievement steps for Android.

GamesServices.unlock(achievement: Achievement(androidID: 'android_id',
                                              iOSID: 'ios_id',
                                              percentComplete: 100,
                                              steps: 2)); 

Increment (Android Only)

To increment the steps for android achievement.

final result = await GamesServices.increment(achievement: Achievement(androidID: 'android_id', steps: 50));
print(result);

Show AccessPoint (iOS Only)

To show the access point you can call the following function:

GamesServices.showAccessPoint(AccessPointLocation.topLeading);

This feature support only on the iOS, on Android there is nothing like this supported natively.

Hide AccessPoint (iOS Only)

To hide the access point.

GamesServices.hideAccessPoint();

Player id

To get the player you can call:

final playerID = GamesServices.getPlayerID();

Installing

Simply add the following line to your pubspec.yaml file:

dependencies:
  games_services: any       # <-- Add this line

Support me 🚀

You can support this project by:

1- Checking my apps.
2- Star the repo.
3- Share the repo with your friends.

Follow me ❤️

Facebook | Twitter | Instagram | Youtube

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].