Coder Social home page Coder Social logo

g-sai-kiran / cloudscriptsamples Goto Github PK

View Code? Open in Web Editor NEW

This project forked from playfab/cloudscriptsamples

0.0 0.0 0.0 1.08 MB

Sample scripts demonstrating custom game logic for hosting in PlayFab.

License: Apache License 2.0

JavaScript 100.00%

cloudscriptsamples's Introduction

Cloud Script Samples README

  1. Overview:

This repository contains several examples on how to use Cloud Script in PlayFab.

  1. Prerequisites:

To get the most from these samples you should be very familiar with PlayFab's Cloud Script service. Check out our Cloud Script getting started guide.

To connect to the PlayFab service, your machine must be running TLS v1.1 or better.

  1. Source Code & Key Repository Components:

  • BasicSample/basic_sample.js -- This is the default Cloud Script which is automatically created as revision 1 for all new titles, demonstrating basics of using Cloud Script including Photon webhook integration.
  • Rewards/CloudScript_Rewards.js -- A Cloud Script file illustrating simple methods that read and write to a player's internal data as well as grant inventory items.
  1. Installation & Configuration Instructions:

  • Rewards/CloudScript_Rewards.js -- Upload it to your title via the PlayFab Game Manager by going to Servers > Cloud Script.
  • BasicSample/basic_sample.js -- Upload it to your title via the PlayFab Game Manager by going to Servers > Cloud Script.
  • Photon-Cloud-Integration -- This is a pointer to our repro showing the full Photon Cloud sample for PlayFab.
  1. Usage Instructions:

  • Rewards/CloudScript_Rewards.js -- As with any Cloud Script file, you can trigger any handlers._____ method from RunCloudScript. Note that you must first establish the correct URL for your Cloud Script via a call to GetCloudScriptUrl.
  • BasicSample/basic_sample.js -- As with any Cloud Script file, you can trigger any handlers._____ method from RunCloudScript. Note that you must first establish the correct URL for your Cloud Script via a call to GetCloudScriptUrl.
  • Photon-Cloud-Integration -- Please see the Photon Cloud sample for PlayFab.
  1. Troubleshooting:

For a complete list of available APIs, check out the online documentation.

Contact Us

We love to hear from our developer community! Do you have ideas on how we can make our products and services better?

Our Developer Success Team can assist with answering any questions as well as process any feedback you have about PlayFab services.

Forums, Support and Knowledge Base

  1. Copyright and Licensing Information:

Apache License -- Version 2.0, January 2004 http://www.apache.org/licenses/

Full details available within the LICENSE file.

  1. Version History:

  • (v1.00) Initial Release
  • (v1.10) Updated for latest changes to examples

cloudscriptsamples's People

Contributors

bvanous avatar zac-playfab avatar matt-augustine avatar hungwunfai avatar johntube avatar toddbellmsft avatar jeremy-playfab avatar markval 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.