This repository is the home of Unicorn Battle (UB), PlayFab's open-source, end-to-end demo project. UB is a complete game sporting dynamic gameplay, driven by PlayFab's back-end technology, showcasing how to build modern live-game systems.
- Unified Player Profile - Accounts uses Device ID &/or Facebook Authentication
- Cloud Saving - Store data on up to 10 characters per account
- Inventory Management - Transfer items and currency between the player and its characters
- Dynamic Gameplay - Drive client behaviors using TitleData
- Virtual Items, Currencies, and Stores - Configured via PlayFab's Game Manager
- Friend Lists - Import Facebook friends or add your own
- Statistics Tracking - Used to drive Achievements and real-time leaderboards
- Push Notifications - for re-engagement campaigns and special offers
- Real-money, In-app Purchases - with Android or iOS receipt validation
- CDN-hosted AssetBundles - Dynamically stream content to clients for new sales and events
- Cloud-hosted Logic - Cloud Script methods that call a variety of protected APIs
- Community Forums - with API access to your game; built by our partners over at [Innervate](https://playfab.com/marketplace/innervate/"A turn-key community solution that comes out-of-the-box integrated with PlayFab")
This is an advanced example and can be quite dense at times due to the many sub-systems.
- You should be very familiar with Unity3d & UUI
- Have a basic understanding of the PlayFab API
- Be comfortable working with JSON-to-C# serialization & deserialization
The first step is cloning the Unicorn Battle back-end to your own PlayFab title so you can play around with all the data on your own.
We've built a handy tool to do this -- see the Back-end guide for full instructions.
The next step is to get the Unicorn Battle client running on your own mobile device, and communicating with your own back-end.
There are two ways to setup the Unicorn Battle client. You can download the Unity source code, compile it yourself, and run on the device of your choice. Or, you can download and install our precompiled Unicorn Battle app directly from the Google Play store for Android.
See the Client Guide for full instructions.
For a complete list of available APIs, check out the online documentation.
Our Developer Success Team can assist with answering any questions as well as process any feedback you have about PlayFab services. Community, Forums, Support and Knowledge Base
Apache License -- Version 2.0, January 2004 http://www.apache.org/licenses/
License Details available in LICENSE.txt
The asset creators below retain all rights to their assets. Please do not use without explicit consent. If you like any of the assets used in Unicorn Battle, support the creators:
- Featured Art: Ashley Sarroca -- http://ashleysarroca.com/
- GUI DarkStone 1: Layer Lab -- http://www.layerlab.io/work
- Cartoon FX Package: Jean Moreno -- http://www.jeanmoreno.com/
- UGuiTween: Chris Cunningham -- http://rightsomegoodgames.ca/
- Painterly Spell Icons: J. W. Bjerk (eleazzaar) -- find this and other open art at: http://opengameart.org
- Facebook SDK: Facebook -- https://developers.facebook.com/
- OpenIAB: OpenIAB -- http://onepf.org/openiab/
Ideas on how we can make our examples, documentation and services better? -- Contact Us
Want to continue developing on Unicorn Battle? -- Fork Unicorn Battle
We love to hear from our developer community!
See GitHub Releases for the latest stable build and patch notes.