Jump to content

SPIL API


Biggerplay
 Share

Recommended Posts

Just trying to figure out how to implement the Spil API, here's a link to their HTML5 docs.

 

http://developers.spilgames.com/wiki/Developer_Platform_-_Learning_center_-_HTML5_API_get_started

 

I've put this in the head tag

<script type="text/javascript" src="http://cdn.gameplayer.io/api/js/game.js"></script>

and then I've got this

GameAPI.loadAPI(function(API) {    // The API is ready for use.    // It can be accessed by using the "API" variable.    // For example, the following call requests a branding logo:    API.Branding.getLogo();});

Which doesn't seem to do anything. Where do I put the GameAPI.loadAPI line? does it go in the window.onload where I set up phaser?

 

 

Link to comment
Share on other sites

  • 3 weeks later...

There are a few tutorials available from the developer portal, which explain in detail how this works. If you have questions, you can contact the Tech Support crew through the Developer portal as well. 

 

There's also a possibility to test your game using the test environment.

 

Tutorials: http://developers.spilgames.com/wiki/Developer_Platform_-_Learning_center_-_HTML5_API_-_(Tutorial)_Intro

Test tool: http://cdn.gameplayer.io/testtool/index.html#!/tester

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...