Biggerplay Posted February 27, 2014 Share Posted February 27, 2014 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 thisGameAPI.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? Quote Link to comment Share on other sites More sharing options...
Biggerplay Posted February 27, 2014 Author Share Posted February 27, 2014 Be handy if you could delete your posts, anyway the above only works online not in webstorms webserver, but there's other issues so I'm off to post in the Phaser section. Quote Link to comment Share on other sites More sharing options...
gerb Posted March 19, 2014 Share Posted March 19, 2014 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)_IntroTest tool: http://cdn.gameplayer.io/testtool/index.html#!/tester Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.